[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Thu, 28 Jun 2007 07:33:14 -0700, Thufir wrote:

> pardon if I posted this before.  I was working on grub last night. Win2k
> and Fedora 7 are on sda (hda) while FC3 is on sdb (hdb).  The MBR on sda
> is being used, I believe.
> Which grub do I edit to get all OS's booting?  I tried a few variations,
> mucking with the one in /boot/grub/... from FC3, but wasn't able to hit
> on the correct combination.

Got it, mostly :)

Down the road, I'd like /boot/grub/... from Fedora 7 to be the grub file 
use, but, eh, no big deal at the moment :)

[[email protected] ~]# 
[[email protected] ~]# cat /mnt/sdb1/grub/grub.conf -n
     1  # grub.conf generated by anaconda
     2  #
     3  # Note that you do not have to rerun grub after making changes to 
this file
     4  # NOTICE:  You have a /boot partition.  This means that
     5  #          all kernel and initrd paths are relative to /boot/, eg.
     6  #          root (hd1,0)
     7  #          kernel /vmlinuz-version ro root=/dev/VolGroup01/
     8  #          initrd /initrd-version.img
     9  #boot=/dev/hda
    10  default=0
    11  timeout=15
    12  splashimage=(hd1,0)/grub/splash.xpm.gz
    13  #hiddenmenu
    14  title Fedora Core (2.6.9-1.667)
    15          root (hd1,0)
    16          kernel /vmlinuz-2.6.9-1.667 ro root=/dev/VolGroup01/
LogVol00 rhgb quiet
    17          initrd /initrd-2.6.9-1.667.img
    18  title Other
    19          rootnoverify (hd0,0)
    20          chainloader +1
    22  title Fedora (2.6.21-1.3228.fc7)
    23          root (hd0,1)
    24          kernel /vmlinuz-2.6.21-1.3228.fc7 ro root=LABEL=/ rhgb 
    25          initrd /initrd-2.6.21-1.3228.fc7.img
[[email protected] ~]# 
[[email protected] ~]# cat /etc/fstab 
LABEL=/                 /                       ext3    defaults        1 
LABEL=/boot             /boot                   ext3    defaults        1 
tmpfs                   /dev/shm                tmpfs   defaults        0 
devpts                  /dev/pts                devpts  gid=5,mode=620  0 
sysfs                   /sys                    sysfs   defaults        0 
proc                    /proc                   proc    defaults        0 
/dev/VolGroup00/LogVol01 swap                    swap    defaults        
0 0
/dev/VolGroup01/LogVol01 swap                    swap    defaults        
0 0
/dev/sda1               /mnt/sda1               ntfs-3g users,rw        0 
/dev/sdb1               /mnt/sdb1               ext3    users,rw        0 
[[email protected] ~]# 
[[email protected] ~]# mount
/dev/mapper/VolGroup00-LogVol00 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/sda2 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /mnt/sda1 type fuseblk 
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /mnt/sdb1 type ext3 (rw,noexec,nosuid,nodev)
[[email protected] ~]# 
[[email protected] ~]# fdisk

Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda  (for the first IDE disk)
  or: fdisk /dev/sdc  (for the third SCSI disk)
  or: fdisk /dev/eda  (for the first PS/2 ESDI drive)
  or: fdisk /dev/rd/c0d0  or: fdisk /dev/ida/c0d0  (for RAID devices)
[[email protected] ~]# 
[[email protected] ~]# cat /etc/fedora-release 
Fedora release 7 (Moonshine)
[[email protected] ~]# 
[[email protected] ~]# date
Fri Jun 29 01:07:34 PDT 2007
[[email protected] ~]# 
[[email protected] ~]# 

(just random trial and error with different combinations of bootloader +1 
with no idea of what it really does.)



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]
  Powered by Linux