LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Hard Drive Permissions (https://www.linuxquestions.org/questions/mandriva-30/hard-drive-permissions-554325/)

yusuo 05-16-2007 07:03 AM

Hard Drive Permissions
 
Im trying to change the permissions on my drive so that I can write to it, its correctly mounted and I can read from it. Its a 500gb fat32 drive called "hdb1" and its alias is simply "500"

If someone could tell me how I achieve this i will be a very happy person at least for another day

GlennsPref 05-16-2007 07:13 AM

/dev/sda6 /mnt/Win_d vfat defaults 0 0

That's what one of the lines in /etc/fstab looks like here.

I have read and write access and it appears in /mnt with cdrom, dvd, c: drive(ntfs), the one above d: drive, and two other FAT32 partitions.

You may be able to set them via the harddrak.

Check out this post for Ernies guide answering a similar question.

http://www.linuxquestions.org/questi...d.php?t=554163

yusuo 05-16-2007 07:24 AM

Help
 
That didnt help at all, still locked out, i was hoping someone could help me with what i would write in the terminal as I dont like to depend on the gui that much, its easier through the konsole

yusuo 05-16-2007 07:25 AM

Heres my fstab for all you lovely people
 
dev/hda1 / ext3 defaults 1 1
/dev/hda6 /home ext3 defaults 1 2
/dev/hdb1 /media/500 vfat defaults 0 0
/dev/hdd /media/cdrom auto umask=0022,users,iocharset=utf8,noauto,ro,exec 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/dvd /media/cd

Simon Bridge 05-16-2007 07:31 AM

Quote:

Originally Posted by yusuo
Im trying to change the permissions on my drive so that I can write to it, its correctly mounted and I can read from it. Its a 500gb fat32 drive called "hdb1" and its alias is simply "500"

If someone could tell me how I achieve this i will be a very happy person at least for another day

Permissions are not applied to drives, they are attributes of files. One does not mount drives (except to a chassis) but filesystems. And I don't know what you mean by "alias". So I am going to have to make some guesses...

You have an ide drive in the primary slave slot with a single partition formatted fat32. (Can windows format such large partitions to fat32 these days?)

You would like to mount this filesystem read/write. At present it is automounting read only and appears as an icon on your desktop labeled "500".

Your main problem, therefore, is that fat32 doesn't support file permissions (so chmod and chown return an error) and the owner is set to root (who can write to it!)

assuming the mountpoint is /media/500 (but it may be /mnt/hdb1 or /media/hdb1)

# mount -t vfat /dev/hdb1 /media/500 -o rw,user,umask=0000


You need to edit /etc/fstab entry to add the umask if you want it to automount this way.

Simon Bridge 05-16-2007 07:34 AM

Quote:

/dev/hdd /media/cdrom auto umask=0022,users,iocharset=utf8,noauto,ro,exec 0 0
... remove the ro (= read only) flag.

(dear oh dear oh dear)

note... there is no point setting "users", unless you want somone olse to be able to unmount your mouted fs before you are done. You only need iocharset if iso8859-1 doesn't work.


All times are GMT -5. The time now is 10:50 AM.