Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Read-only file system problem. [SOLVED with fsck]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Thu Apr 12, 2012 2:14 am    Post subject: Read-only file system problem. [SOLVED with fsck] Reply with quote

I'm not sure why I have such a problem. I edited my grub file to update my system rescue then when I rebooted I lost the ability to write to part of my file system. I used the systemrescue cd and change my grub.conf file back to a working version. My problem still exsists.


example:

When I startx
$startx
/usr/bin/startx: line 156: cannot create temp file for here-document: Read only file system..


When I list the /boot/ directory I do not see my kernel /boot/vmlinuz-3.0.6-gentoo

When I try to copy a boot kernel from /usr/src/linux-3.2.12-gentoo/ I get the error:
cp: cannot create regular file /boot/kernel-3.2.12 : Read-only file system

Is there a way I can view my boot log? There is an error there that I am unable to read due to speed.

As usual any help will be appreciated. This is the best linux forum and distro in the world.
_________________
Without diversity there can be no evolution:)


Last edited by cwc on Thu Apr 12, 2012 11:49 am; edited 1 time in total
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Thu Apr 12, 2012 2:19 am    Post subject: Reply with quote

I would start with the dmesg command...any FS or HD issues are likely to show up there first.
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Thu Apr 12, 2012 2:29 am    Post subject: Reply with quote

platojones wrote:
I would start with the dmesg command...any FS or HD issues are likely to show up there first.


I did a dmesg and tried to write it to a fike

eg:
#dmesg > /home/cwc/dmesg.txt

I could not write to the disk. I have two other harddrives in the machine and I can't write to them either?

I did not see any FS or HD error.
But I'll look a lot closer to be sure.

Thanks for the line!
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Apr 12, 2012 2:38 am    Post subject: Reply with quote

cwc,

You could always chroot from a live cd :!: or
If you're sure there's no disk problem try to remount with
Code:
mount -o remount,rw  /

Good luck :wink:
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Thu Apr 12, 2012 2:55 am    Post subject: Reply with quote

BillWho wrote:
cwc,

You could always chroot from a live cd :!: or
If you're sure there's no disk problem try to remount with
Code:
mount -o remount,rw  /

Good luck :wink:


I was able to mount the boot partition drive using a live cd. I chrooted the files ystem and wrote to it.

I'm not sure what to do once I've mounted the drive?
How do I make it writable?
I tried a chmod 755 to the boot kernel with no luck. I believe the normal permission is 644.

Thanks for the line!
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Apr 12, 2012 3:07 am    Post subject: Reply with quote

cwc,

Quote:
I edited my grub file to update my system rescue

Usually ro single is appended to the kernel line for recovery mode.

The kernel should be set to 644 root root

Check the status of the mounts with mount|column -t
It should return (rw,noatime,errors=continue,barrier=1,data=writeback) for /

Did you change your fstab line for / :?:

I don't know what changes you made so I can't guess at an answer at the moment :)
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Thu Apr 12, 2012 3:34 am    Post subject: Reply with quote

BillWho wrote:
cwc,

Quote:
I edited my grub file to update my system rescue

Usually ro single is appended to the kernel line for recovery mode.

The kernel should be set to 644 root root

Check the status of the mounts with mount|column -t
It should return (rw,noatime,errors=continue,barrier=1,data=writeback) for /

Did you change your fstab line for / :?:

I don't know what changes you made so I can't guess at an answer at the moment :)


I did not change my fstab . I'm my / is set to defaults

The only thing I changed was the kernel for my recovery kernel 3.0.1 instead of 2.6.
I do not think that was the issue. I am not on the internet with my gentoo box so it's kind of tough typing the exact errors.

Presently all I can do is tty. I think I'll chroot then check read/write.

How about fsck ?
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Apr 12, 2012 3:52 am    Post subject: Reply with quote

cwc,

Quote:
How about fsck ?

It can't hurt anything to do an error check :!:

Just make sure the filesystems you're going to check are not mounted :)
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Thu Apr 12, 2012 4:16 am    Post subject: solved for now Reply with quote

BillWho wrote:
cwc,

Quote:
How about fsck ?

It can't hurt anything to do an error check :!:

Just make sure the filesystems you're going to check are not mounted :)


! fsck solved the problem? !

I do know my system has some issues.

On boot I get these two errors:

Error 1 > Setting up the Logical Volume Manage . No Volume Groups . . . (I've got a basic system) /boot swap /root /mnt/uno /mnt/duo

Error 2 >*WARNING: rc_sys not defined in rc.conf falling back to automatic detection.

Thanks again for the lines! I'll work on thing tomorrow.


https://forums.gentoo.org/viewtopic-t-851868.html

https://forums.gentoo.org/viewtopic-t-881249.html
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum