MEPIS Community Forum

A Linux operating system based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 7 posts ] 
Grub problems 
Author Message
MEPIS Novice
MEPIS  Novice

Joined: Mon Apr 02, 2012 6:42 am
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
Post # 298129
Post Grub problems
I have a system with 4 sata drives in it, I initially installed Mepis to Sdc with all the other drives disconnected but then found I could not access my ntfs partitions after the drives had been reconnected and Mepis booted. I then reinstalled to Sdc with all the drives in place and had grub placed on the boot drive MBR (sda) where windows and wubi ubuntu sit.
'Grub error 17'
So I then used windows repair to restore my mbr.
Then reinstalled Mepis again to sdc but this time had grub placed in the mbr of sdc.
I now get drives not found for the Mepis bootup and the only windows boot that works is for sdb but my windows is not on that drive.

Here is a copy of menu.lst
timeout 10
color cyan/blue white/blue
foreground ffffff
background 0639a1

gfxmenu /boot/grub/message

title MEPIS at sdc1, newest kernel
root (hd2,0)
kernel /boot/vmlinuz root=/dev/sdc1 nomce quiet splash vga=788
initrd /boot/initrd.img
boot

title MEPIS at sdc1, kernel 2.6.36-1-mepis-smp
root (hd2,0)
kernel /boot/vmlinuz-2.6.36-1-mepis-smp root=/dev/sdc1 nomce quiet splash vga=788
initrd /boot/initrd.img-2.6.36-1-mepis-smp
boot

title Microsoft Windows XP Home Edition at sda1
rootnoverify (hd0,0)
chainloader +1

title Microsoft Windows XP Professional at sdb1
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1

title MEMTEST
kernel /boot/memtest86+.bin


Also here is the result of sudo blkid in Ubuntu

/dev/loop0: UUID="9d96ecaa-cce9-47be-9b65-8e7cee18a4b8" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda1: UUID="78846A268469E6DA" TYPE="ntfs"
/dev/sda2: UUID="4548-07E3" TYPE="vfat"
/dev/sdc1: UUID="6d054420-046c-4a7c-9170-5ee1727b6a67" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc2: UUID="3aa8a6e2-87cc-48c9-9fc1-b428dea1519c" TYPE="swap"
/dev/sdb1: UUID="BEA683EA7308F219" TYPE="ntfs"
/dev/sdd5: LABEL="Terror Bite" UUID="01C9887A068F44D0" TYPE="ntfs"
/dev/sde1: SEC_TYPE="msdos" UUID="4483-73F0" TYPE="vfat"


Can someone out there see an answer ?


Mon Apr 02, 2012 7:32 am
Profile
MEPIS Guide
MEPIS Guide
User avatar

Joined: Wed Jul 12, 2006 4:30 pm
Posts: 1456
Location: Flinthills of Kansas, USA
Has thanked: 253 times
Have thanks: 139 times
Post # 298135
Post Re: Grub problems
maybe research here> http://www.dedoimedo.com/computers/grub-2.html :snail: Jerry

_________________
http://patentabsurdity.com/
AMD 64x2 2.6GHz 4GB ram M-11.9.92 kernel 3.10-3-amd64 kde 4.11.5 mixed/unstable
"beware a frequent flirt with potential disaster"


Mon Apr 02, 2012 11:33 am
Profile
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Sat Nov 11, 2006 10:42 pm
Posts: 4279
Has thanked: 114 times
Have thanks: 850 times
Post # 298137
Post Re: Grub problems
From the live disk, open a terminal, then

su
grub

grub> root (hd2,0)
grub> setup (hd0)
grub> quit

That should get you booting to your new MEPIS install. You may have to edit that install's menu.lst file to get your other installs to boot from there.

_________________
Desktop: Custom build Asus/AMD/nVidia -- MEPIS 11
Netbook: Fujitsu Lifebook Pentium M -- MX-14
Laptop: Acer Aspire 5250 AMD Dual -- SolydK 64


Mon Apr 02, 2012 11:52 am
Profile
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Sat Nov 11, 2006 10:42 pm
Posts: 4279
Has thanked: 114 times
Have thanks: 850 times
Post # 298138
Post Re: Grub problems
uncle mark wrote:
From the live disk, open a terminal, then

su
grub

grub> root (hd2,0)
grub> setup (hd0)
grub> quit

That should get you booting to your new MEPIS install. You may have to edit that install's menu.lst file to get your other installs to boot from there.


Edit (addition): Also, from the live disk, use gparted or equivalent and set the 'boot' flag for hd0.

Once you've done the above, edit your menu.lst file to look like this:

Code:
timeout 10
color cyan/blue white/blue
foreground ffffff
background 0639a1

gfxmenu /boot/grub/message

title MEPIS at sdc1, newest kernel
root (hd2,0)
kernel /boot/vmlinuz root=/dev/sdc1 nomce quiet splash vga=788
initrd /boot/initrd.img
boot

title MEPIS at sdc1, kernel 2.6.36-1-mepis-smp
root (hd2,0)
kernel /boot/vmlinuz-2.6.36-1-mepis-smp root=/dev/sdc1 nomce quiet splash vga=788
initrd /boot/initrd.img-2.6.36-1-mepis-smp
boot

title Microsoft Windows XP Home Edition at sda1
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
chainloader +1

title Microsoft Windows XP Professional at sdb1
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1

title MEMTEST
kernel /boot/memtest86+.bin

_________________
Desktop: Custom build Asus/AMD/nVidia -- MEPIS 11
Netbook: Fujitsu Lifebook Pentium M -- MX-14
Laptop: Acer Aspire 5250 AMD Dual -- SolydK 64


Last edited by uncle mark on Mon Apr 02, 2012 4:00 pm, edited 1 time in total.



Mon Apr 02, 2012 12:03 pm

uncle mark thanked by: lucky9
Profile
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Wed Jul 12, 2006 5:54 am
Posts: 10746
Location: Tulsa, Oklahoma U.S.A.
Has thanked: 3511 times
Have thanks: 848 times
Post # 298141
Post Re: Grub problems
Yes. It looks like the two Windows were confusing GRUB as to where they were. Mainly because Windows likes the first hard disk/partition in a system and GRUB knows it. Mapping should fix that problem.

Welcome to the forum. :welcome:

_________________
Yes, even I am dishonest. Not in many ways, but in some. Forty-one, I think it is.
--Mark Twain


Mon Apr 02, 2012 12:18 pm
Profile
MEPIS Novice
MEPIS  Novice

Joined: Mon Apr 02, 2012 6:42 am
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
Post # 298161
Post Re: Grub problems
Changing the Mepis drive to hd0,0 fixed it but I don't begin to understand it.
Seems a bit counterintuitive to me but thanks for realising that it was hd0, I never would have tried it.


Mon Apr 02, 2012 6:15 pm
Profile
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Wed Jul 12, 2006 5:54 am
Posts: 10746
Location: Tulsa, Oklahoma U.S.A.
Has thanked: 3511 times
Have thanks: 848 times
Post # 298163
Post Re: Grub problems
It's a well-known Windows problem. It expects (requires really) to be first on a disk even in a multi-disk system if I remember right. Once GRUB knows this it can fool Windows.

_________________
Yes, even I am dishonest. Not in many ways, but in some. Forty-one, I think it is.
--Mark Twain


Mon Apr 02, 2012 7:31 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.