LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-30-2004, 02:54 AM   #1
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Rep: Reputation: 31
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?
 
Old 04-30-2004, 08:51 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,575

Rep: Reputation: 184Reputation: 184
"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

Last edited by jailbait; 04-30-2004 at 08:53 PM.
 
Old 04-30-2004, 09:03 PM   #3
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
THX I will do that. Ill let you know if I come up with any problems.
Thanks for your time.
 
Old 04-30-2004, 11:13 PM   #4
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
I had to do a mv /to/from/* /to/ to get all the directories back onto /.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
resize / change inode size for partition? tinksmartbstupi Linux - Software 2 05-24-2009 09:54 AM
Can't resize ext3 partition (using "parted"). Help or advise another app, plz kornerr Linux - General 2 04-28-2005 11:01 AM
Increasing Size of Primary Windows Partition Using Parted overthinker Linux - Newbie 6 01-01-2005 10:56 AM
Increasing Size of Primary Windows Partition Using Parted overthinker Linux - Software 2 12-31-2004 01:49 PM
Resize Partition with parted jdmml Linux - Hardware 0 07-08-2004 09:43 PM


All times are GMT -5. The time now is 10:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration