LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-16-2007, 07:03 AM   #1
yusuo
LQ Newbie
 
Registered: May 2007
Posts: 13

Rep: Reputation: 0
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
 
Old 05-16-2007, 07:13 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,652
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
/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
 
Old 05-16-2007, 07:24 AM   #3
yusuo
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
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
 
Old 05-16-2007, 07:25 AM   #4
yusuo
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
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
 
Old 05-16-2007, 07:31 AM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.
 
Old 05-16-2007, 07:34 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.

Last edited by Simon Bridge; 05-16-2007 at 07:38 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Drive Permissions djljjm Linux - Newbie 2 04-22-2005 02:00 PM
Hard Drive Permissions djljjm Linux - Newbie 3 04-18-2005 03:35 PM
Hard Drive Permissions djljjm Linux - Newbie 1 04-18-2005 11:29 AM
Hard drive permissions Rªdical_£D SUSE / openSUSE 3 01-10-2005 07:20 AM
Permissions for second hard drive digi691 Linux - Newbie 29 09-03-2004 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration