LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-21-2005, 07:52 AM   #1
rufus1
LQ Newbie
 
Registered: Nov 2005
Location: New York
Distribution: SUSE 10
Posts: 10

Rep: Reputation: 0
Question 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?
 
Old 11-21-2005, 09:46 AM   #2
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
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.
 
Old 11-21-2005, 10:03 AM   #3
rufus1
LQ Newbie
 
Registered: Nov 2005
Location: New York
Distribution: SUSE 10
Posts: 10

Original Poster
Rep: Reputation: 0
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?

Last edited by rufus1; 11-21-2005 at 10:58 AM.
 
Old 11-21-2005, 12:21 PM   #4
rufus1
LQ Newbie
 
Registered: Nov 2005
Location: New York
Distribution: SUSE 10
Posts: 10

Original Poster
Rep: Reputation: 0
Actually, this is a good time to wipe the drive and reinstall. I need to redo my partitions anyway.

Thanks for your reply.
 
Old 11-28-2005, 03:54 PM   #5
crapodino
Member
 
Registered: Aug 2005
Distribution: SuSE 10
Posts: 72

Rep: Reputation: 15
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 ???????
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
modifying a linux database. alejan74 Linux - General 5 02-15-2005 03:19 PM
modifying linux core spyghost Linux - Software 3 12-03-2004 09:53 AM
Can you install linux to a partition that start after the 1024th Cylinder BlankFrank Fedora 13 02-13-2004 04:40 PM
how to start linux after deleting boot partition phikapjames Linux - Software 1 07-17-2003 02:48 AM
Modifying files in Linux partition from Windows yrraja Linux - General 6 05-09-2003 05:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:30 AM.

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