LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 08-21-2006, 02:34 PM   #1
matulike
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Rep: Reputation: 0
GRUB broken on dual boot laptop


Hi,

NOt totally sure if this is the right place, but i think the GRUB loader is more to do with Linux than anything else in this post!

I have just completely reinstalled my laptops after problems with dual booting before (using Norton Partition Magic). I reinstalled XP - after creating 4 partitions on my 40GB laptops drive:

7GB NTFS Windows
5GB EXT2 Linux
500MB SWAP
25GB FAT32 - shared data storage for both OS's

I installed XP, all fine, then installed SuSe 10.1, also all fine.

Booted to both (via the SuSe loader) (Windows is just another option). Updated both, and had bit of play around...didnt change anything thogugh, only really installed a few apps on the windows install.
So, anyway, now when I start the laptop it just comes up with:

GNU GRUB version 0.97 (636k lowe / 1039174k upper memory)

[Minimal BASH-like line editing is supported. For the forst word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ]

grub>

I have done some more research:

OK, I've looked into this a bit, and it seems there's some bad config in the grub.conf file.
So, I tried to load the kernel:

root (hd0,6)
kernel (hd0,6)/boot/vmlinuz
boot

And it loads the kernel but it fails to mount the root.

The actual error is:

VFS: Cannot open root device "<NULL>" or unknown-block(8,6)
Please appeand a correct "root=" boot option
Kernel panic - not suncing: VFS: Unable to mount root fs on unkonwn-block (8,6)

Now when I try to reinstall GRUB, I get this error:

I keep getting an error when I try to reinstall it! (

Error 21: Selected disk does not exist
grub> install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0,6) /boot/grub/stage2 0x8000 (hd0,6)/boot/grub/menu.lst

Error 12: Invalid Device requested
grub> install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (/boot) /boot/grub/stage2 0x8000 (hd0,6)/boot/grub/menu.lst


Here is how the config file looks:

# Modified by YaST2. Last modification on Mon Aug 21 20:54:15 BST 2006

color white/blue black/light-gray
default 0
timeout 10
gfxmenu (hd0,6)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux 10.1
root (hd0,6)
kernel .boot/vmlinuz root=/dev/hda7 resume=/dev/hda6 splash=silent showopts
initrd /boot/initrd


title Windows
chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE Linux 10.1
root (hd0,6)
kernel /boot/vmlinuz root=/dev/hda7 showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd

Just so it's written down here';s the /etc/grub.conf too:

root (hd0,6)
install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0,6) /boot/grub/stage2 0x8000 (hd0,6)/boot/grub/menu.lst
install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) /boot/grub/stage2 0x8000 (hd0,6)/boot/grub/menu.lst
quit

And /boot/grub/device.map:

(hd0) /dev/hda


If anyone can tell me how this SHOULD look, or what might be wrong, I'd really appreciate it ;o)

Basically I think I just need to know where to put the boot loader (/dev/hda?) or on the Linux partition? And should I replace MBR with generic code and activate partition?

For SUSE it has Image/Device: /boot/vmlinuz (/dev/hda7, root=/dev/hda7)

Could a Windows update have screwed this up??? I saw that SP2 could mess it up on another forum...I cant see it myself, but gotta ask ;p

It worked, I didnt change anything, I rebooted and then it didnt work!

Thanks in advance for ANY amount of help or support you can give on this...i'd only just reinstalled the whole laptop specifically to dual boot, I've done all the Windows config so would rather not start from scratch! The partitions aren't dmaaged anyway (I dont think) so i just need to sort out this boot problem...! Maybe use LiLo? I just want to get to the bottom of the GRUB problem anyway.

Last edited by matulike; 08-21-2006 at 02:50 PM.
 
Old 08-21-2006, 02:49 PM   #2
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 12 LXDE
Posts: 555

Rep: Reputation: 33
Well for a start your root partition is on (hd0,1) not (hd0,6). And I don't know why your kernel line is pointing to hda7 when it should be hda2. So you should edit these and see if it works.
As for whether SP2 could screw this up, it rather depends on whether it writes to the MBR, but I shouldn't think so.
 
Old 08-21-2006, 03:09 PM   #3
matulike
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Um, the SuSe root is on hda7.

the partitions were created in windows setup initially. I formatted C: with NTFS (7GB for Windows), then left 500MB for a swap file, then formatted about 25GB FAT32 to share between the 2 OS's, then the rest was 5GB which I just left alone (for SuSe).

I did those changes but I still get that error.

Will doing a full reinstall of SuSe install a newly configured boot loader too?

I think I'm gonna try that...

Just looking htru:

/dev/hda is the whole HDD
/dev/hda1 is the 7.9GB NTFS partition for Windows
/dev/hda2 is ... hmmm... not sure - it says 29.3GB Extended
/dev/hda5 is the FAT32 23.9GB partition
/dev/hda6 is the 500MB Swap partition
/dev/hda7 is the 4.9GB Linux Native - where SuSe was installed

Last edited by matulike; 08-21-2006 at 03:17 PM.
 
Old 08-21-2006, 03:35 PM   #4
matulike
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Reinstalled SuSe - fixed it!

)
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
broken MBR on dual-boot drive blastradius Ubuntu 4 08-18-2006 06:44 AM
[Panic] Grub fail to dual boot win XP/Fedora Core 3 on Dell Laptop Latitude D610 syseeker Linux - Software 15 04-17-2006 06:32 AM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Dual boot, dual drives. Where to put GRUB? rgbrock1 Linux - Newbie 5 10-02-2004 10:56 AM
Trying to dual-boot XP and RH9 with GRUB...GRUB stops right after BIOS EvilYoda Linux - Newbie 5 06-20-2003 03:38 PM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration