LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-01-2008, 03:55 PM   #1
Unforgiven79
Member
 
Registered: May 2006
Location: Italy
Distribution: FC5, Suse 10
Posts: 70

Rep: Reputation: 15
Booting after partition has been shifted


Hello

I am facing the following problem:
I have a dual-boot system (PC Linux OS + Win XP); XP is on partition hd1, PCLOS USED TO BE on partition hd9
I had to re-install XP (of course, after 2.5 yrs), which of course smashed my Grub menu on MBR.
Furthermore, while installing XP, I asked to completely format what was C: and clever Windows shifted most my partitions on the partition table. Hence, PCLOS went on hd10.

Recovering Grub was little problem after all, via the live CD. I just had to setup it + editing the /boot/grub/menu.lst file by replacing "hd9" with "hd10" everywhere.
So, now Grub works again and launches PCLOS, but the latter booting then freezes at once and my laptop hard-drive LED starts blinking... is there any other file where I should change "hd9" to "hd10" to make work again? Or just too many?

Thank you
 
Old 09-01-2008, 04:12 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,526

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Probably /etc/fstab.

Did you mean xp was on hda1 and PCLOS was on hda9. What's on hda2-8? Might post your menu.lst and fdisk -l output for more accurate answers.
 
Old 09-01-2008, 04:15 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I'm not quite sure how a Windows install would shift partition numbers like that....but that's another story.

Assuming that you can recover by editing menu.lst, you need to edit two entries in each menu item:
Here is a typical entry--for the case where there is no separate partition for /boot:
Code:
title   Kubuntu
root (hd0,4)
kernel /boot/vmlinuz root=/dev/sda5
initrd /boot/initrd
boot
I have put the two entries to be changed in bold. The first tells GRUB where it's files are, and is in "grubese" ---(hd0,4) means the 5th partition on drive #1.
The second entry (in Linuxese) tells the kernel what partition to mount as /.
 
Old 09-01-2008, 04:17 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by yancek View Post
Probably /etc/fstab.
Yes, you may need to do this also...
 
Old 09-02-2008, 01:51 AM   #5
Unforgiven79
Member
 
Registered: May 2006
Location: Italy
Distribution: FC5, Suse 10
Posts: 70

Original Poster
Rep: Reputation: 15
Thanks for the hints. Now I am away from home, I will try them all and produce a feedback.

P.S. hda2-8 are just partitions with different subjects of data ("music", "programs")
 
Old 09-02-2008, 02:30 PM   #6
Unforgiven79
Member
 
Registered: May 2006
Location: Italy
Distribution: FC5, Suse 10
Posts: 70

Original Poster
Rep: Reputation: 15
Ehi, thanx!

I fixed the root entry in menu.lst and with that the PCLOS was launched and but notified an error after a while.
The I fixed the fstab file as well (/ and /home were wrong) and now everything works as before! I am now posting in my Linux environment...

Thank you again for your fast help!
 
Old 09-02-2008, 02:33 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
we like happy endings....

We REALLY like members who take the time to post feedback like this.
 
  


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
my reply at position #2 has been shifted to #3 baikonur LQ Suggestions & Feedback 3 06-13-2007 09:17 AM
screen split/shifted pelagic Linux - Laptop and Netbook 0 06-03-2005 02:12 AM
Booting from an extended partition - need a partition table editor Ouch_Taser Linux - General 2 02-10-2004 06:22 PM
screen is shifted to the right in mandrake odogg Linux - Newbie 3 11-25-2003 03:01 PM
MDK9.1 display shifted Samsara Linux - Laptop and Netbook 5 06-05-2003 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:33 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