LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices

Reply
 
Search this Thread
Old 09-28-2008, 06:00 PM   #1
brjoon1021
Member
 
Registered: Dec 2003
Posts: 152

Rep: Reputation: 16
Install problem: GParted/installer and GRUB see disks layout differently.


(solved) Thanks

Hi

I have three disks: All are IDE drives, one is attached to the motherboard's VIA controller and the other two are attached to a Promise PCI slot IDE card. No distro has any trouble seeing the Promise card drives, nor is that the problem here.

Here is what is going on: When I am installing Mepis, GParted tells me that the second partition of the drive that I want to install on is /dev/sdc2. I am dual-booting with ubuntu on the first partition of that drive "/dev/sdc1", which GParted and the installer do see as /dev/sdc1. Now, once I have installed Mepis and reboot, GRUB tries to boot Mepis at (hd2,1) and ubuntu at (hd2,0). Neither will boot because they are actually at: "(hd0,0) and (hd0,1)" respectively. I know how to edit the GRUB menu.lst to reflect the correct orientation. But, when I run a total update of Mepis with synaptic Mepis ends up broken. Even if I go back and update the GRUB menu.lst, Mepis is still shot.

There must be a kernel or other update going on that changes the kernel or boot order or something fundamental. I have reinstalled Mepis 4 times in the last two days and it will not survive the update. Also, as soon as I run the synaptic update, the GRUB that won't boot mepis has four new debian entries in addition to the 3 or 4 that were originally there for Mepis. For clarification: Mepis's GRUB is in the MBR of the disk and Ubuntu is being direct booted, I assume, because Mepis' GRUB thanfully picked up ubuntu's kernel and will boot it. I originally had Ubuntu's GRUB in the MBR.

What can I do ?

Forum: Newbies

Last edited by brjoon1021; 10-01-2008 at 11:21 AM. Reason: solved
 
Old 09-28-2008, 06:03 PM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have a look in /boot/grub at device.map and see if that represents the mapping correctly.
 
Old 09-28-2008, 06:42 PM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
Install grub to the MBR and install a grub of Mepis on its root and chainload.
 
Old 09-28-2008, 08:12 PM   #4
brjoon1021
Member
 
Registered: Dec 2003
Posts: 152

Original Poster
Rep: Reputation: 16
billymayday,
nope, the device map is bassackwards, here it is:

(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc

Do I just need to edit it ? If so, do I have to run "sudo update-grub" afterwards?

amani,

I already have a GRUB in the MBR, it was installed with Mepis, it overwrote the previous GRUB of Ubuntu. I don't know how to place the GRUB of Mepis in the root (now that I am already installed...) so that I can chainload. I am using the smaller, lighter version of Mepis called Mepis AntiX. It might not have all of the candy that the big KDE version has. Can you tell me how to do so ?

Last edited by brjoon1021; 09-28-2008 at 08:16 PM. Reason: additional information
 
Old 09-28-2008, 08:15 PM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'm not clear from your earlier posts what the order should be, but if they are incorrect, correct them and rerun grub-install.
 
Old 09-28-2008, 09:03 PM   #6
brjoon1021
Member
 
Registered: Dec 2003
Posts: 152

Original Poster
Rep: Reputation: 16
should be:

(hd0) /dev/sdc
(hd1) /dev/sdb
(hd2) /dev/sda

as far as I can tell because ubuntu and mepis are on the drive that gparted is calling sdc. When grub says hd2, they won't boot. When GRUB says hd0 for them, they will boot. So, I believe that the above must be correct.

what do you mean by "rerun grub-install" ? Is that a command from terminal ?
 
Old 09-28-2008, 09:33 PM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Edit the file with your favourite editor.

grub-install is a command (a script actually). Have a look at man grub-install. It's pretty straightforward
 
Old 09-29-2008, 09:50 AM   #8
brjoon1021
Member
 
Registered: Dec 2003
Posts: 152

Original Poster
Rep: Reputation: 16
Thanks. I looked at the man grub-install. I don't think that it looks straightforward... There is not even one example of what a complete command looks like.

I want GRUB at the MBR of hdc.

I tried "install-Grub /dev/hdc" and it says not found or not a block device
 
Old 09-29-2008, 05:18 PM   #9
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
But your drives are sd?, so

grub-install /dev/sdc

would be the equivalent
 
Old 10-01-2008, 11:21 AM   #10
brjoon1021
Member
 
Registered: Dec 2003
Posts: 152

Original Poster
Rep: Reputation: 16
solved

(solved) Thanks.
 
Old 10-02-2008, 09:50 AM   #11
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
How? (Please.)
 
Old 10-02-2008, 09:00 PM   #12
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
I did more or less the same thing just now by changing files as follows. Grub was already installed on sda. I was adding Windows on hda.

/boot/grub/device.map:
Code:
(hd0)	/dev/sda
(hd1)	/dev/sdb
(hd2)	/dev/hda
/boot/grub/menu.lst:
Code:
title		Windows 2000
rootnoverify	(hd2,0)
map 		(hd0) (hd2)
map 		(hd2) (hd0)
makeactive
chainloader 	+1
 
Old 10-03-2008, 06:29 AM   #13
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
I meant OP -- you marked this solved, please share your solution.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Installer Crashes after selecting where to install GRUB simonpcook Fedora 2 05-18-2008 08:09 PM
LXer: Manage partitions and disks with GParted-Clonezilla live CD LXer Syndicated Linux News 0 07-02-2007 11:46 PM
after installer install no Debian kernel to boot in GRUB st1cky_rice Debian 4 01-16-2006 04:42 PM
Install GRUB On Both Disks in RAID 1 Pair? doctorcisco Linux - Software 2 02-21-2005 03:43 AM
grub/lilo problem with 2 scsi-disks finky Linux - Software 5 12-03-2004 07:39 AM


All times are GMT -5. The time now is 01:07 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 Google+: linuxquestions
Open Source Consulting | Domain Registration