On Mon, 5 Feb 2018, Michael Schwendt wrote:
On Mon, 5 Feb 2018 13:38:32 -0500, Bill Shirley wrote:
What's the output of
fdisk -l /dev/sdb
Bill
Note that fdisk would only show the partition type value, not the
actual fs.
"parted /dev/sdb p" tries to detect the fs type.
root@pegasus ~> parted /dev/sdb p
Model: WD My Passport 25E1 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 2000GB 2000GB ntfs My Passport msftdata
I also ran the following fdisk commands:
root@pegasus ~> fdisk /dev/sdb
Welcome to fdisk (util-linux 2.30.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sdb: 1.8 TiB, 2000365289472 bytes, 3906963456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 9E75040B-133B-4686-8FE8-6F48251440CE
Device Start End Sectors Size Type
/dev/sdb1 2048 3906961407 3906959360 1.8T Microsoft basic data
root@pegasus ~> fdisk /dev/sdb1
Welcome to fdisk (util-linux 2.30.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sdb1: 1.8 TiB, 2000363192320 bytes, 3906959360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6e697373
Device Boot Start End Sectors Size Id Type
/dev/sdb1p1 1936269394 3772285809 1836016416 875.5G 4f QNX4.x 3rd
part
/dev/sdb1p2 1917848077 2462285169 544437093 259.6G 73 unknown
/dev/sdb1p3 1818575915 2362751050 544175136 259.5G 2b unknown
/dev/sdb1p4 2844524554 2844579527 54974 26.9M 61 SpeedStor
Partition table entries are not in disk order.
############
What I'm trying to do is take a Western Digital external 2TB USB-ported
drive and change its label from "My Passport" to something else.
I can do it on my Windows 7 laptop in Windows Explorer. I would like to be
able to do it at the command line.
I can use fatlabel for SD flash memory cards; it produces the following
error when I try to do it on my F27 laptop:
root@pegasus ~> fatlabel
usage: fatlabel device [label]
root@pegasus ~> fatlabel /dev/sdb MYDISK
Logical sector size is zero.
root@pegasus ~> fatlabel /dev/sdb1 MYDISK
Currently, only 1 or 2 FATs are supported, not 0.
fyi,
MP
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx