PDA

View Full Version : ROOT has no write access!???



MaegRil
2nd July 2006, 02:11 PM
I was just about to burn a CD a few minutes ago and ran into some problems .....

I have a Plextor PX-760A, and like alot of Plextor owners I have to burn my CDs as root. I don't like, but it works fine.

But now, when I wanted to burn this CD, K3B wouldn't even start up. I tried it from a terminal and got this:

kdeinit: Aborting. No write access to $HOME directory (/root).

HUH!? root doesn't have write access to /root?
I can cd in to /root, I can read files in /root, but I can't change anyfiles and I can't delete anything.
Deleting a file in /root results in:

rm: cannot remove `file_name': Read-only file system

Here is my fstab:


LABEL=/ / ext3 defaults 1 1
LABEL=/boinc /boinc ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 defaults 1 2
LABEL=/opt /opt ext3 defaults 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/usr/local /usr/local ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
LABEL=SWAP-sdb3 swap swap sw,pri=1 0 0
LABEL=SWAP-sdc3 swap swap sw,pri=1 0 0
LABEL=SWAP-sda3 swap swap sw,pri=1 0 0
192.168.13.1:/mnt/sdd /mnt/server nfs rsize=32768,wsize=32768 0 0
/dev/sda1 /mnt/windows-c ntfs ro,umask=0200 0 0
/dev/sda5 /mnt/windows-d ntfs ro,umask=0200 0 0

Everything on the / parition appears to be read-only filesystem. So, things like /dev, /etc, /root and so on are all readonly. Even to root.

Anyone out there with any clues?

sheep
2nd July 2006, 03:21 PM
Give us the output of:


mount && echo "---" && ls -ald /

MaegRil
2nd July 2006, 09:02 PM
OK, here it is:

/dev/sdb8 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda8 on /boinc type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdc5 on /home type ext3 (rw)
/dev/sda6 on /tmp type ext3 (rw)
/dev/sdb6 on /usr type ext3 (rw)
/dev/sda7 on /var type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
192.168.13.1:/mnt/sdd on /mnt/server type nfs (rw,rsize=32768,wsize=32768,addr=192.168.13.1)
automount(pid2387) on /net type autofs (rw,fd=4,pgrp=2387,minproto=2,maxproto=4)
---
drwxr-xr-x 25 root root 4096 Jun 30 21:29 /

Anne
3rd July 2006, 04:20 AM
This has happened to us also, under FC5. Our root filesystem is ext3. On user terminals there is a message about not being able to commit to journal I/O error.

Then the system marks the / filesystem ro (even though mount still shows rw).

There is nothing in /var/log/messages--obviously. Our / filesystem is on a sata disk.

Here is our output (similar to yours):
[hammond@jove ~]$ mount && echo "---" && ls -ald /
/dev/sda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdb1 on /jove type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
geta:/home on /home type nfs (rw,addr=128.138.109.34)
automount(pid2115) on /autodisks type autofs (rw,fd=4,pgrp=2115,minproto=2,maxproto=4)
automount(pid2172) on /net type autofs (rw,fd=4,pgrp=2172,minproto=2,maxproto=4)
---
drwxr-xr-x 27 root root 4096 Jul 2 17:35 /

MaegRil
6th July 2006, 09:04 PM
On user terminals there is a message about not being able to commit to journal I/O error.
Nope, I never had that mesage.


There is nothing in /var/log/messages--obviously. Our / filesystem is on a sata disk.
My /var still works - I have a seperate /var parition. But even though, there wasn't any messages of any relevance. My / filesystem is on a sata disk too.


Now it's really time to scratch my head ... after a reboot yesterday everything started working properly.
I have write access to everything as root. I can now burn CDs again with my Plextor. :)
And I have no idea what caused my problem.

How did you get on with yours?

Omega Blue
7th July 2006, 03:44 AM
What are your SELinux settings like?

MaegRil
7th July 2006, 02:46 PM
SELinux is disabled on my box - ever since I installed FC5, and haved messed with it all. So, it shouldn't be a problem.

jbannon
7th July 2006, 02:52 PM
Nope, I never had that mesage.


My /var still works - I have a seperate /var parition. But even though, there wasn't any messages of any relevance. My / filesystem is on a sata disk too.


Now it's really time to scratch my head ... after a reboot yesterday everything started working properly.
I have write access to everything as root. I can now burn CDs again with my Plextor. :)
And I have no idea what caused my problem.

How did you get on with yours?

When you get a problem like this try running fsck in single-user mode or from the rescue disk.