-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi :)

I should rest a day, now I definitive make mistakes.

Bad news for my USB device, might be good news for my IDE. Half asleep I
made a mistake, I might have done before. Maybe cfdisk wrote to the IDE
instead of writing to the USB stick and that's why the IDEs MBR and/or
EBR is broken ;).

I'll google for the places in the MBR, were the pointers are pointing at
GRUB and the Windows boot loader. I will restore anything in the MBR,
excepted this two pointers, because I've got a backup of the MBR with
the wanted partition table, but without this pointers. Until now I had
bad luck with searching for this information.

Okay, it's easy to rewrite GRUB, but I've no media to rewrite the
Windows boot loader.

I'll also google if it's possible to get a 'start CD' for Windows XP, by
Windows XP, but I guess it's only possible to get a start disc.

spinymo...@64studio:~$ su
Password:
64studio:/home/spinymouse# ls -l /dev/disk/by-id | grep Intenso
lrwxrwxrwx 1 root root  9 2009-03-10 03:44
usb-Intenso_Rainbow_09012200230519 -> ../../sdb
64studio:/home/spinymouse# ntpdate ntp.favey.ch
10 Mar 02:46:43 ntpdate[4754]: step time server 195.34.89.227 offset
0.815176 sec
64studio:/home/spinymouse# dd if=/dev/zero of=/dev/sdb
dd: writing to `/dev/sdb': Input/output error
18417+0 records in
18416+0 records out
9428992 bytes (9.4 MB) copied, 1.5787 seconds, 6.0 MB/s
64studio:/home/spinymouse#

The USB stick's LED was still flashing, while I run 'date' in a second
GNOME Terminal 2.14.2 tab @

spinymo...@64studio:~$ date
Tue Mar 10 02:51:40 CET 2009
spinymo...@64studio:~$ date
Tue Mar 10 03:07:34 CET 2009
spinymo...@64studio:~$
spinymo...@64studio:~$ date
Tue Mar 10 03:10:00 CET 2009
spinymo...@64studio:~$ date
Tue Mar 10 08:16:58 CET 2009
spinymo...@64studio:~$

I closed the terminal, but the flashing was going on. I disconnected the
USB device and connected it again no flashing any more.

I opened a terminal again. I made a mistake :(.

spinymo...@64studio:~$ su
Password:
64studio:/home/spinymouse# ntpdate ntp.favey.ch
10 Mar 08:21:24 ntpdate[8947]: step time server 195.34.89.227 offset
2.476117 sec
64studio:/home/spinymouse# cfdisk

Cfdisk opened with:

                                                 cfdisk 2.12r

                                             Disk Drive: /dev/hda
                                       Size: 81964302336 bytes, 81.9 GB
                             Heads: 16   Sectors per Track: 63
Cylinders: 158816

     Name             Flags          Part Type      FS Type
   [Label]              Size (MB)
 
-------------------------------------------------------------------------------------------------------------
     hda1             Boot            Primary       W95 FAT32
   []                    81964.31

I overwrote it with the same setting and it ends with:


                                                 cfdisk 2.12r

                                             Disk Drive: /dev/hda
                                       Size: 81964302336 bytes, 81.9 GB
                             Heads: 16   Sectors per Track: 63
Cylinders: 158816

     Name             Flags          Part Type      FS Type
   [Label]              Size (MB)
 
-------------------------------------------------------------------------------------------------------------
     hda1             Boot            Primary       W95 FAT32
   []                    81964.31

                                         Wrote partition table to disk
                                 Toggle bootable flag of the current
partition

Disk has been changed.

WARNING: If you have created or modified any
DOS 6.x partitions, please see the cfdisk manual
page for additional information.
64studio:/home/spinymouse# ls -l /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 2009-03-10 03:44 ata-Maxtor_6L080P0_L24K9GLG
- -> ../../hda
lrwxrwxrwx 1 root root 10 2009-03-10 08:24
ata-Maxtor_6L080P0_L24K9GLG-part1 -> ../../hda1
lrwxrwxrwx 1 root root  9 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387 -> ../../sda
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387-part1 -> ../../sda1
lrwxrwxrwx 1 root root 11 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387-part10 -> ../../sda10
lrwxrwxrwx 1 root root 11 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387-part11 -> ../../sda11
lrwxrwxrwx 1 root root 11 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387-part12 -> ../../sda12
lrwxrwxrwx 1 root root 11 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387-part13 -> ../../sda13
lrwxrwxrwx 1 root root 11 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387-part14 -> ../../sda14
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
ata-SAMSUNG_HD321KJ-S0MQJ9AQ308387-part9 -> ../../sda9
lrwxrwxrwx 1 root root  9 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387 -> ../../sda
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387-part1 -> ../../sda1
lrwxrwxrwx 1 root root 11 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387-part10 -> ../../sda10
lrwxrwxrwx 1 root root 11 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387-part11 -> ../../sda11
lrwxrwxrwx 1 root root 11 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387-part12 -> ../../sda12
lrwxrwxrwx 1 root root 11 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387-part13 -> ../../sda13
lrwxrwxrwx 1 root root 11 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387-part14 -> ../../sda14
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 2009-03-10 03:44
scsi-SATA_SAMSUNG_HD321KJS0MQJ9AQ308387-part9 -> ../../sda9
lrwxrwxrwx 1 root root  9 2009-03-10 08:19
usb-Intenso_Rainbow_09012200230519 -> ../../sdb
64studio:/home/spinymouse# cfdisk -z /dev/sdb

Now cfdisk opened as wanted with:

                                                 cfdisk 2.12r

                                             Disk Drive: /dev/sdb
                                        Size: 8086618112 bytes, 8086 MB
                             Heads: 249   Sectors per Track: 62
Cylinders: 1023

     Name             Flags          Part Type      FS Type
   [Label]              Size (MB)
 
-------------------------------------------------------------------------------------------------------------
                                      Pri/Log       Free Space
                          8086.06

I tried to write:

                                                 cfdisk 2.12r

                                             Disk Drive: /dev/sdb
                                        Size: 8086618112 bytes, 8086 MB
                             Heads: 249   Sectors per Track: 62
Cylinders: 1023

     Name             Flags          Part Type      FS Type
   [Label]              Size (MB)
 
-------------------------------------------------------------------------------------------------------------
     sdb1             Boot            Primary       W95 FAT32
                          8086.06

                                         Wrote partition table to disk
                                 Toggle bootable flag of the current
partition

Disk has been changed.

WARNING: If you have created or modified any
DOS 6.x partitions, please see the cfdisk manual
page for additional information.
64studio:/home/spinymouse# cfdisk -z /dev/sdb

Nothing was written:

                                                 cfdisk 2.12r

                                             Disk Drive: /dev/sdb
                                        Size: 8086618112 bytes, 8086 MB
                             Heads: 249   Sectors per Track: 62
Cylinders: 1023

     Name             Flags          Part Type      FS Type
   [Label]              Size (MB)
 
-------------------------------------------------------------------------------------------------------------
                                      Pri/Log       Free Space
                          8086.06

64studio:/home/spinymouse# mkfs.vfat /dev/sdb
bash: mkfs.vfat: command not found
64studio:/home/spinymouse#

It makes me wonder, that if I had overwritten the MBR of my IDE, there's
still a pointer to GRUB and it's still possible that I can boot Windows
on the IDE. I also wonder if the EBR might be overwritten too.

I have a dd backup of the MBR without the pointers to GRUB and the
Windows bootloader, but no backup of the EBR.

I have a backup of my Windows done by Acronis True Image, so (Google
said) I also should have a MBR (by Acronis, that means with the pointer
to GRUB and the Windows boot loader).

Hm, I didn't found an option to only restore the MBR by True Image.

I made a backup of the actual MBRs (and a mistake again):

64studio:/home/spinymouse# mkdir brokenIDE-MBR
64studio:/home/spinymouse# cd brokenIDE-MBR
64studio:/home/spinymouse/brokenIDE-MBR# dd if=/dev/hda
of=broken_IDE_MBR bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.000419408 seconds, 1.2 MB/s
64studio:/home/spinymouse/brokenIDE-MBR# dd if=/dev/sda
of=fine_SATA_MBR_10March2009 bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 6.9901e-05 seconds, 7.3 MB/s
64studio:/home/spinymouse/brokenIDE-MBR# dd if=/dev/sdc
of=defect_USB_sticks_MBR bs=512 count=1
dd: opening `/dev/sdc': No such file or directory
64studio:/home/spinymouse/brokenIDE-MBR# dd if=/dev/sdb
of=defect_USB_sticks_MBR bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00107736 seconds, 475 kB/s
64studio:/home/spinymouse/brokenIDE-MBR# ls -l
total 12
- -rw-r--r-- 1 root root 512 2009-03-10 09:05 broken_IDE_MBR
- -rw-r--r-- 1 root root 512 2009-03-10 09:09 defect_USB_sticks_MBR
- -rw-r--r-- 1 root root 512 2009-03-10 09:07 fine_SATA_MBR_10March2009
64studio:/home/spinymouse/brokenIDE-MBR#

Cheers,
Ralf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJti49BB0F0gtihHgRAmPSAJ9VN4m0c4lO3qqRg4Kd3RmGEjTbUgCgin9E
iV1cVafBBa3TsAEGEFS2JLc=
=M0lo
-----END PGP SIGNATURE-----
_______________________________________________
64studio-users mailing list
[email protected]
http://lists.64studio.com/mailman/listinfo/64studio-users

Reply via email to