aMule Forum

English => en_Linux => Topic started by: egretconan on October 22, 2004, 09:36:49 AM

Title: about USB mounted HD drive
Post by: egretconan on October 22, 2004, 09:36:49 AM
I am using Fedora core 2, and I have a USB HD drive.

I only can mount this drive as root, which it only set root as the owner.

I try to change the ownership of this drive with chown command, but it doesn't work for me.

Would somebody help me on changing the owner of mounted drive, then user have full
access to it?

Can I mount drives as user?

Can I do something let the drive mount automatically(as user) when system boot up?

Thanks
Title: Re: about USB mounted HD drive
Post by: Jacobo221 on October 22, 2004, 11:25:32 AM
set it into the /etc/fstab file and take a look at gid= uid= users and user parameters (in main mount) ;-)
That's what you're looking for.
Greetings!
Title: Re: about USB mounted HD drive
Post by: bootstrap on October 22, 2004, 12:01:12 PM
You should watch the filesystem you're using - different fs support different options.

I would recommend some mature fs like ext3fs, reiserfs or xfs.

Anyway - even if you're using vfat (which is quite common) you can set the options at mount time. As vfat lacks support for changing file/directory modes, you need to set the right options when mounting the drive.

As Jacobo221 already mentioned - 'man mount' will surely help a lot.
Title: Re: about USB mounted HD drive
Post by: egretconan on October 22, 2004, 07:14:33 PM
This is what I see in my fstab file:

LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/hdb3               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1             /mnt/cdrom1             udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0

Do I just add a line there as Jacobo221 said:
gid= uid= users

? Thanks for help!
Title: Re: about USB mounted HD drive
Post by: Jacobo221 on October 23, 2004, 09:40:28 AM
sorry but i don't even know which line refers to your USB device. please specify ;)
Greetings!
Title: Re: about USB mounted HD drive
Post by: GonoszTopi on October 23, 2004, 02:28:58 PM
Try `cat /etc/mtab` or `cat /proc/mounts`  when your usb drive is mounted. Locate the line corresponding to your usb device. (You can find it by looking for the line containing the directory name it's mounted on.) Its format is:



Copy it to your /etc/fstab without changing anything but the options. Add/modify the uid/gid (user/group) values - refer to man mount regarding the section of your usb device's fstype.