fstab and uuid problems

komputes komputes at gmail.com
Sat Jan 16 13:20:21 UTC 2010


Andy Boersma wrote:
> James,
>
> Normally speaking USB keys/dongles should not be in your fstab, they 
> should create temporary mount points.
>   
The fact that they create temp mountpoints is true. That does not mean
usb drives should not be in /etc/fstab/.

I believe the issue you are running into is a mountpoint conflict. the
location /media/Kingston needs to exist *before* you plug in the key, as
well, since the usb key has a label of "Kingston" the temporary mount
point is created under that name, creating a conflict.

Here is what I suggest to test:

Create a directory as a mountpoint in another location, such as 
/media/test and give it the appropriate permissions for your user to
read write and execute that directory.

In your /etc/fstab configuration file change /media/Kingston to
/media/test then reboot and let us know what happens.

Peace,

-komputes

  (]( -. .- )[)
> I recommend that you add a # to the beginning of the line, to comment it 
> out.
>
> reboot then plug the USB storage in.
>
> It should properly mount after password.
>
> Andy
>
> James wrote:
>   
>> Is it normal that fstab is totally ignoring my UUID for my usb key? 
>> When I use the UUID it mounts two drives in my "Places" menu, one that 
>> works and the other that doesn't, but when I use the hard coded /dev/ 
>> path it works and mounts only one drive under "Places"
>>
>> cat /etc/fstab
>> # /etc/fstab: static file system information.
>> #
>> # Use 'blkid -o value -s UUID' to print the universally unique identifier
>> # for a device; this may be used with UUID= as a more robust way to name
>> # devices that works even if disks are added and removed. See fstab(5).
>> #
>> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
>> proc            /proc           proc    defaults        0       0
>> # / was on /dev/sda6 during installation
>> UUID=5457a33f-656e-4d57-8c77-8de798b08ec8 /               ext4   
>>  errors=remount-ro 0       1
>> # /home was on /dev/sda7 during installation
>> UUID=33dd70df-2d5a-4ca3-93f3-79ee62478cc4 /home           ext4   
>>  defaults        0       2
>> /dev/sda5       none            swap    sw              0       0
>> #UUID=a5bd5801-d5ac-4b30-97cb-819553d7cba1 /media/Kingston ext4 
>> data=writeback,noauto,noatime,nodiratime,user 0 0
>> /dev/sdb1 /media/Kingston ext4 
>> data=writeback,noauto,noatime,nodiratime,user 0 0
>>
>>
>> ls -l /media
>>
>> drwxr-xr-x 3 root root 4096 Jan 14 21:08 Kingston
>> lrwxrwxrwx 1 root root    6 Oct 16 21:21 cdrom -> cdrom0
>> drwxr-xr-x 2 root root 4096 Oct 16 21:21 cdrom0
>>
>>     
>
>   





More information about the ubuntu-ca mailing list