tinkerpad
June 28th, 2008, 02:56 PM
Hello all,
I am using a Thinkpad R40.
Before I recently installed Ubuntu, my disk layout was the following:
1. 31 GB, primary, XP pro boot (C:\)
2. 5 GB, primary, data (ntfs) (D:\)
3. 3 GB, hidden XP recovery area (not a partition)
To install Ubuntu, I emptied the 5GB partition but did not delete it in XP.
Then I hibernated XP
In the installing process I deleted the 5GB partition which left me a 8 GB free space for installation since linux fdis does not "recognize" the hidden space as unusable. So now I have 7GB ubuntu and 1GB swap.
Everything worked fine, I could boot both systems in the boot menu. Windows still listed D:\ in the file explorer, I did not try to access thogh.
However once I shut down XP (no hibernation), and could not get it booted again (blue screen with "BOOT_PARTITION_MOUNT_FAIL", well i cannot remember exactly). In the recovery console started from the XP install CD nothing worked either (no chkdsk, fixboot), it always said something like "error with the partition". Still possible to mount in linux though.
Then I tried TestDisk, which said that the number of cylinders for in the partition table of the ntfs partition did not match with the actual size:
testdisk.log
Interface Advanced
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
heads/cylinder 240 (NTFS) != 255 (HD)
This seemed to correspond to the "hidden area".
Anyway, I made TestDisk write a new boot record on the partition:
Write new boot!
ntfs_boot_sector
1 * HPFS - NTFS 0 1 1 3823 254 63 61432497
NTFS, 31 GB / 29 GiB
NTFS at 0/1/1
NTFS at 0/1/1
filesystem size 61432497
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 3839531
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK
That did't help anything.
So I wanted XP to write a new MBR and reinstall grub afterwards.
So did I from the XP recover console with a
fixmbr
Well, this only made grub go to hell and I cannot boot anything. The ntfs partition is still not accessible from the XP recovery console.
What can i do to get the XP back to boot, and reinstall grub?
Thanks a lot for reading if you came along until here :)
Chris
BTW, a fdisk -lu gives:
ubuntu@ubuntu:/media/ZAPP/boot_bakcup/linux$ sudo fdisk -lu
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders, total 78140160 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xcccdcccd
Device Boot Start End Blocks Id System
/dev/sda1 * 63 61432559 30716248+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 61432560 76083839 7325640 83 Linux
/dev/sda3 76083840 78140159 1028160 82 Linux swap / Solaris
I am using a Thinkpad R40.
Before I recently installed Ubuntu, my disk layout was the following:
1. 31 GB, primary, XP pro boot (C:\)
2. 5 GB, primary, data (ntfs) (D:\)
3. 3 GB, hidden XP recovery area (not a partition)
To install Ubuntu, I emptied the 5GB partition but did not delete it in XP.
Then I hibernated XP
In the installing process I deleted the 5GB partition which left me a 8 GB free space for installation since linux fdis does not "recognize" the hidden space as unusable. So now I have 7GB ubuntu and 1GB swap.
Everything worked fine, I could boot both systems in the boot menu. Windows still listed D:\ in the file explorer, I did not try to access thogh.
However once I shut down XP (no hibernation), and could not get it booted again (blue screen with "BOOT_PARTITION_MOUNT_FAIL", well i cannot remember exactly). In the recovery console started from the XP install CD nothing worked either (no chkdsk, fixboot), it always said something like "error with the partition". Still possible to mount in linux though.
Then I tried TestDisk, which said that the number of cylinders for in the partition table of the ntfs partition did not match with the actual size:
testdisk.log
Interface Advanced
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
heads/cylinder 240 (NTFS) != 255 (HD)
This seemed to correspond to the "hidden area".
Anyway, I made TestDisk write a new boot record on the partition:
Write new boot!
ntfs_boot_sector
1 * HPFS - NTFS 0 1 1 3823 254 63 61432497
NTFS, 31 GB / 29 GiB
NTFS at 0/1/1
NTFS at 0/1/1
filesystem size 61432497
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 3839531
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK
That did't help anything.
So I wanted XP to write a new MBR and reinstall grub afterwards.
So did I from the XP recover console with a
fixmbr
Well, this only made grub go to hell and I cannot boot anything. The ntfs partition is still not accessible from the XP recovery console.
What can i do to get the XP back to boot, and reinstall grub?
Thanks a lot for reading if you came along until here :)
Chris
BTW, a fdisk -lu gives:
ubuntu@ubuntu:/media/ZAPP/boot_bakcup/linux$ sudo fdisk -lu
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders, total 78140160 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xcccdcccd
Device Boot Start End Blocks Id System
/dev/sda1 * 63 61432559 30716248+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 61432560 76083839 7325640 83 Linux
/dev/sda3 76083840 78140159 1028160 82 Linux swap / Solaris