LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   'Read-only file system' problem (https://www.linuxquestions.org/questions/linux-newbie-8/read-only-file-system-problem-303672/)

buehler 03-19-2005 05:02 PM

'Read-only file system' problem
 
hi.

i am having trouble connecting via ssh/scp into my PC (Mandrake 10.0):

when i try to transfer a file via scp it gives this error:
'Read-only file system'

i am still able to ssh into the machine. after successfully logging in i get this error:
/usr/X11R6/bin/xauth: error in locking authority file /home/myhome/.Xauthority
i can't seem to be able to cp/rm/mv files anymore. it always complains that it's
a 'Read-only file system'.

the same happens when i become 'root'!!!

any ideas/suggestions?

marc

{BBI}Nexus{BBI} 03-19-2005 06:41 PM

A quick solution might be to copy to another location or rename your /home/myhome/.Xauthority file then try to ssh/scp again and see what happens.

buehler 03-19-2005 06:48 PM

unfortunately that doesn't work.
cp/mv/rm ... nothing works (neither as user nor as root)!
it always complains that i only have read access.

i should also mention that i don't have physical access to
the machine at the moment. i'm debugging remotely.

marc

btmiller 03-19-2005 06:52 PM

Is /home a separate partition from /? You should probably try (as root):

mount -o remount,rw <partition with /home>

If the filesystem is mounted read only, then not even root will be able to write to it.

buehler 03-19-2005 06:59 PM

i tried (as root):
mount -o remount,rw /dev/hda6

and get:
mount: block device /dev/hda6 is write-protected, mounting read-only


when i do 'dmesg' i get tons of these messages:
EXT3-fs error (device hda6) in start_transaction: Journal has aborted
EXT3-fs error (device hda6) in start_transaction: Journal has aborted
EXT3-fs error (device hda6) in start_transaction: Journal has aborted
.
.
.

is my harddisk broken?

marc

Angelus 04-12-2005 11:43 AM

I'm having the same problem when logging in with ssh. :confused:

---------------------
dmesg says:
EXT3-fs error (device sda11) in start_transaction: Readonly filesystem.
---------------------

I can't do anything which requires writing. This happens only with 'remote controlling'.
I'm using Debian Sarge. Installed with netinstall image.

Buehler: Your hard disk ain't broken :)


edit:
wtf
/etc/fstab includes this
/dev/sda11 / ext3 defaults,rrors=remount-ro 0 1

This wasn't in fstab few days ago. Before I first time connected with ssh :rolleyes:

brozkeff 01-16-2006 08:06 AM

The same thing on Fedora Core 4
 
I had similar problem few days ago on fresh Fedora Core 4. Using default installation, it formatted disk using LVM. Then after 5-10 hours of uptime, it simply remounted root (/) fs as readonly and remound did the same as mentioned here - nothing. Only reboot helped. Didn't solved it at all, instead (not because of only this) reinstalled whole system, but choosen manual partitioning, and formatted it as normal ext3 volumes, not encapsulated in LVM... since then the problem didn't apperar at all...

aspenscott 05-09-2006 12:13 AM

Try this
 
mount -w /dev/<filesystem> (ie ad0, ad0a)


All times are GMT -5. The time now is 11:36 AM.