LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-16-2005, 08:39 PM   #1
punt
Member
 
Registered: Jun 2001
Distribution: Fedora 14
Posts: 336

Rep: Reputation: 30
mkdir: cannot create directory `test': Read-only file system


i just got a second harddrive and am trying to use it for backup purposes.

i attempted to make a new directory as in the subject above, but got a problem with a read only filesystem error. (funny, it worked before i ran mount -a if i recall, since i was able to successfully delete lost+found)

i suppose my fstab is incorrect, but this is what it looks like:

Code:
LABEL=/                 /                       ext2    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
LABEL=/home             /home                   ext2    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/usr              /usr                    ext2    defaults        1 2
LABEL=/var              /var                    ext3    defaults        1 2
/dev/hdb1               /backup                 ext3    defaults        1 2 
mount displays the following:

Code:
/dev/hda6 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/hda2 on /usr type ext2 (rw)
/dev/hda5 on /var type ext3 (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda3 on /home type ext2 (rw)
none on /dev/shm type tmpfs (rw)
/dev/hdb1 on /backup type ext3 (rw)
not sure what else it could be... i assume i have to fix my fstab, but how?

btw, i am willing to reformat this drive correctly if i did something wrong in the format.

Last edited by punt; 04-16-2005 at 09:55 PM.
 
Old 04-16-2005, 09:38 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,510

Rep: Reputation: 177Reputation: 177
"i attempted to make a new directory as in the subject above, but got a problem with a read only filesystem error. (funny, it worked before i ran mount -a if i recall, since i was able to successfully delete lost+found)

i suppose my fstab is incorrect, but this is what it looks like:"

This could be a permissions problem. Use:
ls -l /backup
to display the permissions for /backup. It is also possible that root has rw permission and user only has read permission.

-----------------------
Steve Stites
 
Old 04-16-2005, 09:58 PM   #3
punt
Member
 
Registered: Jun 2001
Distribution: Fedora 14
Posts: 336

Original Poster
Rep: Reputation: 30
thanks. that worked.

i'm not sure why root wouldn't be able to do it (it was chmod 755 before i changed the permissions to 777 in order to make it work.) oh well, i'm glad it does.

thanks again.
 
  


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
Unpacking files=Cannot mkdir: Read-only file system Regenten Linux - Newbie 5 09-08-2004 03:23 AM
test.c:1:19: Stdio.h: No such file or directory :( wogga Linux - Software 1 06-11-2004 02:57 PM
cannot create directory `/mnt/win_d/MP3': Read-only file system PapaJac Mandriva 11 03-04-2004 05:25 AM
cannot create directory `/mnt/win_d/MP3': Read-only file system PapaJac Mandriva 0 03-02-2004 04:09 PM
"mkdir: cannot create directory `foo': Read-only file system" on FAT32 maddes Linux - Hardware 1 11-26-2003 06:19 PM


All times are GMT -5. The time now is 09:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration