Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-21-2008, 04:42 PM   #1
rc nai
Registered: Jun 2008
Distribution: Slackware 13.37,14
Posts: 85

Rep: Reputation: 21
Post Change Permissions For Read-Only Filesystem

Kinda stuck on this and it's confusing me. I'm trying to transfer a text file into my usb flash-drive with mc(midnight commander) but it said that it's a read-only file system. The usb flash-drive is mounted on /mnt/memory. So now I'm trying to change permissions for /mnt/memory to have rw access. When I do this:
# chmod u=rw memory/
I get this:
chmod: changing permissions of `memory/': Read-only file system
The output of ls -l:
dr-x------ 1 root root 12288 2008-06-19 22:57 memory
The output of fstab:
cat /etc/fstab 
/dev/hda5        swap             swap        defaults         0   0
/dev/hda2        /                ext3        defaults         1   1
/dev/hda6        /usr             ext3        defaults         1   2
/dev/hda7        /home            ext3        defaults         1   2
/dev/hda1        /fat-c           ntfs-3g     umask=077        1   0
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
The filesystem is /dev/sda1 and mounted on /mnt/memory type ntfs (rw)

I'm not sure where to go from here.
Old 06-21-2008, 05:10 PM   #2
Senior Member
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
You should mount the drive using the ntfs-3g type if you want to write to it. The following command should mount the device appropriately:
# mount -t ntfs-3g /dev/sda1 /mnt/memory
This will only be writable by root, however, because of the way ntfs-3g is setup. If you want it to be rw for all users, you would have to set the setuid bit. I don't have any ntfs-formatted devices to test that on, so take my advice with a grain of salt. A search in these forums for ntfs-3g should yield the answer you seek.
Old 06-21-2008, 06:20 PM   #3
rc nai
Registered: Jun 2008
Distribution: Slackware 13.37,14
Posts: 85

Original Poster
Rep: Reputation: 21
Yea that worked out.

...and for users to have rw, I think it would be like this:
/dev/sda1 /mnt/memory rw,users,umask=1000


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
How do I change permissions for a folder on an NTFS filesystem? arthur42dent Linux - Security 3 02-15-2008 09:14 PM
how do I change the filesystem from read-only to read-write? les_chow Linux - Newbie 5 05-26-2004 04:14 PM
unable to change tty /dev/tty1 Read-only filesystem behmjose Linux From Scratch 1 01-02-2004 09:55 PM
How to change permissions for Mounted Filesystem leroy27336 Linux - General 3 11-15-2003 04:08 AM
permissions on read only filesystem niehls Linux - Software 4 06-08-2002 01:36 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:16 AM.

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