vonforum
December 7th, 2012, 03:49 PM
So, I have three hard drives. The first used to have windows xp on it, the second has two partitions, one containing just data and another containing windows 7 and the third is just data. I installed kubuntu to the first hard drive (replacing everything on it) with LVM. After doing this, my computer booted straight into kubuntu and I couldn't (even when selecting the second hard drive with F10 when starting my computer) boot into windows 7. So, I did the boot-repair (first output is at paste.ubuntu.com/1415312). Then tried all the os-prober (which returned absolutely nothing) and update-grub things. update-grub output:
Found linux image: /boot/vmlinuz-3.5.0-17-generic
Found initrd image: /boot/initrd.img-3.5.0-17-generic
So, finally, I had GRUB when I booted my computer, but still no Windows 7. So, after a bunch of messing around, I added some code to /etc/grub.d/40_custom, knowing that my windows should be at (hd1,1) (I lost the code, though, for now, so I can't really try again). So, after booting into grub and selecting windows 7, I finally made some progress as I now got the "bootmgr is missing" message. Since I don't have my windows 7 install cd, I had to use my windows 7 rc install cd, which I though may be good enough. It didn't detect that I had windows installed, so I tried what I found online, but "bootrec /fixboot" told me that it didn't recognise the filesystem or something, "bootrec /fixmbr" said operation completed. After this, grub broke again. So, from the kubuntu live cd, I installed grub again, got back into kubuntu. Grub has now lost windows 7, though, and I'm still unsure whether I can even boot into it.
Output from fdisk -l:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b68a0
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 312580095 156039169 5 Extended
/dev/sda5 501760 312580095 156039168 8e Linux LVM
Disk /dev/sdb: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6aa5ac8f
Device Boot Start End Blocks Id System
/dev/sdb1 63 1341202589 670601263+ 7 HPFS/NTFS/exFAT
/dev/sdb2 * 1341202590 1465144064 61970737+ 7 HPFS/NTFS/exFAT
Disk /dev/sdc: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0fada385
Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 1465145343 732571648 7 HPFS/NTFS/exFAT
Disk /dev/mapper/kubuntu-root: 158.7 GB, 158708269056 bytes
255 heads, 63 sectors/track, 19295 cylinders, total 309977088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/kubuntu-root doesn't contain a valid partition table
Disk /dev/mapper/kubuntu-swap_1: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders, total 2097152 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/kubuntu-swap_1 doesn't contain a valid partition tableAnd the output from a second run (which I did only a few minutes ago) of boot-repair at paste.ubuntu.com/1416875
And so far, os-prober returns nothing and update-grub still gives the same thing.
EDIT: Oh, and I noticed people talking about there being two boot folders (Boot and boot) in the windows drive, but mine has none. There is a Boot folder inside the Windows folder, but I'm not even sure about the legitimacy of that one.
Found linux image: /boot/vmlinuz-3.5.0-17-generic
Found initrd image: /boot/initrd.img-3.5.0-17-generic
So, finally, I had GRUB when I booted my computer, but still no Windows 7. So, after a bunch of messing around, I added some code to /etc/grub.d/40_custom, knowing that my windows should be at (hd1,1) (I lost the code, though, for now, so I can't really try again). So, after booting into grub and selecting windows 7, I finally made some progress as I now got the "bootmgr is missing" message. Since I don't have my windows 7 install cd, I had to use my windows 7 rc install cd, which I though may be good enough. It didn't detect that I had windows installed, so I tried what I found online, but "bootrec /fixboot" told me that it didn't recognise the filesystem or something, "bootrec /fixmbr" said operation completed. After this, grub broke again. So, from the kubuntu live cd, I installed grub again, got back into kubuntu. Grub has now lost windows 7, though, and I'm still unsure whether I can even boot into it.
Output from fdisk -l:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b68a0
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 312580095 156039169 5 Extended
/dev/sda5 501760 312580095 156039168 8e Linux LVM
Disk /dev/sdb: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6aa5ac8f
Device Boot Start End Blocks Id System
/dev/sdb1 63 1341202589 670601263+ 7 HPFS/NTFS/exFAT
/dev/sdb2 * 1341202590 1465144064 61970737+ 7 HPFS/NTFS/exFAT
Disk /dev/sdc: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0fada385
Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 1465145343 732571648 7 HPFS/NTFS/exFAT
Disk /dev/mapper/kubuntu-root: 158.7 GB, 158708269056 bytes
255 heads, 63 sectors/track, 19295 cylinders, total 309977088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/kubuntu-root doesn't contain a valid partition table
Disk /dev/mapper/kubuntu-swap_1: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders, total 2097152 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/kubuntu-swap_1 doesn't contain a valid partition tableAnd the output from a second run (which I did only a few minutes ago) of boot-repair at paste.ubuntu.com/1416875
And so far, os-prober returns nothing and update-grub still gives the same thing.
EDIT: Oh, and I noticed people talking about there being two boot folders (Boot and boot) in the windows drive, but mine has none. There is a Boot folder inside the Windows folder, but I'm not even sure about the legitimacy of that one.