LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-02-2008, 05:50 AM   #1
steved123
Member
 
Registered: May 2002
Location: New Hampshire
Distribution: Fedora Core 6 X86-64
Posts: 82

Rep: Reputation: 15
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
 
Old 06-02-2008, 07:13 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
I don't know how to interpret your fstabs (what's that LABEL thing do?), but you have the right idea. Use ntldr to chain to Grub, and alter menu.lst and 'fstab' to account for the fact that the drive is now 'sdb'.

Last edited by pinniped; 06-02-2008 at 07:16 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora core 3 cannot detect sata hard drive in intel motherboard S5000VSA ablanc Linux - Newbie 3 04-08-2008 06:15 AM
Adding/removing SATA drive redoaks Linux - Newbie 5 03-09-2006 06:34 AM
cannot access SATA hard drive in Fedora Core 4 [42]Sanf0rd Linux - Hardware 7 01-26-2006 02:37 PM
Adding a SATA internal hard drive matSA289 Linux - Hardware 2 01-04-2006 12:19 PM
Adding a new hard drive to Fedora Core yong_sa Fedora 1 07-17-2004 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration