LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Parted; trying to resize partition to actuall size (https://www.linuxquestions.org/questions/linux-general-1/parted%3B-trying-to-resize-partition-to-actuall-size-176224/)

Zero-0-Effect 04-30-2004 01:54 AM

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
I then edited my menu.lst file and mounted the partition edited /etc/fstab then rebooted into it.
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
and get a error saying
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?

jailbait 04-30-2004 07:51 PM

"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

Zero-0-Effect 04-30-2004 08:03 PM

THX I will do that. Ill let you know if I come up with any problems.
Thanks for your time.

Zero-0-Effect 04-30-2004 10:13 PM

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 01:55 PM.