charliep
Group: Members
Posts: 2
Joined: April 2005 |
|
Posted: April 27 2005,22:16 |
|
I have been dabbling with DSL for a few months now so I am really a novice. I am trying to make a CD that includes DSL with a script that will copy disk images and files to restore a hard disk. Things are mostly working, but I want to restore the partition tables and this disk is 40GB with more than 12 partitions. I tried sfdisk from the script, after using it to save the partitions, but unfortunately, the partitions are not nice - the last partition is in the middle (and --force does not work) I decided to use dd to just duplicate the partitions exactly.
Example: dd if=/cdrom/part15 of=/dev/hda bs=512 count=1 seek=75012345
After quite a day trying to understand why I could not see the upper partitions, I realised that dd was not working because of the 4 byte limit. I did some internet searches and think I see that dd has a 2 GB limit !
I know that I can use dd to copy the full 40GB disk, but I need to write specific sectors near the end.
Is there a dd that "works" or another way to write sectors to the disk that bypasses this apparent limit ?
|