LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-09-2005, 08:34 PM   #1
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Rep: Reputation: 30
Changing a partition to writable


My fstab has a line that was generated by the Slackware install to include /dev/hda4 on /transfer. It works, but the end of the line reads "defaults 1 0" and I want the partition to be writable. It is a FAT partition, used for files that need to be accessible from both my XP installation and my SLackware installation. What do I need to change to make this happen? If I change "defaults" to "rw" it doesn't complain at boot, but is still not writable. Could it be a permissions issue? How do you check permissions of such a thing?
 
Old 12-09-2005, 08:40 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Have you tried writing to it as root? FAT partitions don't have permissions (MS-DOS had no concept of such a thing) and so you need to use the user, group, and umask mount options to determine permissions on FAT partitions.
 
Old 12-09-2005, 09:10 PM   #3
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
Umm, root can write to it. I want any user to be able to. Won't the umask option limit who can use it?
 
Old 12-09-2005, 09:16 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
If you set a umask of 000 then all the files will be world readable/writeable. If you need more than that, use the uid and gid options (sorry, not user and group, I was half asleep when I wrote that ). The uid and gid options specify what user and group ownership all of the files have. For example, if your uid id 1000 and your gid is 100, using the uid=1000,gid=100 options will make all the files on the filesystem owned by your user. See man mount for more information.
 
Old 12-10-2005, 05:27 AM   #5
arunvk
Member
 
Registered: Nov 2005
Location: India
Distribution: Fedora 29
Posts: 197

Rep: Reputation: 30
to be able to write to fat partition u have to pass the permission from fstab, here is a copy of my fstab.

none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hda1 /win/c vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
/dev/hda5 /win/d vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
/dev/hdb9 /win/d_ak vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
/dev/hda6 /win/e vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
/dev/hdb5 /win/e_avk vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
/dev/hda7 /win/f vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
/dev/hdb6 /win/f_avk vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
LABEL=SWAP-hdb8 swap swap defaults 0 0
/dev/hdd /media/cdrom auto pamconsole,exec,noauto,managed 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0


please note that in my fstab only one user has the permissions. if u want to give permissions to all, then refer the manual page of mount command and change the options accordingly.

tell me if this solves it.
 
Old 12-28-2005, 04:20 PM   #6
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
/dev/hda2 / ext3 rw 0 0
proc /proc proc rw 0 0
/dev/hda1 /ntfs ntfs rw 0 0
/dev/hda4 /transfer vfat rw,noexec,nosuid,nodev 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
usbfs /proc/bus/usb usbfs rw 0 0


--from mtab.

dev/hda3 swap swap defaults 0 0
/dev/hda2 / ext3 defaults 1 1
/dev/hda1 /ntfs ntfs defaults 1 0
/dev/hda4 /transfer vfat rw,user 1 0
/dev/cdrom /mnt/cdrom auto noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,user 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


--from fstab


Why do users not have permissions to write to /transfer?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows partition not writable don_dimo Linux - General 4 11-23-2005 02:03 PM
Making an NFTS partition writable stynhx9000 Ubuntu 4 11-03-2005 07:35 AM
Making mounted FAT32 partition writable by all jrittvo Fedora 14 06-07-2004 02:39 AM
Knoppix 3.4 make partition writable for everyone suguru Debian 2 05-12-2004 04:07 PM
Make other partition writable to all gm_leon Linux - General 2 11-27-2002 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:18 AM.

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