LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to start linux after deleting boot partition (https://www.linuxquestions.org/questions/linux-software-2/how-to-start-linux-after-deleting-boot-partition-73460/)

phikapjames 07-17-2003 02:36 AM

how to start linux after deleting boot partition
 
I was currently using Redhat 9.0. I had 3 hard drives set up the following way:

First Primary: boot partition and misc stuff (not important to linux)
First Secondary: everything but /home /swap /boot
Second Primary:
Second Secondary: /home /swap

The problem comes in that I took the primary out and stuck it in another computer (reformatted) and then I remembered later that I needed to get my mysql info off of the old one.

Is there a way that I can get the computer to boot up and load the linux on there so I can get the mysql info off?

ppuru 07-17-2003 02:48 AM

You can boot from the Linux Distribution CD and get the system up in Rescue Mode.

chroot /mnt/sysimage to mount your linux partitions
mkbootdisk <kernel version>

With this, you will be boot your system from a boot floppy.

Alternatively, you can make the disk that linux is installed on as a master and install lilo/grub, again, after getting your system into rescue mode.

While trying this second option, you will need to make a change in your /etc/fstab to help it recognise the swap drive.

Please click the AFFERO button if my answer helped.


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