[Swlug] Safely resize linux partitions?
Ben Tullis
tullis at hypothetical.co.uk
Fri Dec 14 23:34:57 UTC 2018
Hi there,
Good work. Just a couple of thoughts...
* You may want to install something like the 'swapspace' daemon. (http://pqxx.org/development/swapspace/) This will create temporary swap files for you beneath /var which can help to protect against oom-killer being invoked. You may not need swap most of the time, but it's handy to have it when you really need it.
* For next time, I would recommend using the LVM volume manager, even on a single device like this. LVM creates an abstraction layer between the physical storage devices and the file systems, so it becomes much easier to move and resize the volumes without having to modify partition tables. In this case you would have been able to allocate more space to the root volume without even rebooting into a live environment.
Anyway, well done for making it all work in the first place.
All the best,
Ben
On 14 December 2018 23:21:44 GMT+00:00, Mark Summerfield via Swlug <swlug at mailman.lug.org.uk> wrote:
>Knowing it worked for you encouraged me to try.
>
>I made a Debian Live USB. It wouldn't boot at first because Unetbootin
>didn't set its boot flag, but once I'd done that with gparted it booted
>fine. I then had to install gparted 'cos it isn't in the basic .iso but
>I did all the moving/resizing and rebooted and everything worked:-)
>
>On Fri, 14 Dec 2018 18:54:47 +0000
>Julian Hall via Swlug <swlug at mailman.lug.org.uk> wrote:
>> I've done it safely in gparted live, but as always step 0.. back
>> everything up first.
>>
>> Julian
>>
>> On 14/12/2018 18:38, Mark Summerfield via Swlug wrote:
>> > Hi,
>> >
>> > I hope someone can give me some clear and safe steps to follow
>please!
>> >
>> > I have this partition table:
>> >
>> > Filesystem Size Used Avail Use% Mounted on
>> > udev 7.8G 0 7.8G 0% /dev
>> > tmpfs 1.6G 2.9M 1.6G 1% /run
>> > /dev/nvme0n1p2 51G 45G 3.1G 94% /
>> > tmpfs 7.8G 21M 7.8G 1% /dev/shm
>> > tmpfs 5.0M 4.0K 5.0M 1% /run/lock
>> > tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
>> > /dev/nvme0n1p3 396G 214G 163G 57% /home
>> > /dev/nvme0n1p1 234M 6.1M 228M 3% /boot/efi
>> >
>> > It is one single SSD /dev/nvme0n1p1
>> >
>> > The order (left to right shown in gparted) is:
>> > [/dev/nvme0n1p1 /boot][/dev/nvme0n1p2 /][/dev/nvme0n1p3
>/home][swap]
>> >
>> > So, I need to move /home right by 24 GB (thus shrinking it by 24 GB
>and
>> > avoiding the swap -- which I don't think I ever use since I have 8
>GB
>> > RAM).
>> > Then, stretch / by 24 GB.
>> >
>> > Can I do this safely all in gparted live?
>> >
>> > Or am I best using a Live USB and running gparted from there?
>> >
>> > Or do I need to use console tools?
>> >
>> > Thanks!
>>
>
>
>
>--
>Mark Summerfield, Qtrac Ltd.
> ComparePDF - easy to use fast PDF comparison tool
> http://www.qtrac.eu/comparepdf.html
>
>--
>Swlug mailing list
>Swlug at mailman.lug.org.uk
>https://mailman.lug.org.uk/mailman/listinfo/swlug
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/swlug/attachments/20181214/e8f68c32/attachment.html>
More information about the Swlug
mailing list