Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-17-2003, 06:56 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
edit boot disk after changing drive to slave?


I just added a new hard drive and made it master. I can't boot into RH 9 anymore and I get the kernel panic: no init message. I am wondering if I can edit the boot disk and if so what would the staement be. I was booting off the disk not Grub or Lilo.

Old 11-17-2003, 07:03 PM   #2
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
geez, you have to make the new hd slave or it will not work.
consider installing boot loader, once you get it up and running again.

Last edited by Mikhail_16; 11-17-2003 at 07:04 PM.
Old 11-17-2003, 07:27 PM   #3
LQ Newbie
Registered: Oct 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks but I needed to put Windows98 and XP back on the new drive and Win98 needs to be C:, etc. Also I wanted to dedicate the old drive to RH9.

Been setting up the bootloaders, twice Grub crapped out on me and left me re-installing and this last time XP glitched. Will try again but I wish there was a way to back up the MBR in case the bootloader dumps again.
Old 11-17-2003, 08:01 PM   #4
Registered: Aug 2002
Posts: 17,825

Rep: Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401
To restore the MBR all you need to do is boot the XP install CD to recovery mode and run the fixmbr utility or a Win98 emergency boot floppy and run fdisk /mbr.

By boot disk do you mean a boot floppy? You will need to boot the 1st install cd to rescue mode. This should mount your root partition at /mnt/sysimage. Now:

chroot /mnt/sysimage

Edit the /etc/fstab file and change anything that is label /dev/hdax to the new location of the drive.

mkbootdisk <kernel_version>

You can find kernel version from:
uname -a

See man pages for mkbootdisk for details. If not mkbootdisk then bootdisk.
Old 11-17-2003, 10:26 PM   #5
LQ Newbie
Registered: Oct 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reply Michael. Tried booting Rescue using the disc but it didn't see any of the partitions. I then went a little further and started to re-install, when it checked for previous installations it said it saw the install but it wasn't initiallized and did I want to continue and lose all data.

I'm going to clean up the disk and re-install.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to boot from Slave hard disk? TigerLinux Linux - General 10 10-08-2005 02:44 AM
Grub Doesn't Boot Slave Disk, After Autoconfig by SUSE Swords SUSE / openSUSE 6 02-10-2005 05:41 PM
Changing disk drive label Davisgwin Linux - Hardware 8 09-29-2004 03:50 AM
WinXP dual boot on slave drive - possible ? mudflye Linux - General 3 09-04-2004 05:18 AM
Duel Boot XP With Linux Booting From Slave Drive Toje Linux - Newbie 9 02-08-2004 04:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:52 PM.

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