All pastes #837874 Raw Edit

Something

public text v1 · immutable
#837874 ·published 2007-12-29 23:41 UTC
rendered paste body
          kernel /boot/vmlinuz-version ro root=/dev/sde5
#          initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd4,4)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.9-85.fc8)
        root (hd4,4)
        kernel /boot/vmlinuz-2.6.23.9-85.fc8 ro root=LABEL=/12 rhgb quiet nodma=
ide
        initrd /boot/initrd-2.6.23.9-85.fc8.img
title Fedora (2.6.23.8-34.fc7)
        root (hd4,4)
        kernel /boot/vmlinuz-2.6.23.8-34.fc7 ro root=LABEL=/12 rhgb quiet nodma=
ide
        initrd /boot/initrd-2.6.23.8-34.fc7.img
title Windows 2000
        rootnoverify (hd1,0)
        map (hd0) (hd1)
        map (hd1) (hd0)
        makeactive
        chainloader +1


---------------------------

blockdev --report
RO    RA   SSZ   BSZ   StartSec     Size    Device
rw   256   512  4096          0  312581808  /dev/sda
rw   256   512  4096         63  312576642  /dev/sda1
rw   256   512  4096          0  398297088  /dev/sdb
rw   256   512  4096         63   99570807  /dev/sdb1
rw   256   512  1024   99570870          2  /dev/sdb2
rw   256   512  4096   99570933   99554742  /dev/sdb5
rw   256   512  4096  199125738   99586872  /dev/sdb6
rw   256   512  4096  298712673   99570807  /dev/sdb7
rw   256   512  4096          0  120103200  /dev/sdc
rw   256   512  2048         63   51199092  /dev/sdc1
rw   256   512  4096   51199155   68902785  /dev/sdc2
rw   256   512  4096          0  156301488  /dev/sdd
rw   256   512  2048         63   19197612  /dev/sdd1
rw   256   512   512   19342260  136954125  /dev/sdd2
rw   256   512  4096          0  240121728  /dev/sdf
rw   256   512  4096         63  167766732  /dev/sdf1
rw   256   512  4096  167766795   72340695  /dev/sdf2
rw   256   512  4096          0  625142448  /dev/sdg
rw   256   512   512         63    8385867  /dev/sdg1
rw   256   512  4096    8385930  616751415  /dev/sdg2
rw   256   512  4096          0     256000  /dev/sdh
rw   256   512  4096         32     255968  /dev/sdh1


-------------------------------

 more /etc/fstab
LABEL=/12               /                       ext3    defaults        1 1
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/sda2              swap                    swap    defaults        0 0
/dev/sdf1               /home                   auto    defaults        1 2
/dev/sda1               /Isperia                auto    defaults        1 2
/dev/sdf2               /Publishing/WorksInProgress     auto    defaults
1 2
/dev/sdb1               /mnt/Thrash             auto    defaults        1 2
/dev/sdg2               /mnt/Migration          auto    defaults        1 2
/dev/sdb6               /mnt/Archives           auto    defaults        1 2
/dev/sdb7               /mnt/Websites           auto    defaults        1 2
/dev/sdc2               /Publishing/BookArchives        auto    defaults



sda == (hd0   Referenced by grub and used by Windows  * MBR is here
sdb == (hd1   Referenced by grub and used by Windows
sdc == (hd2   
sdd == (hd3   To be removed
sdf == (hd4   Referenced by grub and root FS for linux LABEL=/12   
sdg == (hd5
sdh == (hd6


#### After sdd is removed
sda == (hd0   Referenced by grub and used by Windows  * MBR is here
sdb == (hd1   Referenced by grub and used by Windows
sdc == (hd2   
sdd == (hd3   Referenced by grub and root FS for linux LABEL=/12   ( was sdf == (hd4 ) ## Need to edit grub.conf
sdf == (hd4   Was sdg == (hd5
sdg == (hd5   Was sdh == (hd6



### Changed fstab
LABEL=/12               /                       ext3    defaults        1 1
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/sda2              swap                    swap    defaults        0 0
/dev/sdd1               /home                   auto    defaults        1 2
/dev/sda1               /Isperia                auto    defaults        1 2
/dev/sdd2               /Publishing/WorksInProgress     auto    defaults
1 2
/dev/sdb1               /mnt/Thrash             auto    defaults        1 2
/dev/sdf2               /mnt/Migration          auto    defaults        1 2
/dev/sdb6               /mnt/Archives           auto    defaults        1 2
/dev/sdb7               /mnt/Websites           auto    defaults        1 2
/dev/sdc2               /Publishing/BookArchives        auto    defaults

## Changed grub.conf

#boot=/dev/sda
default=0
timeout=5
splashimage=(hd3,4)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.9-85.fc8)
        root (hd3,4)
        kernel /boot/vmlinuz-2.6.23.9-85.fc8 ro root=LABEL=/12 rhgb quiet nodma=
ide
        initrd /boot/initrd-2.6.23.9-85.fc8.img
title Fedora (2.6.23.8-34.fc7)
        root (hd3,4)
        kernel /boot/vmlinuz-2.6.23.8-34.fc7 ro root=LABEL=/12 rhgb quiet nodma=
ide
        initrd /boot/initrd-2.6.23.8-34.fc7.img
title Windows 2000
        rootnoverify (hd1,0)
        map (hd0) (hd1)
        map (hd1) (hd0)
        makeactive
        chainloader +1




Steps:
 - Edit grub.conf as above
 - Edit fstab as above
 - Shutdown and remove disk drive
 - Boot