LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   How to edit /boot/grub/menu.lst of the host (http://www.linuxquestions.org/questions/linux-from-scratch-13/how-to-edit-boot-grub-menu-lst-of-the-host-366823/)

satimis 09-25-2005 05:53 AM

How to edit /boot/grub/menu.lst of the host
 
Hi folks,

BLFS 6.1

This is a dual boot box. BLFS 6.1 and FC3, the host.

While running BLFS 6.1 I'm not allowed to visit /boot/grub/menu.lst of the host, FC3. I made 2 tests as follows;

1)
After chroot FC3

root@localhost:/# ls
Code:

bin            dev  home2  lost+found  mnt      proc  selinux  tmp    var
binutils-build  etc  initrd  media      opt      root  srv      tools
boot            home  lib    misc        poweroff  sbin  sys      usr

showing the directories of FC3

root@localhost:/# ls -al /boot/
Code:

total 16
drwxr-xr-x  2 root root 4096 May 20 19:49 .
drwxr-xr-x  25 root root 4096 Sep 24 13:12 ..

The directory /boot/grub not found.

root@localhost:/# find / -name menu.lst
Code:

/usr/share/doc/grub-0.95/menu.lst
find: /proc/1/task: Permission denied
find: /proc/2/task: Permission denied
find: /proc/3/task: Permission denied
find: /proc/4/task: Permission denied
find: /proc/5/task: Permission denied
.....

2)
Mounting '/' of FC3

root@localhost:/home/satimis# mount /dev/hda2 /mnt/fcroot/
root@localhost:/home/satimis# find /mnt/fcroot/ -name menu.lst
Code:

/mnt/fcroot/usr/share/doc/grub-0.95/menu.lst
/boot/grub/menu.lst not found.

Please advise how to authenticate BFLS 6.1 to visit/edit /boot/grub/menu.lst of FC3 temporarily. TIA

BR
satimis

freakyg 09-25-2005 07:21 AM

you can't!............even tho you are in ..........

Code:

/mnt/lfs/usr/lib
chroot considers the top directory to be /usr
and you can't see/edit/visit /mnt or /mnt/lfs
they dont exist as far a chroot is concerned..........


All times are GMT -5. The time now is 09:11 PM.