[wellylug] Adding disk space

Cliff Pratt enkidu at cliffp.com
Thu Dec 28 10:37:17 NZDT 2006


Rob Giltrap wrote:
> Cliff Pratt wrote:
>> Rob Giltrap wrote:
>>> I've been shuffling around my server setup now that I'm using vmware 
>>> server
>>>
>>> I started off with three separate 25GB partitions running Solaris, 
>>> Ubuntu & WinXP.
>>>
>>> I then installed VMware server on the AMD64 Ubuntu 6.10 base 
>>> operating system and starting hosting a Solaris 10 virtual server and 
>>> intend to ditch the WinXP.
>>>
>>> I now wish to reclaim the 50GB space allocated to the original 
>>> Solaris and WinXP partitions and add it to Ubuntu file system. I have 
>>> never added to an existing file system (ext3) so wanted to get some 
>>> pointers on the easiest way to do this.
>>>
>> Say your new partition is /dev/hdb3 (plucking things out of the air).
>>
>> Make a file system on it.
>>
>> Make a mount point such /some/place/you/need/space
>>
>> In /etc/fstab add a line such as...
>>
>> /dev/hdb3 /some/place/you/need/space ext3 defaults 0 0 (Check this - 
>> it is from memory)
>>
>> mount -a
>>
> Thanks, this will allow me to add a partition, what I actually wanted 
> (and wasn't entirely clear in retrospect) was to extend the partition as 
> the old redundant partitions are directly after the linux partition  
> /dev/sda1
> 
OK, sorry. What I will add to Michael's answer is - backup, backup, 
backup...... 8-) What I suggested will give you more space, is a little 
less flexible, but a LOT safer.

If you have, say, a /var directory that is using a lot of space and you 
need more, you can boot from a 'rescue' disk, mount the new partition 
temporarily, move the data from the existing directory to the new 
partition, then edit fstab to mount the new partition on /var.

It's worth considering.

Cheers,

Cliff

Cheers,

Cliff




More information about the wellylug mailing list