LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-08-2008, 11:19 PM   #1
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Fedora 13, SUSE 11, Ubuntu 10.04, Mandriva 2010, Mint 8
Posts: 338

Rep: Reputation: 34
Question to add Mandriva grub boot lines to the main menu.lst file, using 2 hard drives


I have both Fedora and Mandriva installed on a external eSATA connected hard drive, and my most recent install was the Mandriva, which I choose to install the grub on that external drive, so on it's MBR then. And I have SUSE and Ubuntu installed with windows XP on the PC's internal IDE hard drive, which is useing the Ubuntu's GRUB as the main boot loader, and is on the MBR of this internal drive. The issue I have is when Linux is put onto the external drive, the drive order is switched so that the internal drive becomes /dev/sdb, so the external drive is first as sda. So now I just need to correctly add the Mandriva grub boot lines to the main menu.lst file, but when I do copy and paste the lines adding the drive mapping to switch them, it gives error 15, file not found. Here is my current fdisk -l partition information;

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x826d56f6

Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 208813+ 83 Linux
/dev/sda2 1959 3916 15727635 83 Linux
/dev/sda3 6201 30401 194394532+ f W95 Ext'd (LBA)
/dev/sda4 3917 6200 18346230 83 Linux
/dev/sda5 14164 16970 22547227+ 7 HPFS/NTFS
/dev/sda6 6201 6722 4192902 82 Linux swap / Solaris
/dev/sda7 6723 8680 15727603+ 83 Linux
/dev/sda8 8681 10638 15727603+ 83 Linux
/dev/sda9 10639 12596 15727603+ 83 Linux
/dev/sda10 12597 14163 12586896 b W95 FAT32

Partition table entries are not in disk order

Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x89518951

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 7833 62918541 7 HPFS/NTFS
/dev/sdb2 7834 10444 20972857+ 83 Linux
/dev/sdb3 10445 12402 15727635 83 Linux
/dev/sdb4 12403 24321 95739367+ 5 Extended
/dev/sdb5 12403 12663 2096451 82 Linux swap / Solaris
/dev/sdb6 12664 14621 15727603+ 83 Linux
/dev/sdb7 14622 17885 26218048+ 83 Linux
The boot order in my BIOS of this 06 Gateway AMD Athlon with XP does have an effect on this issue, right? thanks for any help
 
Old 10-09-2008, 12:05 AM   #2
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Fedora 13, SUSE 11, Ubuntu 10.04, Mandriva 2010, Mint 8
Posts: 338

Original Poster
Rep: Reputation: 34
Lightbulb update this issue

I can boot into this new install of Mandriva 08 version by selecting boot first device when I hit the F10 key early during boot up, then I just arrow from removable to hard drive, hit enter, then change from internal to the external drive and hit enter which boots the Mandriva grub. So then how can I install the grub onto the Mandriva's (sda7) boot sector of it's root partition so then I can just use chainloading method to boot it?
 
Old 10-09-2008, 12:10 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
mount /dev/sda7 /mnt

grub-install --root-directory=/mnt /dev/sda7
 
Old 10-09-2008, 12:51 AM   #4
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Fedora 13, SUSE 11, Ubuntu 10.04, Mandriva 2010, Mint 8
Posts: 338

Original Poster
Rep: Reputation: 34
If I am booted into Mandriva, can I then use the terminal as root to type that in there, or is it different by that method to install grub.?
 
Old 10-09-2008, 12:55 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Yes - you will need to change the path for --root-directory to /
 
Old 10-09-2008, 07:20 PM   #6
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Fedora 13, SUSE 11, Ubuntu 10.04, Mandriva 2010, Mint 8
Posts: 338

Original Poster
Rep: Reputation: 34
Thumbs up solved

This grub boot issue I fixed by installing grub again but onto the root partition of Mandriva, using that Configure Computer tool in Mandriva that has a boot loader tool included. Then I did copy and paste the newly created boot lines for Mandriva into my main grub menu.lst file, and that did work. Linux installs onto external USB/eSATA hard drives do have some issues with drive order, as they like to become the first drive and make the internal drive as second,(which shows in my fdisk -l partition list). Thanks for the help.
 
  


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
Grub Menu doesn't reflect menu.lst file fatsheep Linux - Software 4 06-11-2007 02:29 PM
GRUB menu.lst/grub.conf file with multiple partitions dasy2k1 Linux - General 1 04-19-2007 09:42 AM
/grub/menu.lst file disappeared but computer still boots (grub) rrrssssss Linux - General 5 04-08-2007 10:02 AM
Grub will not let me add Windows XP to menu.lst BillyGalbreath Linux - General 7 12-27-2005 03:39 PM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 12:45 PM

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

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