aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: about USB mounted HD drive  (Read 3137 times)

egretconan

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
about USB mounted HD drive
« 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
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2758
Re: about USB mounted HD drive
« Reply #1 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!
Logged

bootstrap

  • bofh
  • Developer
  • Full Member
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 175
    • http://www.hirnriss.net
Re: about USB mounted HD drive
« Reply #2 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.
Logged
:: signature? wtf is a signature good for? ::

egretconan

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: about USB mounted HD drive
« Reply #3 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!
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2758
Re: about USB mounted HD drive
« Reply #4 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!
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 165
  • Offline Offline
  • Posts: 2725
Re: about USB mounted HD drive
« Reply #5 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.
Logged
concordia cum veritate