[Lincoln LUG] disk size

Andrew Walmsley mraiwalmsley at gmail.com
Wed Oct 4 06:56:08 UTC 2017


Hi Graham

I did try fdisk but it won't delete the partitions (even swap)

I tried resize too.

Think will download a live cd on the host and mount to the VM.

Thanks 4support as always.



Andy

On 4 Oct 2017 7:18 a.m., "Graham Markall via Lincoln" <
lincoln at mailman.lug.org.uk> wrote:

> Hi Andrew,
>
> What's the filesystem? And are you using LVM?
>
> Generally, you can resize a partition online if you're using LVM - you can
> also do it if you're not using LVM by editing the partition table, then
> running partprobe. Then, if you have an ext3 or ext4 file system, you can
> expand the filesystem to fill the available space in the partition whilst
> it's mounted using resize2fs.
>
> This stackexchange answer: https://askubuntu.com/a/119458 provides a
> reasonable description of how to do it.
>
>
> Graham.
>
> On 03/10/17 23:37, Andrew Walmsley via Lincoln wrote:
>
> hi everyone
>
> Is there a way of resizing a disk that is in use?  Running a debian server
> (no gui) with 1 drive that was set to 5gb, which is now running out of
> space.  yes i know its a stupid size (not my fault).  Increased the vm to
> see 10gb.
>
> diskpart is no good as i'm booting to the drive which is mounting.
>
> What is best way round? mount a live cd? add an extra drive?
>
> Help!
>
>
>
> andy
>
>
>
>
>
>
>
> --
> Lincoln mailing list
> Lincoln at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/lincoln
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/lincoln/attachments/20171004/9777c4ae/attachment-0001.html>


More information about the Lincoln mailing list