LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   [B]Can't Boot Windows Xp in a dual-boot e[/B] (https://www.linuxquestions.org/questions/ubuntu-63/%5Bb%5Dcant-boot-windows-xp-in-a-dual-boot-e%5B-b%5D-569898/)

512upload 07-17-2007 08:44 AM

While waiting for your reply, jthuber, I was trying to copy the files from the partition where I had Ubuntu to an external drive: ZAAPA (80GB), but I can't copy many folders. They have a red cross over them and in the properties I read that they are unreadable. Is there a way I can override this? I used sudo to try to copy the folders with -r command I just saw in the web.

Oh! It seems that sudo made me able to copy everything!

Maybe it's easier for me now to try the mbr fix and copy the files from the ntfs partition so as to reinstall everything again...

512upload 07-17-2007 09:23 AM

omg

after doing fixmbr with the recovery console, when I turn on the computer I get the error:

"Reboot and Select proper Boot device
or Insert Boot Media in selected Boot device and press a key"! :'(

help me, I have now the ubuntu files archived, I "just" need to recover the windows files!

512upload 07-17-2007 10:00 AM

why did this had to happen with me?
I believe that the ntfs partition began not being recognised after I used your menu.lst settings. So, I hope that I didn't lose the information there. But what does that matter if I don't know how to recover it!?

:'(

512upload 07-17-2007 10:26 AM

what i have now is

http://img525.imageshack.us/img525/4...eenshotax3.png

jiml8 07-17-2007 10:41 AM

I have just read and re-read this entire thread very carefully. I have two comments.

First, don't panic. You have lost no data, though it certainly appears that your partition table is screwed up.

Second, I am simply astonished that the others posting on this thread have not caught this; the partition information (which you say is from gparted) listed by you in your first post is peculiar and inconsistent with the png image you put up at imageshack.

Further, assuming the data given in the first post of this thread is accurate, all of the advice you were given subsequent to that time is wrong.

The data from the first post shows that you have defined hda1 as an extended partition and the first extended partition (hda5) contains your winXP installation. Then, you have a primary partition hda2 which is Linux and a primary partition hda3 which is Linux swap. There is no hda4.

It is not obvious to me that XP will boot from this configuration; I have never tried it, but normally the boot stuff for windows has to be on the first partition. In fact, the windows stuff IS on the first partition, but this partition is not structured conventionally. I rather think it WILL work, but wouldn't guarantee it.

Now, the problem with all the instructions you have received is that they are not properly considering how grub will identify these partitions. Grub identifies the first disk (hda) as disk 0. Grub identifies the first partition as partition 0.

So your mapping from linux identifiers to grub identifiers (based upon the info on the first post) is this:

hda1 -> hd(0,0) an extended partition, not really used for anything by grub
hda2 -> hd(0,1) a Linux partition
hda3 -> hd(0,2) Linux swap
hda4 -> hd(0,3) not defined; shouldn't be referenced
hda5 -> hd(0,4) ntfs, the WinXP partition.

Now your discrepancy with the png image in imageshack is obvious: that gparted graphical output is identifying hda1 as an ntfs partition, rather than an extended partition.

edit: Previous statement is not accurate. Should say "graphical output is identifying hda1 as an unknown primary partition, rather than identifying it as an extended partition, and hda5 is not being identified at all".

This needs to be resolved before you proceed. You are of course free to wait for jthuber if you wish, but I will be around a bit today and can assist you if you so desire.

If you so desire, then as root from a shell in the liveCD, run the command "fdisk -l" (no quotes) and post the results here.

512upload 07-17-2007 10:49 AM

Quote:

Originally Posted by jiml8
The data from the first post shows that you have defined hda1 as an extended partition and the first extended partition (hda5) contains your winXP installation. Then, you have a primary partition hda2 which is Linux and a primary partition hda3 which is Linux swap. There is no hda4.

At the start, i had just hda1, hda2 and hda3 with no swap partition.

After having the error "NTLDR" is missing was when I started getting the first partition as extended.

The 1GB partition was a shared partition for Windows XP and Ubuntu and not a swap partition.

512upload 07-17-2007 10:51 AM

I get no results, jiml8. Bayme because of having run fixmbr...

EDITED

if i use "fdisk" instead of "fdisk -l", I get:

"Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)"

:(

jiml8 07-17-2007 10:53 AM

Quote:

Originally Posted by 512upload
The 1GB partition was a shared partition for Windows XP and Ubuntu.

Yes, I see that I was calling it swap when it was identified as FAT32.

In any case, this "extended" thing needs to be resolved.

jiml8 07-17-2007 10:54 AM

Quote:

Originally Posted by 512upload
I get no results, jiml8. Bayme because of having run fixmbr...

What do you mean "no results"? I did ask for the output of the command.

And fixmbr won't affect that at all.

512upload 07-17-2007 10:57 AM

You told me not to panic, but I don't think I will be able to do it...

512upload 07-17-2007 10:59 AM

Quote:

Originally Posted by jiml8
What do you mean "no results"? I did ask for the output of the command.

And fixmbr won't affect that at all.

http://img511.imageshack.us/img511/5...enshot1vh1.png

this is what I meant

jiml8 07-17-2007 11:03 AM

are you root when you do that?

Alright, fine. Try this: "sfdisk -l"

Also try this (copy and paste it):
dd if=/dev/hda bs=512 count=1|hexdump -C

This latter command (if you have the hexdump command available) will print out your master boot record to the console. If it works, copy/paste the results here.

512upload 07-17-2007 11:07 AM

Quote:

Originally Posted by jiml8
are you root when you do that?

Alright, fine. Try this: "sfdisk -l"

Also try this (copy and paste it):
dd if=/dev/hda bs=512 count=1|hexdump -C

This latter command (if you have the hexdump command available) will print out your master boot record to the console. If it works, copy/paste the results here.

ubuntu@ubuntu:~$ sfdisk -l
ubuntu@ubuntu:~$ dd if=/dev/hda bs=512 count=1|hexdump -C
dd: opening `/dev/hda': Permission denied
ubuntu@ubuntu:~$ sudo dd if=/dev/hda bs=512 count=1|hexdump -C
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0177426 seconds, 28.9 kB/s
00000000 33 c0 8e d0 bc 00 7c fb 50 07 50 1f fc be 1b 7c |3.....|.P.P....||
00000010 bf 1b 06 50 57 b9 e5 01 f3 a4 cb bd be 07 b1 04 |...PW...........|
00000020 38 6e 00 7c 09 75 13 83 c5 10 e2 f4 cd 18 8b f5 |8n.|.u..........|
00000030 83 c6 10 49 74 19 38 2c 74 f6 a0 b5 07 b4 07 8b |...It.8,t.......|
00000040 f0 ac 3c 00 74 fc bb 07 00 b4 0e cd 10 eb f2 88 |..<.t...........|
00000050 4e 10 e8 46 00 73 2a fe 46 10 80 7e 04 0b 74 0b |N..F.s*.F..~..t.|
00000060 80 7e 04 0c 74 05 a0 b6 07 75 d2 80 46 02 06 83 |.~..t....u..F...|
00000070 46 08 06 83 56 0a 00 e8 21 00 73 05 a0 b6 07 eb |F...V...!.s.....|
00000080 bc 81 3e fe 7d 55 aa 74 0b 80 7e 10 00 74 c8 a0 |..>.}U.t..~..t..|
00000090 b7 07 eb a9 8b fc 1e 57 8b f5 cb bf 05 00 8a 56 |.......W.......V|
000000a0 00 b4 08 cd 13 72 23 8a c1 24 3f 98 8a de 8a fc |.....r#..$?.....|
000000b0 43 f7 e3 8b d1 86 d6 b1 06 d2 ee 42 f7 e2 39 56 |C..........B..9V|
000000c0 0a 77 23 72 05 39 46 08 73 1c b8 01 02 bb 00 7c |.w#r.9F.s......||
000000d0 8b 4e 02 8b 56 00 cd 13 73 51 4f 74 4e 32 e4 8a |.N..V...sQOtN2..|
000000e0 56 00 cd 13 eb e4 8a 56 00 60 bb aa 55 b4 41 cd |V......V.`..U.A.|
000000f0 13 72 36 81 fb 55 aa 75 30 f6 c1 01 74 2b 61 60 |.r6..U.u0...t+a`|
00000100 6a 00 6a 00 ff 76 0a ff 76 08 6a 00 68 00 7c 6a |j.j..v..v.j.h.|j|
00000110 01 6a 10 b4 42 8b f4 cd 13 61 61 73 0e 4f 74 0b |.j..B....aas.Ot.|
00000120 32 e4 8a 56 00 cd 13 eb d6 61 f9 c3 49 6e 76 61 |2..V.....a..Inva|
00000130 6c 69 64 20 70 61 72 74 69 74 69 6f 6e 20 74 61 |lid partition ta|
00000140 62 6c 65 00 45 72 72 6f 72 20 6c 6f 61 64 69 6e |ble.Error loadin|
00000150 67 20 6f 70 65 72 61 74 69 6e 67 20 73 79 73 74 |g operating syst|
00000160 65 6d 00 4d 69 73 73 69 6e 67 20 6f 70 65 72 61 |em.Missing opera|
00000170 74 69 6e 67 20 73 79 73 74 65 6d 00 00 00 00 00 |ting system.....|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001b0 00 00 00 00 00 2c 44 63 f8 17 f8 17 00 00 00 00 |.....,Dc........|
000001c0 01 01 15 fe ff ff c1 3e 00 00 be d8 5f 09 00 fe |.......>...._...|
000001d0 ff ff 93 fe ff ff 7f 17 60 09 7f 56 21 09 00 fe |........`..V!...|
000001e0 ff ff 0b fe ff ff fe 6d 81 12 c3 1c 20 00 00 00 |.......m.... ...|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200

jiml8 07-17-2007 11:12 AM

The output of sfdisk would be a lot easier to read. The access denied means you weren't root. Try it as root.

512upload 07-17-2007 11:14 AM

Quote:

Originally Posted by jiml8
The output of sfdisk would be a lot easier to read. The access denied means you weren't root. Try it as root.

ubuntu@ubuntu:~$ sudo sfdisk -l

Disk /dev/hda: 19457 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hda1 1 9790 9790 78638175 15 Unknown
/dev/hda2 9791 19325 9535 76589887+ 93 Amoeba
/dev/hda3 19326 19456 131 1052257+ b W95 FAT32
/dev/hda4 0 - 0 0 0 Empty
ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 2 9791 78638175 15 Unknown
/dev/hda2 9792 19326 76589887+ 93 Amoeba
/dev/hda3 19327 19457 1052257+ b W95 FAT32


All times are GMT -5. The time now is 12:09 PM.