arminbw: I will reply to the knowledge you've shared after I build on mephisto's contribution to the discussion. mmkay?
In mephisto's thread, Pumalite prescribes a program called TestDisk to analyze the partitions and fix it accordingly. Using TestDisk, I've investigated my hardrive. Here are the results. I have bolded the details which are significant.
Code:
Disk /dev/sda - 320 GB / 298 GiB - CHS 38913 255 63
Current partition structure:
Partition Start End Size in sectors
1 P Linux 0 1 1 40 254 63 658602
2 * HPFS - NTFS 41 0 1 5012 254 63 79875180
3 E extended LBA 5013 0 1 15602 254 63 170128350
4 P Linux 10241 1 1 15347 254 63 82043892
Space conflict between the following two partitions
3 E extended LBA 5013 0 1 15602 254 63 170128350
4 P Linux 10241 1 1 15347 254 63 82043892
X extended 5013 0 2 10240 254 63 83987819
5 L Linux 5013 2 1 10240 254 63 83987694
X extended 15348 0 1 15602 254 63 4096575
6 L Linux Swap 15348 1 1 15602 254 63 4096512
X extended 15603 0 1 38912 254 63 374475150
Must be in extended partition
6 L Linux Swap 15348 1 1 15602 254 63 4096512
X extended 15603 0 1 38912 254 63 374475150
Must be in extended partition
3 E extended LBA 5013 0 1 15602 254 63 170128350
X extended 15603 0 1 38912 254 63 374475150
7 L FAT32 15603 1 1 38912 254 63 374475087
Space conflict between the following two partitions
3 E extended LBA 5013 0 1 15602 254 63 170128350
7 L FAT32 15603 1 1 38912 254 63 374475087
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
[Quick Search] [ Backup ]
Try to locate partition
When I scroll down to the "Space conflict between the following two partitions," it prompts me with:
Code:
Should TestDisk search for partition created under Vista ? [Y/N] (answer Yes if unsure)
Answering yes or no both give this result:
Code:
Disk /dev/sda - 320 GB / 298 GiB - CHS 38914 255 63
Partition Start End Size in sectors
* Linux 0 1 1 40 254 63 658602
P HPFS - NTFS 41 0 1 5012 254 63 79875180
P Linux 5013 0 1 10240 254 63 83987820
L Linux 10241 1 1 15347 254 63 82043892
L Linux Swap 15348 1 1 15602 254 63 4096512
L FAT32 LBA 15603 1 1 38912 254 63 374475087
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
Enter: to continue
If I navigate to the problem drive , "P Linux 5013 0 1 10240 254 63 83987820", I then get this screen with options Write and Deeper search:
Code:
Disk /dev/sda - 320 GB / 298 GiB - CHS 38914 255 63
Partition Start End Size in sectors
1 * Linux 0 1 1 40 254 63 658602
2 P HPFS - NTFS 41 0 1 5012 254 63 79875180
3 P Linux 5013 0 1 10240 254 63 83987820
4 E extended LBA 10241 0 1 38913 254 63 460631745
5 L Linux 10241 1 1 15347 254 63 82043892
6 L Linux Swap 15348 1 1 15602 254 63 4096512
7 L FAT32 LBA 15603 1 1 38912 254 63 374475087
[ Quit ] [Deeper Search] [ Write ]
Write partition structure to disk
Selecting Write gives me:
Code:
Write partition table, confirm ? (Y/N)
Question: What am I writing to the partition table? The fix? What fix?
Selecting Deeper Search gives me an extended analysis of the cylinder with a value counting up. I can't seem to copy and paste that one here.
I don't know what I am doing so I search Google: "Space conflict between the following two partitions" I get an interesting 153 results. The first result is an ubuntuforum.org thread started by a user WxGuy1 who documents in great detail his experience with Vista and Grub messing up: http://ubuntuforums.org/showthread.php?t=629038
WxGuy1 is in a similar situation as I. For WxGuy1, Grub won't load Ubuntu. Windows, in his case Windows Vista, boots. Vista can see other partitions. So WxGuy1 wishes to install Gutsy to rectify the bootloader problem. WxGuy1 writes:
I tried the GParted liveCD, but it showed the entire drive as unallocated space (no partitions). So, I load up the Ubunu LiveCD and try to reinstall Ubuntu. Well, the Ubuntu installation process is also telling me that the entire hard drive is unallocated. UGH! So, get this:
+ Vista sees the partitions just fine, and it can read the contents just fine
+ The partitions show up when I boot into the LiveCD and use "sudo fdisk -l".
+ The partitions show up just fine when I use TestDrive
+ I can mount the partitions when I boot using the LiveCD (sudo mount /mnt/Vistadrive /mnt/sda1, for example), and all the contents of the mounted partitions are readable
BUT
- The partitions do NOT show up in GParted, nor do they show up when I try to reinstall Ubuntu (though the Ubuntu install process may use GParted I suppose)
Bingo -- this is almost exactly my problem. fdisk detects all my parts, GParted doesn't.
WxGuy1 seems to have solved his problem. I have bolded the sentences in WxGuy1's last post in his thread which I think I can try:
Well, I think I can close out this thread. In case others have similar problems, though, I'll give my solution...
1. Basically, I used the Vista installation disk to do the following "bootrec.exe /fixmbr" and "bootrec.exe /fixboot". This allowed me at least to boot into Vista, though I sometimes had to do the above more than once to get everything working.
2. When I got into Vista, I installed the following free-ware package --> EasyBCD 1.7.1, which can be downloaded at http://neosmart.net/dl.php?id=1 . This let me rewrite the MBR to put in an entry for my Linux installation using the Microsoft Vista bootloader.
3. After saving and rebooting, the Windows Vista bootloader brought up the option of either booting into Vista or booting into whatever /boot/grub dictated on my Linux partition; I used EasyBCD to add an entry for my L drive (which was mapped from /dev/sda.
I am not sure what he means when he says "I used EasyBCD to add an entry for my L drive (which was mapped from /dev/sda. " Does he mean to say that using EasyBCD he assigned his linux part, sda-x to drive L? Is the L Drive the newly added option in the Vista bootloader menu explained below?
At any rate, selecting the newly-added option in the Vista bootloader menu, menu.lst given in /dev/sda8/boot/grub was called up.
4. I selected the line "Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)" and logged is as root.
5. A quick "fdisk -l" showed the partitions just fine, so I got into the grub prompt (by typing "grub" at the prompt), then did "root (hd0,7)" followed by "setup (hd0)".
SUCCESS! I didn't receive the "Error 12: Invalid device requested" that I received every other time that I ran the two above commands.
6. I rebooted from recovery mode, and, voila!, GRUB pops up and gives me the correct options given in menu.lst . All entries work from this menu! If I choose Vista (/dev/sda2), then it brings up the Vista bootloader menu, from which I can choose "Vista" again to boot into that Windows. FWIW, if I choose "Linux" from the Vista bootloader menu, I'm brought back to the GRUB loader.
Now, I haven't yet checked to see if GParted can read the partitions correctly, but at least it's up and working. It's worth noting that you can go back into Vista and run EasyBCD again to remove the Linux entry added to the Windows Vista bootloader. Since I only added one entry originally, the deletion of this entry left only 1 entry in the Vista bootloader list, which means that Vista now boots correctly (i.e. the Vista bootloader list doesn't come up when I select my Vista partition / sda8 from the grub menu).
Last edited by WxGuy1; December 3rd, 2007 at 02:40 AM.
Working with WxGuy1's solution, I will:
1. Download EasyBCD 1.7.1
2. With EasyBCD create a windows loader
3. Use the new loader to launch Ubuntu Gutsy
4. In Gutsy, use Grub to fix Grub.
Bookmarks