adding sata hard drive with Fedora 8 already on it
I'd like to move my Fedora drive into a machine that has windows xp on it now. The drive is currently sda in it's machine. It will end up being sdb in the next setup. I've already made a copy of the boot sector of the Fedora drive and copied it to c: on the xp machine. I've also set up NTLDR to refer to that boot sector file.
Now in a few days, I will be getting a nice new case and power supply. I think that I'll have to edit the grub config file and the fstab file.
I'd appreciate comments on the chances of this working.
device.map:
# this device map was generated by anaconda
(hd0) /dev/sda
proposed change
# this device map was generated by anaconda
(hd1) /dev/sdb
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
grub.config:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.24.7-92.fc8)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24.7-92.fc8 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.24.7-92.fc8.img
title Fedora (2.6.24.5-85.fc8)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24.5-85.fc8 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.24.5-85.fc8.img
proposed change
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-version.img
#boot=/dev/sdb
default=0
timeout=5
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.24.7-92.fc8)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24.7-92.fc8 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.24.7-92.fc8.img
title Fedora (2.6.24.5-85.fc8)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24.5-85.fc8 ro root=LABEL=/2 rhgb quiet
initrd /boot/initrd-2.6.24.5-85.fc8.img
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fstab:
LABEL=/1 / ext3 defaults 1 1
LABEL=/home /home ext3 defaults 1 2
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
LABEL=SWAP-sda2 swap swap defaults 0 0
proposed change
LABEL=/2 / ext3 defaults 1 1
LABEL=/home /home ext3 defaults 1 2
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
LABEL=SWAP-sdb2 swap swap defaults 0 0
|