Click to See Complete Forum and Search --> : How to un-dd


BoazHarrosh
10-12-2003, 01:51 PM
Had a P4 1.5 system with an 19 Gg HD with MDK 9.1 installed.
I needed to upgraded to a bigger HD.

what I did:
- boot with Knnopix CD
- Partition the new (40 Gg) HD similar to the old one. hda1-swap hda2-ext3. Same as the 19 Gg one, only the second ext3 partition bigger to cover the rest of the 40Gg

- mount old disk at /mnt/oldpar
- mount new disk at /mnt/newpar
- dd if=/mnt/oldpar of=/mnt/newpar
(I know that last bit was a mistake)

- Than I lilo -r /mnt/newpar
- rebooted with the new hd in place and all was well.

After a while I noticed that fd still reports total space of 18Gg. when I hit the 18Gg limit the ext3 is unable to use any more space on the disk.

[Q] How can I fix my ext3 structure so it will use all available space. ( I could always attach a temporary hd this time cp -a everything back and forth but is this the only way?)

bosox79
10-12-2003, 02:19 PM
Originally posted by BoazHarrosh
Had a P4 1.5 system with an 19 Gg HD with MDK 9.1 installed.
I needed to upgraded to a bigger HD.

what I did:
- boot with Knnopix CD
- Partition the new (40 Gg) HD similar to the old one. hda1-swap hda2-ext3. Same as the 19 Gg one, only the second ext3 partition bigger to cover the rest of the 40Gg

- mount old disk at /mnt/oldpar
- mount new disk at /mnt/newpar
- dd if=/mnt/oldpar of=/mnt/newpar
(I know that last bit was a mistake)

- Than I lilo -r /mnt/newpar
- rebooted with the new hd in place and all was well.

After a while I noticed that fd still reports total space of 18Gg. when I hit the 18Gg limit the ext3 is unable to use any more space on the disk.

[Q] How can I fix my ext3 structure so it will use all available space. ( I could always attach a temporary hd this time cp -a everything back and forth but is this the only way?)

I am pretty sure you are going to need to redo your partitons & mount points :(

BoazHarrosh
10-12-2003, 03:44 PM
Not acceptable, there most be a way
I'll try gnu parted tomorrow