[Lincoln LUG] disk size

Andrew Walmsley mraiwalmsley at gmail.com
Wed Oct 4 11:03:17 UTC 2017


hey tom, yes we increased disk size so just need to increase partitions.



On 4 October 2017 at 08:46, tom bruton via Lincoln <
lincoln at mailman.lug.org.uk> wrote:

> Is this a VM that you have increased the disk size on and now you are
> repartitioning the drives
>
> On 4 Oct 2017 08:02, "Graham Markall via Lincoln" <
> lincoln at mailman.lug.org.uk> wrote:
>
>> Hi Andrew,
>>
>> Why do you want to delete partitions? Is there a partition that
>> immediately follows the root filesystem partition? I presume you're not
>> attempting to delete the partition containing the root filesystem - what is
>> the partition table output from fdisk?
>>
>> I've never tried to delete partitions that are mounted, but if you need
>> to delete a (non-root) partition, can you unmount it first? (or in the case
>> of swap, use swapoff)?
>>
>> Graham.
>>
>> On 04/10/17 07:55, Andrew Walmsley wrote:
>>
>> 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
>>>
>>
>>
>> --
>> Lincoln mailing list
>> Lincoln at mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/lincoln
>>
>
> --
> 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/73f8c05d/attachment.html>


More information about the Lincoln mailing list