nthwolf
08-14-2005, 04:26 PM
Greetings all,
Couldn't figure out which forums to post this to since it covers a few different things. I've got the book Knoppix Hacks. I thought it was a pretty good book and I was excited about copying my windows partition. That's where I ran across problems.
I'm booting from the Knoppix CD that came with the book and my computer has windows installed on the hard drive and I have 1GB of RAM(more on why I mention the RAM later).
I've got a hard drive with 3 NTFS partitions. I want to copy partition 1 (hda1) to a directory in partition 2 (hda2 but it's being detected as hda5). From my understanding of the book I have to run captive to be able to write to an NTFS partition.
I tried running captive and it would spontaneously close out on me. I then skipped the first screen that comes up and had it search the ms service pack thing. I had more luck with that but it would still throw error messages at me. I don't have the error messages written down because I figure if I can get by with captive partially working then dd is my problem.
So, after running captive, I mount hda5 so I can write to that NTFS partition. Here's the command I used:
sudo mount -t captive-ntfs -o uid=knoppix,gid=knoppix /dev/hda5 /mnt/hda5
After mounting hda5 so I can write to it I type this command:
dd if=/dev/hda1 of=/mnt/hda5/temp/os-backup.img
I get impatient and want to watch the progress so i open another terminal up and type:
watch ls -l /mnt/hda5/temp/os-backup.img
Numbers flash on the screen. I get excited because I feel like I'm almost getting the hang of this. A while later the numbers stop moving and I see that I get the > in the original terminal that I typed dd in meaning I can type something else there now if I wanted to.
I check the terminal with the watch command and see some big number starting with 4. I get excited because there are a lot of numbers and assume that it's 4GB. Yes, I took basic math in school and I must have gotten too excited because when I went back to windows I found out that the file was only 400MB and not 4GB. 4GB is about the amount of space that the windows install took up on main partition of the hard drive.
Here are my thoughts on what might have happened.
It wrote just what was remaining in my RAM which I'm assuming is around 400MB?
I didn't unmount hda5 before closing down Knoppix?
PEBKAC so I'm screwed since I can't change that.
Any help would be appreciated and I apologize if this was the wrong forum to post this to.
edit: forgot to add that hda1 is 7GB with ~3GB free and hda5 is 35GB with ~20GB free
Couldn't figure out which forums to post this to since it covers a few different things. I've got the book Knoppix Hacks. I thought it was a pretty good book and I was excited about copying my windows partition. That's where I ran across problems.
I'm booting from the Knoppix CD that came with the book and my computer has windows installed on the hard drive and I have 1GB of RAM(more on why I mention the RAM later).
I've got a hard drive with 3 NTFS partitions. I want to copy partition 1 (hda1) to a directory in partition 2 (hda2 but it's being detected as hda5). From my understanding of the book I have to run captive to be able to write to an NTFS partition.
I tried running captive and it would spontaneously close out on me. I then skipped the first screen that comes up and had it search the ms service pack thing. I had more luck with that but it would still throw error messages at me. I don't have the error messages written down because I figure if I can get by with captive partially working then dd is my problem.
So, after running captive, I mount hda5 so I can write to that NTFS partition. Here's the command I used:
sudo mount -t captive-ntfs -o uid=knoppix,gid=knoppix /dev/hda5 /mnt/hda5
After mounting hda5 so I can write to it I type this command:
dd if=/dev/hda1 of=/mnt/hda5/temp/os-backup.img
I get impatient and want to watch the progress so i open another terminal up and type:
watch ls -l /mnt/hda5/temp/os-backup.img
Numbers flash on the screen. I get excited because I feel like I'm almost getting the hang of this. A while later the numbers stop moving and I see that I get the > in the original terminal that I typed dd in meaning I can type something else there now if I wanted to.
I check the terminal with the watch command and see some big number starting with 4. I get excited because there are a lot of numbers and assume that it's 4GB. Yes, I took basic math in school and I must have gotten too excited because when I went back to windows I found out that the file was only 400MB and not 4GB. 4GB is about the amount of space that the windows install took up on main partition of the hard drive.
Here are my thoughts on what might have happened.
It wrote just what was remaining in my RAM which I'm assuming is around 400MB?
I didn't unmount hda5 before closing down Knoppix?
PEBKAC so I'm screwed since I can't change that.
Any help would be appreciated and I apologize if this was the wrong forum to post this to.
edit: forgot to add that hda1 is 7GB with ~3GB free and hda5 is 35GB with ~20GB free