LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-13-2011, 11:49 AM   #16
Brocifer
Member
 
Registered: Mar 2011
Posts: 46

Rep: Reputation: 1

Quote:
Originally Posted by Bob32 View Post
Doesn't my situation have anything to do with the boot flags ? I can see that xp (sdb2 in the text above, now sdc2 after the switch) is the only one who has a boot flag set...
Bob, first off you really shouldn't have switched the cabling around because you just invalidated all the source drive and partition output you provided earlier. Makes things much messier.

There's a couple of different approaches you can take:

1. Modify the Windows BCD (boot) partition to point to your Linux install. I think it picks up XP installs automatically, but that's easy enough to verify. If not you will have to add an entry for XP as well. This could be accomplished by using something like EasyBCD.

2. Simply put grub on sda as the previous poster has suggested and add entries for XP & Windows 7.

You were right to think the sd naming conventions are related to how the drives are attached to the board. There is a direct relation.

i.e. Presuming your initial drive lettering (before you swapped cables):

sda = hd 0 The first physical drive on your motherboard, remember: this correlates to the FIRST drive on the primary IDE (or SATA) channel.

sdb = hd 1 The second physical drive on the primary IDE (or SATA) channel) The numbers listed after the device names represent the specific partitions. e.g. sdb1 = first partition on second drive.

sdc = hd 2 The third physical drive, the first drive on secondary IDE channel in your case.

sdd = hd 3 The fourth physical drive, the second drive on secondary IDE channel.

If you're still having trouble, please re-verify ALL drive information and include your BIOS boot order as it currently stands. Finally, in answer to your question as to why Windows 7 is sitting out there by its lonesome on sdc, it's because that is the where the BCD boot loader partition resides. That boot partition points to sdb1 to boot Windows 7, and sdb2 to boot Windows XP.

To sum up, you could fix it by doing the following:

1. Switch the cables back to how they were.
2. Use EasyBCD to modify Windows 7's BCD partition (which resides on sdc) and add Linux (which resides on sdb6) to the boot selections

OR

3. Add change boot order (assuming you swapped things back) so system boots to grub, then add entries in Grub to boot to XP & 7 which reside on sdb1 & sdb2 respectively.

Hope this helps, cheers.

Last edited by Brocifer; 03-13-2011 at 11:56 AM. Reason: edited for clarity
 
Old 03-13-2011, 11:50 AM   #17
Bob32
Member
 
Registered: Mar 2011
Posts: 97

Original Poster
Rep: Reputation: 0
I did the steps in your post 4 again, but the system is still booting on windows 7 immediately, without going through grub.
 
Old 03-13-2011, 12:00 PM   #18
Brocifer
Member
 
Registered: Mar 2011
Posts: 46

Rep: Reputation: 1
Quote:
Originally Posted by Bob32 View Post
I did the steps in your post 4 again, but the system is still booting on windows 7 immediately, without going through grub.
Hell the more I look at it man, if you look at grub.conf in your previous posts it already has entries for Windows in it. Just change your cabling back to how it was, then modify boot order to boot to the drive you had Grub on. (originally it was sdb/hd1). Done!
 
Old 03-13-2011, 12:06 PM   #19
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I did the steps in your post 4 again, but the system is still booting on windows 7 immediately, without going through grub.
But you just told us that you were "at the grub prompt" (post12)
Have you changed the drive order again ?
 
Old 03-13-2011, 12:06 PM   #20
Bob32
Member
 
Registered: Mar 2011
Posts: 97

Original Poster
Rep: Reputation: 0
Brocifer you're right at some point I had grub working, and it detected everything (all 3 OSes). This was good, but I wasn't satisfied by the names the devices were given (particularly, the fact that sda wasn't the device where the OSes were). Plus, there were some other issues yet to be solved, such as the fact that the windows 7 loader was not on the same device as windows 7 itself, which could I guess lead to some problems if that auxiliary device were to be removed.
That's why I chose to change the wires. The configuration might be more difficult to get working, but at least we're on a good base now, since the devices are now named the way I want. All we have to do now is to make grub start when the computer starts.

On an unrelated note, but for clarification, let me state that I have made two wire switches. When I started the thread, grub didn't start (windows 7 was booting automatically). So I changed sdc and sdb (and did the steps described in #4). Then grub worked. Then I switched the wires again (sdc->sda, sdb->sdc, sdd->sdb, sda->sdd), to make sda the device where the 3 OSes are.

Last edited by Bob32; 03-13-2011 at 12:22 PM.
 
Old 03-13-2011, 12:31 PM   #21
Brocifer
Member
 
Registered: Mar 2011
Posts: 46

Rep: Reputation: 1
Quote:
Originally Posted by Bob32 View Post
Brocifer you're right at some point I had grub working, and it detected everything (all 3 OSes). This was good, but I wasn't satisfied by the names the devices were given (particularly, the fact that sda wasn't the device were the OSes were). Plus, there were some other issues yet to be solved, such as the fact that the windows 7 loader was not on the same device as windows 7 itself, which could I guess lead to some problems if that auxiliary device were to be removed.
That's why I chose to change the wires. The configuration might be more difficult to get working, but at least we're on a good base now, since the devices are now named the way I want. All we have to do now is to make grub start when the computer starts.

On an unrelated note, but for clarification, let me state that I have made two wire switches. When I started the thread, grub didn't start (windows 7 was booting automatically). So I changed sdc and sdb (and did the steps described in #4). Then grub worked. Then I switched the wires again (sdc->sda, sdb->sdc, sdd->sdb, sda->sdd), to make sda the device where the 3 OSes are.
Bob, again the Windows 7 loader is on a different partition by design, there's nothing wrong with that per se. It can be moved if you want to blow away that third drive eventually, but worry about that later. For now, things are completely gummed up. Until you can re-verify the drive lettering and boot order in BIOS this is going to be difficult to solve. I can't stress this enough, stop switching drive cables around and ONLY modify the boot order in BIOS to achieve initial booting to different devices. You'll end up spending the rest of your weekend chasing your tail if you don't.
 
Old 03-13-2011, 12:46 PM   #22
Bob32
Member
 
Registered: Mar 2011
Posts: 97

Original Poster
Rep: Reputation: 0
okay brocifer, I'm sorry to make things difficult, in the end I'm just a newbie so I'll stop messing around and I'll do exclusively what you tell me to from now on.
I would just like to state what I want, and then I'll follow your instructions to achieve that goal: I want the 250GB hard drive to contain the 3 OS and everything that is needed for them to run and to be chosen from (grub, windows loaders if they are necessary...), and I would rather it to appear as 'sda'. The 3 other devices are just data hard drives and are likely to be moved (I sometimes lend them, etc) so they are not to contain anything that is relative to the system.
So at the moment, the 250GB disk appears as sda, but grub doesn't start, windows 7 launches immediately.
Please let me know what to do, including moving the wires the way they were if necessary.

Thanks a lot for your help so far.

Last edited by Bob32; 03-13-2011 at 12:48 PM.
 
Old 03-13-2011, 12:55 PM   #23
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
In post #11 I asked if there was anything in your BIOS about the boot order. Please answer that question before we do anything else, because grub needs to installed to the MBR of the drive your computer is choosing to be the first HDD in the boot order.
 
Old 03-13-2011, 01:00 PM   #24
Brocifer
Member
 
Registered: Mar 2011
Posts: 46

Rep: Reputation: 1
Quote:
Originally Posted by Bob32 View Post
okay brocifer, I'm sorry to make things difficult, in the end I'm just a newbie so I'll stop messing around and I'll do exclusively what you tell me to from now on.
I would just like to state what I want, and then I'll follow your instructions to achieve that goal: I want the 250GB hard drive to contain the 3 OS and everything that is needed for them to run and to be chosen from (grub, windows loaders if they are necessary...), and I would rather it to appear as 'sda'. The 3 other devices are just data hard drives and are likely to be moved (I sometimes lend them, etc) so they are not to contain anything that is relative to the system.
So at the moment, the 250GB disk appears as sda, but grub doesn't start, windows 7 launches immediately.
Please let me know what to do, including moving the wires the way they were if necessary.

Thanks a lot for your help so far.
No problem sir, I think we can get you fixed up but we need to establish a base line first. What I would recommend then is the following:

1. Since you want the big drive to be sda, plug the 250G in on the primary channel (I'm assuming these are IDE drives?) If they're sata, just make sure you swap it to sata channel 0.

2. Ensure the boot order in BIOS points to that drive.

3. Repost the output of bootinfo so we can double check which 2G drive the Win 7 BCD got written to (we'll need that to fix Grub's Win 7 entry)

Your system should now try to boot to the original grub conf, which is now broken since we've switched drives. You need to modify the grub to point to sda now instead of sdb. Once you've done that you should be able to boot into linux w/ the drive as sda.

The other three can be plugged in in whatever order you want, but you must include the 2G drive Win7's BCD got written to. Once you've done that, please repost the new bootinfo output and we should be able to get things crackin'.

Last edited by Brocifer; 03-13-2011 at 01:11 PM. Reason: Edited/added instructions
 
Old 03-13-2011, 01:12 PM   #25
Brocifer
Member
 
Registered: Mar 2011
Posts: 46

Rep: Reputation: 1
Quote:
Originally Posted by Bob32 View Post
okay brocifer, I'm sorry to make things difficult, in the end I'm just a newbie so I'll stop messing around and I'll do exclusively what you tell me to from now on.
I would just like to state what I want, and then I'll follow your instructions to achieve that goal: I want the 250GB hard drive to contain the 3 OS and everything that is needed for them to run and to be chosen from (grub, windows loaders if they are necessary...), and I would rather it to appear as 'sda'. The 3 other devices are just data hard drives and are likely to be moved (I sometimes lend them, etc) so they are not to contain anything that is relative to the system.
So at the moment, the 250GB disk appears as sda, but grub doesn't start, windows 7 launches immediately.
Please let me know what to do, including moving the wires the way they were if necessary.

Thanks a lot for your help so far.
Sorry, please re-read my last post. Edited for clarity, as I remembered we'll need to tweak original grub conf as well once you've switched the 250G to be sda or Linux won't boot either.
 
Old 03-13-2011, 01:14 PM   #26
Bob32
Member
 
Registered: Mar 2011
Posts: 97

Original Poster
Rep: Reputation: 0
Tregedar (and Brocifer),
I don't see anything in the bios that says anything specific to the boot order of the hard drives, but then again I'm not an expert.
All I see is the boot order that is relative to the type of device (usb stick first, then optical drive, then hard drive, ...). But I'm not 100% sure, maybe I'm just not looking in the right place. I could list all the menu entries if you want (?).

Brocifer,
The drives are sata, not ide. The 250GB hard drive (the one containing the 3 OS) is indeed plugged in SATAII0. For practical reasons, (the sata wire is bent at an angle (http://img.alibaba.com/photo/3657795...SATA_Cable.jpg), SATAII1 is not used. If you want (?) I can state which channel the other 3 devices are plugged into.

The output of the boot info script is:
Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #6 for /boot/grub.
=> Windows is installed in the MBR of /dev/sdb
=> Windows is installed in the MBR of /dev/sdc
=> Windows is installed in the MBR of /dev/sdd

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe

sda2: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /ntldr /NTDETECT.COM

sda3: _________________________________________________________________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: _________________________________________________________________________

File system: swap
Boot sector type: -
Boot sector info:

sda6: _________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04.2 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda7: _________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

sdb1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdc1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /bootmgr /Boot/BCD

sdd1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 2,048 286,722,047 286,720,000 7 HPFS/NTFS
/dev/sda2 * 344,805,439 488,394,751 143,589,313 7 HPFS/NTFS
/dev/sda3 286,724,094 344,805,375 58,081,282 5 Extended
/dev/sda5 286,724,096 288,675,839 1,951,744 82 Linux swap / Solaris
/dev/sda6 288,677,888 300,394,495 11,716,608 83 Linux
/dev/sda7 300,396,544 344,805,375 44,408,832 83 Linux


Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb1 63 976,768,064 976,768,002 7 HPFS/NTFS


Drive: sdc ___________________ _____________________________________________________

Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdc1 * 63 3,907,024,064 3,907,024,002 7 HPFS/NTFS


Drive: sdd ___________________ _____________________________________________________

Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdd1 63 3,907,024,064 3,907,024,002 7 HPFS/NTFS


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 60E8B570E8B544D6 ntfs
/dev/sda2 384CD74B4CD70314 ntfs System
/dev/sda3: PTTYPE="dos"
/dev/sda5 7685b1a8-59ea-4c0a-99b2-d75d54fe99ff swap
/dev/sda6 e339f209-bb4b-4e57-876a-b2b0d17e2e0b ext4
/dev/sda7 069330ae-88c3-41d3-a102-8293f131928f ext4
/dev/sda: PTTYPE="dos"
/dev/sdb1 04F02993F0298BCC ntfs Seagate
/dev/sdb: PTTYPE="dos"
/dev/sdc1 9E34497534495207 ntfs Samsung
/dev/sdc: PTTYPE="dos"
/dev/sdd1 5C38FB8B38FB6286 ntfs WD
/dev/sdd: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)


=========================== sda6/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd1,6)'
search --no-floppy --fs-uuid --set e339f209-bb4b-4e57-876a-b2b0d17e2e0b
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd1,6)'
search --no-floppy --fs-uuid --set e339f209-bb4b-4e57-876a-b2b0d17e2e0b
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd1,6)'
search --no-floppy --fs-uuid --set e339f209-bb4b-4e57-876a-b2b0d17e2e0b
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=e339f209-bb4b-4e57-876a-b2b0d17e2e0b ro quiet splash
initrd /boot/initrd.img-2.6.32-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd1,6)'
search --no-floppy --fs-uuid --set e339f209-bb4b-4e57-876a-b2b0d17e2e0b
echo 'Loading Linux 2.6.32-28-generic ...'
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=e339f209-bb4b-4e57-876a-b2b0d17e2e0b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-28-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd1,6)'
search --no-floppy --fs-uuid --set e339f209-bb4b-4e57-876a-b2b0d17e2e0b
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd1,6)'
search --no-floppy --fs-uuid --set e339f209-bb4b-4e57-876a-b2b0d17e2e0b
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows NT/2000/XP (on /dev/sdb2)" {
insmod ntfs
set root='(hd1,2)'
search --no-floppy --fs-uuid --set 384cd74b4cd70314
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sdc1)" {
insmod ntfs
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 9e34497534495207
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

=============================== sda6/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb6 during installation
UUID=e339f209-bb4b-4e57-876a-b2b0d17e2e0b / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb7 during installation
UUID=069330ae-88c3-41d3-a102-8293f131928f /home ext4 defaults 0 2
# swap was on /dev/sdb5 during installation
UUID=7685b1a8-59ea-4c0a-99b2-d75d54fe99ff none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

=================== sda6: Location of files loaded by Grub: ===================


148.7GB: boot/grub/core.img
149.0GB: boot/grub/grub.cfg
149.2GB: boot/initrd.img-2.6.32-28-generic
149.1GB: boot/vmlinuz-2.6.32-28-generic
149.2GB: initrd.img
149.1GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda3

00000000 58 7e 27 54 b3 b6 3f 10 52 98 46 4d f7 b0 46 fd |X~'T..?.R.FM..F.|
00000010 ad 02 91 21 e4 7e be 57 c9 a4 0a 3a 32 a6 45 ea |...!.~.W...:2.E.|
00000020 10 10 94 a7 69 fc d2 bf ff ff bb f9 f9 64 54 03 |....i........dT.|
00000030 98 61 60 d8 f1 ab 85 95 86 96 78 02 3c 61 c1 4d |.a`.......x.<a.M|
00000040 eb 1c 65 82 a5 07 06 93 99 76 d6 b4 24 30 28 79 |..e......v..$0(y|
00000050 41 9a 24 c3 43 24 0d 31 e4 12 68 34 a4 66 f0 14 |A.$.C$.1..h4.f..|
00000060 88 10 b6 b0 af dd d8 2d 7d 03 96 ef bc 6f dc a5 |.......-}....o..|
00000070 6d 15 b2 89 a4 28 b2 38 88 39 2c 79 2f 2c 46 c2 |m....(.8.9,y/,F.|
00000080 0e 26 2f bc 05 08 5a 42 5a 96 dd 79 e2 69 6c d0 |.&/...ZBZ..y.il.|
00000090 a1 8a ef da e9 58 f4 91 4b 4e 85 ab 94 12 41 74 |.....X..KN....At|
000000a0 4c c5 ac 1e 88 e7 8b 4e 09 44 ba 19 b0 9d b6 93 |L......N.D......|
000000b0 b4 3c 40 c3 71 34 ca 85 d3 09 b2 db 1e d6 a6 64 |.<@.q4.........d|
000000c0 97 e3 3f 53 42 d7 b9 d1 0f b1 7a f7 d7 0d fd 7b |..?SB.....z....{|
000000d0 6e 1d 20 ac 67 a0 14 3a 73 7a 17 92 5a 16 e1 59 |n. .g..:sz..Z..Y|
000000e0 0b f0 f2 1f ba 7b 9c ed ad 14 54 85 09 7b 38 b6 |.....{....T..{8.|
000000f0 0f 3e 83 dd 82 ab f9 ba d9 ae bb f8 cb dd 95 7f |.>..............|
00000100 21 bd 39 e0 71 49 6d cc a5 46 50 21 2a fd 50 03 |!.9.qIm..FP!*.P.|
00000110 c4 0f 42 04 6c 20 48 44 5c 6d 4a 5a 13 f1 6c 86 |..B.l HD\mJZ..l.|
00000120 14 92 8e 3b a7 8d 6e 67 3e e8 3e 8c 19 3c c0 58 |...;..ng>.>..<.X|
00000130 30 63 1b 03 e1 f5 5c a5 cf 5f f3 7f ba 7f 8f 98 |0c....\.._......|
00000140 99 74 ff ff ff 6d a6 1b 24 72 ba 00 cc fe 95 38 |.t...m..$r.....8|
00000150 cd 24 44 38 f0 88 80 2e 1a 58 15 43 22 cf 00 42 |.$D8.....X.C"..B|
00000160 80 80 86 49 30 0a 08 40 f4 d1 6b 65 94 1e 2d 44 |...I0..@..ke..-D|
00000170 e1 a0 38 14 46 1a 08 40 05 3f bc 79 ff fb b0 64 |..8.F..@.?.y...d|
00000180 18 8e 07 37 65 53 8b 78 65 50 3f e9 5b ef 30 02 |...7eS.xeP?.[.0.|
00000190 e5 1c 25 85 50 4d e1 33 80 ee a5 70 34 b0 0b 95 |..%.PM.3...p4...|
000001a0 ae e6 02 58 2c 2d 2a fa 76 d5 85 9e 83 84 ec 47 |...X,-*.v......G|
000001b0 dd 98 2d 43 85 f8 e4 c3 e0 53 ad 54 01 14 00 fe |..-C.....S.T....|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 c8 1d 00 00 fe |................|
000001d0 ff ff 05 fe ff ff 02 c8 1d 00 00 d0 b2 00 00 00 |................|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200

Last edited by Bob32; 03-13-2011 at 01:16 PM.
 
Old 03-13-2011, 01:22 PM   #27
Brocifer
Member
 
Registered: Mar 2011
Posts: 46

Rep: Reputation: 1
Quote:
Originally Posted by Bob32 View Post
Tregedar (and Brocifer),
I don't see anything in the bios that says anything specific to the boot order of the hard drives, but then again I'm not an expert.
All I see is the boot order that is relative to the type of device (usb stick first, then optical drive, then hard drive, ...). But I'm not 100% sure, maybe I'm just not looking in the right place. I could list all the menu entries if you want (?).

Brocifer,
The drives are sata, not ide. The 250GB hard drive (the one containing the 3 OS) is indeed plugged in SATAII0. For practical reasons, (the sata wire is bent at an angle (http://img.alibaba.com/photo/3657795...SATA_Cable.jpg), SATAII1 is not used. If you want (?) I can state which channel the other 3 devices are plugged into.

The output of the boot info script is:
Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #6 for /boot/grub.
=> Windows is installed in the MBR of /dev/sdb
=> Windows is installed in the MBR of /dev/sdc
=> Windows is installed in the MBR of /dev/sdd
...
Please make the following changes to grub.conf and let me know if any OS's are/are not booting properly:

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set e339f209-bb4b-4e57-876a-b2b0d17e2e0b
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=e339f209-bb4b-4e57-876a-b2b0d17e2e0b ro quiet splash
initrd /boot/initrd.img-2.6.32-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set e339f209-bb4b-4e57-876a-b2b0d17e2e0b
echo 'Loading Linux 2.6.32-28-generic ...'
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=e339f209-bb4b-4e57-876a-b2b0d17e2e0b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-28-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set e339f209-bb4b-4e57-876a-b2b0d17e2e0b
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set e339f209-bb4b-4e57-876a-b2b0d17e2e0b
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows NT/2000/XP (on /dev/sdb2)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 384cd74b4cd70314
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sdc1)" {
insmod ntfs
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 9e34497534495207
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
 
Old 03-13-2011, 01:28 PM   #28
Bob32
Member
 
Registered: Mar 2011
Posts: 97

Original Poster
Rep: Reputation: 0
Errr where is grub.conf again ?
Does it matter if I edit it from the live CD?
edit: is it /boot/grub/menu.lst ?

Last edited by Bob32; 03-13-2011 at 01:30 PM.
 
Old 03-13-2011, 01:35 PM   #29
Brocifer
Member
 
Registered: Mar 2011
Posts: 46

Rep: Reputation: 1
Quote:
Originally Posted by Bob32 View Post
Errr where is grub.conf again ?
Does it matter if I edit it from the live CD?
It's located in /boot/grub.

To modify it, you'll need to boot to your livecd for your distro and select maintenance mode. Once you're in maintenance mode, try the following:

Code:
mount -o remount,rw /
then

Code:
cat /boot/grub/grub.conf | sed s/hd1/hd0/g
Then reboot and test it out.

Last edited by Brocifer; 03-13-2011 at 01:39 PM.
 
Old 03-13-2011, 01:37 PM   #30
Bob32
Member
 
Registered: Mar 2011
Posts: 97

Original Poster
Rep: Reputation: 0
But where is that file exactly ?
(I'm using the ubuntu live cd)
/boot/grub/grub.conf: No such file or directory
/boot/grub/menu.lst: No such file or directory

Last edited by Bob32; 03-13-2011 at 01:40 PM.
 
  


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
Valgrind / loader / $ORIGIN issue jim2718 Linux - Software 1 12-17-2010 05:15 PM
reformat/boot loader issue babag Mandriva 2 06-16-2007 02:35 AM
boot loader issue tm2383 Fedora 1 11-02-2006 11:46 AM
Ahh help! (Grub Boot Loader Issue). RoaCh Of DisCor Linux - Software 9 09-09-2004 04:39 AM
grub boot loader issue mbegovic Linux - Software 2 04-17-2004 04:59 PM

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

All times are GMT -5. The time now is 12:50 AM.

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