Hi,
How can I force my external usb hard disk to mount at the same point every time?
Usually, it mounts to /media/disk/. But if I've got a usb stick plugged in, the usb hard disk will mount to /media/disk-1/
I've stared at the "how to fstab" page to no avail.
any help greatly appreciated.
here's my disk details:
Code:
bubox@sotec:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda1
UUID=83edfaf1-f3e0-4363-85f9-e975ce6317b7 / ext3 defaults,errors=remount-ro 0 1
# /dev/hda5
UUID=445f622b-5062-45a7-ae53-d0a1499c9fc6 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
bubox@sotec:~$ sudo fdisk -l
Password:
Disk /dev/hda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 30166 242308363+ 83 Linux
/dev/hda2 30167 30401 1887637+ 5 Extended
/dev/hda5 30167 30401 1887606 82 Linux swap / Solaris
Disk /dev/sda: 20.0 GB, 20000000000 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 2431 19526976 b W95 FAT32
bubox@sotec:~$ ls /dev/disk/* -lah
/dev/disk/by-id:
total 0
drwxr-xr-x 2 root root 160 2008-09-13 10:26 .
drwxr-xr-x 5 root root 100 2008-09-12 23:32 ..
lrwxrwxrwx 1 root root 9 2008-09-10 21:36 ata-ST3250620A_9QE0941X -> ../../hda
lrwxrwxrwx 1 root root 10 2008-09-10 21:36 ata-ST3250620A_9QE0941X-part1 -> ../../hda1
lrwxrwxrwx 1 root root 10 2008-09-10 21:36 ata-ST3250620A_9QE0941X-part2 -> ../../hda2
lrwxrwxrwx 1 root root 10 2008-09-10 21:36 ata-ST3250620A_9QE0941X-part5 -> ../../hda5
lrwxrwxrwx 1 root root 9 2008-09-13 10:26 usb-Myson_Century,_Inc._USB_Mass_Storage_Device_100 -> ../../sda
lrwxrwxrwx 1 root root 10 2008-09-13 10:26 usb-Myson_Century,_Inc._USB_Mass_Storage_Device_100-part1 -> ../../sda1
/dev/disk/by-path:
total 0
drwxr-xr-x 2 root root 180 2008-09-13 10:26 .
drwxr-xr-x 5 root root 100 2008-09-12 23:32 ..
lrwxrwxrwx 1 root root 9 2008-09-13 10:26 pci-0000:00:10.2-usb-0:1:1.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 2008-09-13 10:26 pci-0000:00:10.2-usb-0:1:1.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 2008-09-10 21:36 pci-0000:00:11.1-ide-0:0 -> ../../hda
lrwxrwxrwx 1 root root 10 2008-09-10 21:36 pci-0000:00:11.1-ide-0:0-part1 -> ../../hda1
lrwxrwxrwx 1 root root 10 2008-09-10 21:36 pci-0000:00:11.1-ide-0:0-part2 -> ../../hda2
lrwxrwxrwx 1 root root 10 2008-09-10 21:36 pci-0000:00:11.1-ide-0:0-part5 -> ../../hda5
lrwxrwxrwx 1 root root 9 2008-09-10 21:36 pci-0000:00:11.1-ide-1:0 -> ../../hdc
/dev/disk/by-uuid:
total 0
drwxr-xr-x 2 root root 100 2008-09-13 10:26 .
drwxr-xr-x 5 root root 100 2008-09-12 23:32 ..
lrwxrwxrwx 1 root root 10 2008-09-10 21:36 445f622b-5062-45a7-ae53-d0a1499c9fc6 -> ../../hda5
lrwxrwxrwx 1 root root 10 2008-09-13 10:26 4890-108E -> ../../sda1
lrwxrwxrwx 1 root root 10 2008-09-10 21:36 83edfaf1-f3e0-4363-85f9-e975ce6317b7 -> ../../hda1
bubox@sotec:~$
Bookmarks