Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-25-2008, 09:50 PM   #1
LQ Newbie
Registered: Oct 2008
Posts: 5

Rep: Reputation: 0
Post In rescue mode, after doing chroot /mnt/sysimage file system still stays read only


I am using RHEL 5 Kernel-2.6.18-8.el5 and grub on my pc got corrupt.

So, I tried reinstalling grub. i restarted my system in rescue mode and selected Continue, it mounted the file system under the directory /mnt/sysimage/ then i used chroot /mnt/sysimage and tried reinstalling grub
with the command /sbin/grub-install /dev/hda2 because my boot partition was hda2 when i did fisk-l, i used /dev/hda2. It tried installing the grub but generated the following error:

mktemp: cannot create temp file /tmp/grub-install.img.lw2032: Read only file system
mktemp: cannot create temp file /tmp/grub-install.log.lVx2032: Read only file system
/sbin/grub-install: line 337: Cannot create temp file for here document: Read only file system

Please suggest what can be the problem am i doing something wrong. I faced the same problem when i went to Runlevel 1 when my system was working so i reinstalled a newer version of kernel- which fixed the problem. I am new to linux please suggest
Old 10-25-2008, 11:16 PM   #2
LQ Newbie
Registered: Oct 2008
Posts: 5

Original Poster
Rep: Reputation: 0
I got a quick fix

After running chroot /mnt/sysimage i ran the following command mount - mount -o rw /dev/hda2 which changed the file system to read write.
After that i reinstalled grub with sbin/grub-install /dev/hda2. was a success and showed as (hd0) /dev/hda. when i retarted my computer at the boot time it kept on showing


Please suggest what should i do now
Old 10-25-2008, 11:44 PM   #3
LQ Newbie
Registered: Oct 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hey guys..

Fixed sorry to bother fixed the problem myself..

went into /sbin/grub

typed the following command

root (hd0,0)
find /boot/grub/stage1 or find grub/stage1
setup (hd0)

exit till reboots


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
Booting to rescue mode, but no /mnt/sysimage KillerBeeBop Linux - Software 2 02-20-2008 10:31 AM
Unable to mount on chroot /mnt/sysimage NickNihal Linux - Hardware 2 09-05-2006 05:07 AM
/mnt ...Read Only File System rblampain Linux - Distributions 4 12-30-2004 12:16 AM
File system stays read-only? Bobulusman Linux From Scratch 3 10-17-2003 12:05 AM
Linux RH7.2 Entering 'linux rescue' but /mnt/sysimage not found apeacez Linux - Newbie 4 09-29-2003 12:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:32 PM.

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