[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Non-root USB-mount: How to?[SOLVED]

Date: Sun, 28 Jun 2009 10:17:50 -0500
From: "Mikkel L. Ellertson" <mikkel infinity-ltd com>
Subject: Re: Non-root USB-mount: How to?
To: "Community assistance, encouragement,	and advice for using
	Fedora." <fedora-list redhat com>
Message-ID: <4A47899E 80800 infinity-ltd com>
Content-Type: text/plain; charset="iso-8859-1"

Hiisi wrote:
> Dear Fedora-Folks!
> I have FC11 system, running in a text mode most of the time. I would
> like to mount USB-flash under ordinary user (not root only). Here is
> /etc/fstab:
> #
> # /etc/fstab
> # Created by anaconda on Sun Jun 14 21:32:42 2009
> #
> # Accessible filesystems, by reference, are maintained under
> # See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for
> info
> #
> UUID=783c1044-238d-4ce7-adef-11f71fdc8abf /boot
> defaults        1 2
> /dev/mapper/vg_imt-lv_root / ext4 defaults
> /dev/mapper/vg_imt-LogVol03 /var ext4 defaults
> /dev/mapper/vg_imt-LogVol02 /home ext4 defaults
> /dev/mapper/vg_imt-lv_swap swap swap defaults
> tmpfs                   /dev/shm                tmpfs   defaults 0 0
> devpts                  /dev/pts                devpts  defaults 0 0
> sysfs                   /sys                    sysfs   defaults 0 0
> proc                    /proc                   proc    defaults 0 0
> /dev/sdb1        /media/fl        auto user,noauto    0 0
> /dev/sdc1        /media/fl1        auto user,nouato    0 0
> I added last two lines for the task. But it doesn't work properly. I
> have 2 USB-disks. One of them is an old 126 MB Transcend drive, vfat
> type. I can mount it from non-root account simply typing 'mount
> /media/fl', when it is plugged into /dev/sdb1. But I can't mount it
> the second USB-port (/dev/sdc1). If I try 'mount /media/fl1' I have
> following error:
> mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
>       missing codepage or helper program, or other error
>       In some cases useful info is found in syslog - try
>       dmesg | tail  or so
> The other USB-drive is 2 GB Kingston, vfat either. I can mount it
> root account using mount /dev/sdc1 /media/fl1. But have the above
> when trying to mount it under non-root account. What the deal? Could
> anybody help me? Thanks in advance.
You can try running gnome-mount to mount as a user.

To make your fstab entries work, you will need to give your
partitions a uuid, and use the uuid in fstab. You would replace
/dev/sdb1 and /dev/sdc1 with something like:


Your uuid would be different, but that gives you the idea.


  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!
Thank you Mikkel!
There were already entries starting with UUID=<somevalue> in /etc/fstab. For example for /boot directory. I just needed to look carefully or read MAN. /dev/sdc1 would does the task either but only for one USB port. UUID will work for any USB port on the machine. The problem was, as I already told, in my inattention. I wrote mistakenly 'nouato' instead 'noauto' in the last entry. I found that with a help of dmesg | tail
Registered Linux User #487982. Be counted at: http://counter.li.org/

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]