automounting a USB hard drive

Rashkae ubuntu at tigershaunt.com
Tue Nov 10 15:14:55 UTC 2009


pkaplan1 at comcast.net wrote:
> Running karmic kde, fresh install, fully updated (w/ udev 147~.6.1) 
> 
> 
> I have an external usb hard drive with one ntfs and four ext3 partitions. Under both Jaunty and Karmic, the drive is found at /dev/sdb1 to /dev/sdb5. Under Jaunty the all the partitions automounted at launch with the following /etc/fstab entries: 
> 
> 
> 
> # /media/jupiter was on /dev/sdb5 during installation 
> UUID=5af75fba-045b-41c1-ae54-f7c5bc133694 /media/jupiter ext3 relatime 0 2 
> # /media/mars was on /dev/sdb3 during installation 
> UUID=27655aac-f0fc-40df-9ba1-8412d584b5c5 /media/mars ext3 relatime 0 2 
> # /media/mercury was on /dev/sdb2 during installation 
> UUID=08c89a6f-7c9c-4f59-b26d-e43921450ad9 /media/mercury ext3 relatime 0 2 
> # /media/saturn was on /dev/sdb6 during installation 
> UUID=a21074d2-7e57-4676-aeda-c80b560d9c68 /media/saturn ext3 relatime 0 2 
> # /media/venus was on /dev/sdb1 during installation 
> UUID=1968-2E97 /media/venus vfat utf8,umask=007,gid=46 0 1 
> # /windows was on /dev/sda1 during installation 
> UUID=B4BCCC8FBCCC4E14 /windows ntfs defaults,nls=utf8,umask=007,gid=46 0 1 
> 
> 
> However, under Karmic, I have to manually issue sudo mount -a to get the partitions to mount; they won't automount at boot. 
> 
> 
> How can i get them to automount? 
> Paul 
> 

Kind of a brute force approach, but also easy.

you can insert:

mount /media/mercury
mount /media/saturn

etc:

in your /etc/rc.local file


I'm assuming your problem stems from Karmic flying through the fstab
entries before the usb bus is ready, and not stopping on missing
filesystems.






More information about the ubuntu-users mailing list