So I had my PC set up as a dual boot linux (Ubuntu 11.10) / Win 7 box. I was using burg as the bootloader. Everything was happy.
Then I needed another partition of Win 7 for a customer (I keep some spare space for things like this). I had the following set up:
sda1 - Windows 7
sda2 - Ubuntu 11.10
sda3 - swap
sda4 - Extended Partition
sda5 - ntfs data drive
unallocated space
So I expanded the logical partition to include the unallocated space. No problem. I created sda6 in the new space (using gparted), still no problem. I installed windows 7 there and all was happy, except, as expected, windows replaced the bootloader and only elected to see the two windows partitions.
Fine. I booted up a liveCD and reinstalled burg (update-burg, burg-install). However, it didn't detect the new windows 7 partition (sda6).
I thought maybe I needed to mount the partition, so (rather than wait for the livecd), I rebooted into the physical ubuntu install (sda2) and tried again, this time with sda6 mounted to /mnt. Still no dice.
Not sure what I'm missing, but burg / grub never discovers sda6. I'm sure I can get back into it with a recovery of windows, but then I'm back in the same state where I can't get to linux.
Code:
> fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x000af60e
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 307202047 153600000 7 HPFS/NTFS/exFAT
/dev/sda2 307202048 614402047 153600000 83 Linux
/dev/sda3 614402048 630786047 8192000 82 Linux swap / Solaris
/dev/sda4 630788094 1953523711 661367809 5 Extended
/dev/sda5 630788096 1654786047 511998976 7 HPFS/NTFS/exFAT
/dev/sda6 1654788096 1953523711 149367808 7 HPFS/NTFS/exFAT
Code:
> update-burg
Generating burg.cfg ...
Found linux image: /boot/vmlinuz-3.0.0-14-generic
Found initrd image: /boot/initrd.img-3.0.0-14-generic
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found Windows 7 (loader) on /dev/sda1
(the second linux image is just an older kernel I haven't cleaned up yet)
Would appreciate any ideas!