fstab and uuid problems
James
james2432 at gmail.com
Sat Jan 16 23:41:06 UTC 2010
I deleted the Kingston file and when I use the UUID there is two drives in
Places: test and Kingston, Kingston works and test says /dev/sdb1 is already
mounted or /media/test is busy
ls -l /media
total 8
lrwxrwxrwx 1 root root 6 Oct 16 21:21 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 Oct 16 21:21 cdrom0
drwxr-xr-x 3 root root 4096 Jan 14 21:08 test
it's weird, I tried booting with it inserted and tried booting and then
inserting it. both have the same effect.
P.S. the only reason I want this is to disable the journaling, an to add
noatime and nodiratime to improve performance
On Sat, Jan 16, 2010 at 8:20 AM, komputes <komputes at gmail.com> wrote:
> 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
> >>
> >>
> >
> >
>
>
> --
> ubuntu-ca mailing list
> ubuntu-ca at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ca
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-ca/attachments/20100116/e25d13da/attachment.html>
More information about the ubuntu-ca
mailing list