View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Apr 28, 2004 10:48 pm 
Offline
Joined: Fri Apr 23, 2004 4:01 am
Posts: 41
Hi All,

I installed my MythTV test box with the auto-install option and default partition sizes. I'd like to resize the /myth partition (it used all the remaining space on the drive) to a smaller size so I can create a new partition at the end of the disk for either a ghost backup or dual boot reasons.

So, is it possible to resize the partition without losing the contents? How?

Cheers,
JohnO


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 11, 2004 9:06 am 
Offline
Joined: Thu Nov 20, 2003 6:23 pm
Posts: 17
Location: Seattle, WA, USA
I tried to do this and failed, but maybe it will help you anyway. the "parted" program (http://www.gnu.org/software/parted/parted.html ) claims to be able to resize ext3 partitions, so I grabbed it and tried:

# apt-get install parted

// this is from memory - don't have system here
# parted /dev/hda
(parted) print
// a list of partions similar to fdisk p
(parted) resize
(partition-number) 4
(start [old start]) // I just accept the old start
(end) -20000 // 20Gb(ish) from end of disk

but I got an error that my partition was "strange" or something similar. I had a workaround, and didn't think to write it down. sorry.

My /myth partition didn't have much in it yet, so I copied the data to /cache, deleted and re-created it smaller, and restored the data back in from /cache.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 11, 2004 3:46 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
parted should work, I think though that instead of doing -20000 and thinking it counts back from the end of the disk it would be +1000000 however big you want the partition to be.

There is a frontend qtparted that is nice, but I don't think it will install on knoppmyth because of dependacies, but I'm not sure about that.

or for that matter if you have a knoppix disk around you could boot off that and use qtparted. it's included with knoppix.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu