Parted; trying to resize partition to actuall size
I got fed up with windowsxp constantly saying a error has occured in almost every program and other annoying things and whiped out the partition completely. The only reason I still had it was for starcraft and printing. I now got my printer to some what work and with my new job I wont have time for games so it wont be missed. I then did a rather un usual way of copying my ext2 lfs partition from /dev/hde3 to /dev/hde1 (where windows was). hde3 is 14 gig and the new hde1 partition is 20 gig. Im doin this to make my drive in just 3 partitions rather than the 9 it is currently. The copy process worked using:
Code:
# dd if=/dev/src-device of=/dev/dst-device bs=1024 count=15371407 It booted up just find and all except when I did df -h It showed the partition as only 14.3 gigs, the original size of /dev/hde3. I tried to do Code:
# parted /dev/hde resize 1 0 20012.11 No Implementation: This ext2 filesystem has a reather strange layout! Parted cant't resize this (yet). In their documentation is cleary states that support for resizing filesystem of ext2 to a larger size with the same start point would work. Can anyone suggest how to resize this partition so that it is correct. Is there any other software that can do this? |
"Can anyone suggest how to resize this partition so that it is correct.
Is there any other software that can do this?" Do the copy again and don't use dd. Make sure /dev/hde1 is umounted and then format it with mkfs, assuming that you want an ext3 partition: mkfs -t ext3 /dev/hde1 Then mount /dev/hde1 and /dev/hde3 and copy /dev/hde3 to /dev/hde1 mkdir /to mkdir /from mount -t ext3 /dev/hde1 /to mount -t ext3 /dev/hde3 /from cp -pR /from /to ___________________________________ Be prepared. Create a LifeBoat CD. http://users.rcn.com/srstites/LifeB....home.page.html Steve Stites |
THX I will do that. Ill let you know if I come up with any problems.
Thanks for your time. |
I had to do a mv /to/from/* /to/ to get all the directories back onto /.
|
All times are GMT -5. The time now is 06:13 AM. |