Under Ubuntu, I am trying to mount an external hard drive .
(1). First I tried to find out the name of the device:
$ sudo fdisk -l
Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa315a315
Device Boot Start End Blocks Id System
/dev/sda1 1 383 3076416 12 Compaq diagnostics
/dev/sda2 * 384 6258 47190937+ c W95 FAT32 (LBA)
/dev/sda3 6259 12161 47415847+ f W95 Ext'd (LBA)
/dev/sda5 6259 10338 32772568+ 7 HPFS/NTFS
/dev/sda6 12041 12161 971901 82 Linux swap / Solaris
/dev/sda7 10947 12040 8787523+ 83 Linux
/dev/sda8 10339 10946 4883728+ 83 Linux
Partition table entries are not in disk order
I wonder which one is my external hard drive?
(2) Next I will mount the external hard drive assuming it is /dev/sda3
$ sudo mount /dev/sda3 /mnt/extdisk
mount: you must specify the filesystem type
$ sudo mount -t ntfs /dev/sda3 /mnt/extdisk
mount: wrong fs type, bad option, bad superblock on /dev/sda3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
$ sudo mount -t vfat /dev/sda3 /mnt/extdisk
mount: wrong fs type, bad option, bad superblock on /dev/sda3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
I wonder how to know the fs type of my external hard drive?
Thanks and regards!
Best Answer
If you want to easily find the device name assigned to it:
tail -f /var/log/messages
it's clear that the device has been assigned sdb. Now we can mount it's first partition:
If that fails, your drive is probably NTFS formatted: