Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't Write Config File for Grub Legacy (read-only fs)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mathias_redd
n00b
n00b


Joined: 20 Jun 2014
Posts: 17

PostPosted: Sat Jun 28, 2014 5:49 am    Post subject: Can't Write Config File for Grub Legacy (read-only fs) Reply with quote

I am trying to write my grub.conf file to dual boot with Windows 2008 and Gentoo Linux:

Code:
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 5
splashimage=(hd2,1)/boot/grub/splash.xpm.gz

title Windows Server 2008
rootnoverify (hd0,0)
makeactive
chainloader +1

title Gentoo Linux 3.14.4-ck
root (hd2,3)
kernel /boot/kernel-genkernel-x86_64-3.14.4-ck real_root=/dev/sdc4
initrd /boot/initramfs-genkernel-x86_64-3.14.4-ck


When I go to save it, nano tells me that it can't because it is a read-only file system (my boot and root partitions are both ext4). I have never had any trouble editing config files before.
I tried to navigate to /boot/grub/grub.conf with the GUI file manager, and I can edit it there; however it doesn't show up in my chrooted command line. It shows up just fine in a brand new command line.
Can anyone help me with this issue?
Also, for loading Windows 2008, should I point Grub to the 350mb boot partition or the partition that I installed Windows to?


Code:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1               /mnt/Windows    ntfs            auto,rw                 0 1
/dev/sda5               /mnt/Audio      ntfs            auto,rw                 0 0
/dev/sda3               /mnt/Video      ntfs            auto,rw                 0 0
/dev/sdb2               /mnt/Games      ntfs            auto,rw                 0 0
/dev/sdb1               /mnt/WareZ      ntfs            auto,rw                 0 0
/dev/sdc2               /boot           ext4            noauto,noatime          0 2
/dev/sdc3               none            swap            sw                      0 0
/dev/sdc4               /               ext4            noatime                 0 1
/dev/cdrom              /mnt/cdrom      auto            noauto,user             0 0
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1790

PostPosted: Sat Jun 28, 2014 2:58 pm    Post subject: Reply with quote

It sounds as if you might be booting from a CD, and are trying to edit the /boot directory
on the CD. Read-only filesystems otherwise can usually be cleared by running fsck.

I'd be inclined to boot through Windows to Grub; that way you avoid messing with (and
possibly messing up) Windows' MBR layout, though it adds 10 sec or so to the boot time.
Windows can be a bit neurotic about partitions, especially on laptops.

Will
Back to top
View user's profile Send private message
russK
Apprentice
Apprentice


Joined: 27 Jun 2006
Posts: 272

PostPosted: Sat Jun 28, 2014 3:23 pm    Post subject: Reply with quote

did you try a remount ?

Something like this
Code:
mount -o remount,rw /dev/sdc2 /boot
Back to top
View user's profile Send private message
mathias_redd
n00b
n00b


Joined: 20 Jun 2014
Posts: 17

PostPosted: Sat Jun 28, 2014 5:21 pm    Post subject: Reply with quote

Thank you very much. I unmounted my Gentoo boot partition:
Code:
umount /dev/sdc2
,
ran fsck:
Code:
fsck /dev/sdc2

and remounted the partition:
Code:
(chroot) sysresccd / # mount /boot

OR
Code:
root@sysresccd /root % mount /dev/sdc2 /mnt/gentoo/boot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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