Jump to content

help with growing an existing partition


s0c0

Recommended Posts

My primary ext3 partition /dev/sda1 is about 56 GB and I have an additional 60 GB of unpartitioned space I would like added to it.  Don't ask me why I didn't just add it in the beginning, but users are steadily eating up that 56 GB partition.  How should I do this?  I've looked into using cfdisk.  I've selected the partition, then selected maximize, but to be honest I am way to afraid to click write changes lol.  Anytime I see a warning stating data could be lost it freaks me out, especially with all the important stuff on this server.

 

I am using debian sarge I think, its definitely not etch though.  I'm sure I could figure this out on my own, but this is too important for me to screw it up.  Your help is much appreciated.

Link to comment
Share on other sites

Honestly, you tend to only lose data about 1% of the time. Get yourself a bunch of dvds an backup, then go for it!

 

The other option is to create a new partition and then mount it as a subfolder under the old one, split the data between the partitions.

 

/dev/sda1 mounted /home

/dev/sda2 mounted /usr

 

Or even use symlinks to the other partition: (especially if the data is all in home's)

 

something like

 

/dev/sda1 mounted /home

/dev/sda2 mount /media/sda2

 

/home/john (on sda1)

/home/peter => /media/sda2/peter (symlinked to sda2)

 

In this case you would have to:

mv /home/peter /media/sda2/

ln -s /home/peter /media/sda2/peter

 

This way is potentially more confusing, and probably not ideal - but less chance of losing data!

 

 

Also, talking personally,  i have had much success using PartionMagic to resize partitions - but its not OSS.

 

Good luck,

tdw

 

Link to comment
Share on other sites

Small Point:

You normaly cannot extend an existing partition. You can change the size of the partition, but the file system on it will remain the same size.  You can use some fancy tools but ive not done enough with them to advise.

 

I would dissagree with the thedarkwinter.  I think that ajusting the size of your current partition is very risky.  (take a backup whatever you say).  His seccond point of creating a new partionon would be far better.  Then you could move some of your larger users accross to that and use a symlink.  Also if your not to confident in partitioning then it gives you a charnce to play around with it.

 

If you do go down the route of changing the current partition then make sure no one is trying to right to it at the time (if it on network).  Also you could consider setting it to expand as it need.

Link to comment
Share on other sites

Hmm well this kind of sucks.  Even the linux sys admin at work wasn't to keen on any of my options.  It looks like symbolic links will have to do when the time comes, hopefully I can afford a new server by then and won't even have to go down that route.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.