LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux won't start after modifying partition (https://www.linuxquestions.org/questions/linux-newbie-8/linux-wont-start-after-modifying-partition-385141/)

rufus1 11-21-2005 07:52 AM

Linux won't start after modifying partition
 
Hello,

I had a working installation of SUSE Linux 10.0 on my system. The drive has XP, the linux root, swap, and a data partition. I wanted to delete the data partition (because it's ntfs) and create a linux native type of partition. the SUSE YAST tool would not let me do it. So I went to Partition Magic and did it there.

Now when I start up it says, "GRUB Loading" and then "Error 17." Maybe there is a problem with grub.. So I go into Knoppix, chroot to my linux root, and run "grub-install /dev/hdc" (grub was installed to mbr) and it tells me:

The file /boot/grub/stage1 not read correctly.

Any ideas? :confused:

purelithium 11-21-2005 09:46 AM

Your partition table was modified by PM. grub is looking for linux root on a certain partition, but it's not there anymore because your partitions were re-numbered by PM. You have to go into your grub configuration files and re-adjust the partition numbers. This can be done by running fdisk and copying down the partition table, and then changing where they are referenced in the grub config file. Although this is a little in-depth for a newbie, I would suggest re-installing SUSE, without formatting your home partition, or if you didn't have a home partition, I would highly recommend you make one so that you don't have to erase your GUI configuration whenever you re-install.

rufus1 11-21-2005 10:03 AM

So all I need to do is change the #5 in my grub.conf (below)?

setup --stage2 =/boot/grub/stage2 (hd1,5) (hd1,5)
setup --stage2 =/boot/grub/stage2 (hd0) (hd1,5)


I'm not sure this is the case, because in Knoppix I am accessing my linux root as hdc5.

In my fdisk list, I see the new data partition is hdc3. The partition is at the end of the drive, but it takes a # in the middle. Does that matter?

rufus1 11-21-2005 12:21 PM

Actually, this is a good time to wipe the drive and reinstall. I need to redo my partitions anyway.

Thanks for your reply.

crapodino 11-28-2005 03:54 PM

i boot with my suse cd 1, i enter to the rescue..and there i trie this:

grub-install /dev/hdc
and i have this error:
Probing devices to guess Bios driuver. This may take a long time.
/dev/hdc does not have any corresponding bios driver


what can i do ???????


All times are GMT -5. The time now is 02:45 AM.