4

My laptop (DELL Vostro 3350) has two hard drives: Main one (/dev/sda), is a ssd mounted on SATA-HDD slot with Ubuntu14.04 (grub2 installed to this MBR). Installed on normaly hd bay Second on (/dev/sdb), stock hd (with recovery partition etc etc) moved to SATA-ODD slot in place of dvd drive with an adapter

I can not figure out how to boot Windows from grub2. In the past I remember that (maybe with grub1) I could point to second disk mbr and then Windows booted normally.

So my config is:

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 testine, 63 settori/tracce, 15566 cilindri, totale 250069680 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x0007d87d

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   175781887    87889920   83  Linux
/dev/sda2       175783934   250068991    37142529    5  Esteso
/dev/sda5       175783936   246163455    35189760   83  Linux
/dev/sda6       246165504   250068991     1951744   82  Linux swap / Solaris

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 testine, 63 settori/tracce, 60801 cilindri, totale 976773168 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0xb3e7a9bf

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048      206847      102400   de  Dell Utility
/dev/sdb2          206848    30926847    15360000    7  HPFS/NTFS/exFAT
/dev/sdb3   *    30926848   167600175    68336664    7  HPFS/NTFS/exFAT
/dev/sdb4       167604160   976768064   404581952+   f  W95 Esteso (LBA)
/dev/sdb5       167606208   976768064   404580928+   7  HPFS/NTFS/exFAT

Here is my /boot/grub/grub.cfg section of os-prober

menuentry 'Windows 7 (loader) (su /dev/sdb2)' --class windows --class os $menuentry_id_option 'osprober-chain-CC70378A703779F2' {
insmod part_msdos
insmod ntfs
set root='hd1,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  CC70378A703779F2
else
  search --no-floppy --fs-uuid --set=root CC70378A703779F2
fi
parttool ${root} hidden-
chainloader +1
}

menuentry 'Windows 7 (loader) (su /dev/sdb3)' --class windows --class os $menuentry_id_option 'osprober-chain-AC7C4EC27C4E86D4' {
insmod part_msdos
insmod ntfs
set root='hd1,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3  AC7C4EC27C4E86D4
else
  search --no-floppy --fs-uuid --set=root AC7C4EC27C4E86D4
fi
parttool ${root} hidden-
chainloader +1
}

Both give me this message if i selected them on boot menu:

error: no such device: CC70378A703779F2 (or AC7C4EC27C4E86D4)
error: hd1 cannot get C/H/S values

http://i.stack.imgur.com/hvE3k.jpg

Last, but not the least, from my BIOS i cannot change hard drive boot priority, so there's no way to boot /dev/sdb first.

Edit:

this is my blkid

/dev/sda1: UUID="1597fe18-faf5-48a5-b80f-4cbb7f8b896e" TYPE="ext4" 
/dev/sda5: UUID="ea6548f1-3004-49ff-8d1d-4c84dfed3a6a" TYPE="ext4" 
/dev/sda6: UUID="e24dbc3b-d2da-4a63-97ce-7430cfce9fce" TYPE="swap" 
/dev/sdb1: SEC_TYPE="msdos" LABEL="DELLUTILITY" UUID="3030-3030" TYPE="vfat" 
/dev/sdb2: LABEL="Recovery" UUID="CC70378A703779F2" TYPE="ntfs" 
/dev/sdb3: LABEL="OS" UUID="AC7C4EC27C4E86D4" TYPE="ntfs" 
/dev/sdb5: LABEL="VostroHD" UUID="01CCBB70E50A71E0" TYPE="ntfs"

EDIT: I ran bootinfo script. HERE the result

EDIT2: PC configuration at top

marked as duplicate by Elder Geek, karel, Kulfy, Eric Carvalho, Fabby May 12 at 18:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • I think the option which drive is booting first is placed in BIOS boot options. Question similar your have already been asked and answered, so enjoy: Install on Second Hard Drive with startup boot option? – Roomy May 21 '14 at 20:20
  • cannot control harddrive boot order on my bios – user283975 May 21 '14 at 20:34
  • Did you run sudo update-grub? That should automatically add a chainload to the partition with Windows boot files. If not seen then you have Windows issues. – oldfred May 21 '14 at 21:20
  • @oldfred just updated question with these details – user283975 May 21 '14 at 21:25
  • Run sudo blkid and post the output. Maybe your UUID is wrong. I see sdb3 is marked bootable, but your config refers to ...msdos2 (disks start at 0, but not partitions). – ubfan1 May 21 '14 at 21:41
0

review the following and see if it applies to you:

http://ubuntuforums.org/archive/index.php/t-1479070.html

If not look here

  • yes, but what about the second entry? this refers to sdb3 – user283975 May 21 '14 at 22:21
  • Sorry, missed that. Changing answer. – Elder Geek May 21 '14 at 22:36
  • The boot flag does not matter: all it does it tell the Microsoft MBR code that it should load the boot sector in that partition. Grub doesn't care about the flag. – psusi May 21 '14 at 22:36
  • chainloading? Hmm. I'll look into that @psusi – Elder Geek May 21 '14 at 22:55
  • OP appears to have abandoned this Q&A. I don't think it can be salvaged. – WinEunuuchs2Unix May 6 at 2:41