Forum › Forums › New users › New Users and General Questions › How to resize or add more space to a partion
- This topic has 6 replies, 4 voices, and was last updated Oct 20-1:43 pm by Xecure.
-
AuthorPosts
-
October 20, 2021 at 7:49 am #69251Member
eyekay234
Hello,
I installed the 64bit version of Antix on an oracle virtualbox machine and it was working fine till i encountered an error that says that i dont have space. Below are the specs of the machine i have installed:
inxi -Fxz
System:
Kernel: 4.9.0-264-antix.1-amd64-smp x86_64 bits: 64 compiler: gcc v: 8.3.0
Desktop: IceWM 2.8.0 Distro: antiX-19.4_x64-full Grup Yorum 20 May 2021
base: Debian GNU/Linux 10 (buster)
Machine:
Type: Virtualbox System: innotek product: VirtualBox v: 1.2
serial: <filter>
Mobo: Oracle model: VirtualBox v: 1.2 serial: <filter> BIOS: innotek
v: VirtualBox date: 12/01/2006
Battery:
ID-1: BAT0 charge: 49.0 Wh (98.0%) condition: 50.0/50.0 Wh (100.0%)
volts: 10.0 min: 10.0 model: innotek 1 status: Unknown
CPU:
Info: Dual Core model: Intel Core i7 M 640 bits: 64 type: MCP
arch: Nehalem rev: 5 cache: L2: 4 MiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 11172
Speed: 2793 MHz min/max: N/A Core speeds (MHz): 1: 2793 2: 2793
Graphics:
Device-1: VMware SVGA II Adapter driver: vmwgfx v: 2.12.0.0
bus-ID: 00:02.0
Display: x11 server: X.Org 1.20.4 driver: loaded: vmware
unloaded: fbdev,modesetting,vesa resolution: 1600×900~60Hz
OpenGL: renderer: llvmpipe (LLVM 7.0 128 bits) v: 3.3 Mesa 18.3.6
direct render: Yes
Audio:
Device-1: Intel 82801AA AC97 Audio vendor: Dell driver: snd_intel8x0
v: kernel bus-ID: 00:05.0
Sound Server-1: ALSA v: k4.9.0-264-antix.1-amd64-smp running: yes
Network:
Device-1: Intel 82540EM Gigabit Ethernet driver: e1000 v: 7.3.21-k8-NAPI
port: d020 bus-ID: 00:03.0
IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-2: Intel 82371AB/EB/MB PIIX4 ACPI type: network bridge
driver: piix4_smbus v: N/A port: d200 bus-ID: 00:07.0
IF-ID-1: br-89ea351c8397 state: down mac: <filter>
IF-ID-2: docker0 state: down mac: <filter>
Drives:
Local Storage: total: 23 GiB used: 10.53 GiB (45.8%)
ID-1: /dev/sda vendor: VirtualBox model: VBOX HARDDISK size: 23 GiB
Partition:
ID-1: / size: 8.7 GiB used: 8.68 GiB (99.8%) fs: ext4 dev: /dev/sda1
ID-2: /home size: 12.55 GiB used: 1.82 GiB (14.5%) fs: ext4 dev: /dev/sda3
Swap:
ID-1: swap-1 type: partition size: 1.25 GiB used: 26.9 MiB (2.1%)
dev: /dev/sda2
Sensors:
Message: No sensor data found. Is lm-sensors configured?
Info:
Processes: 181 Uptime: 1h 0m Memory: 1.91 GiB used: 1.63 GiB (85.2%)
Init: SysVinit runlevel: 5 Compilers: gcc: 8.3.0 Packages: 1786
Shell: Bash v: 5.0.3 inxi: 3.3.06I will like to shrink the home size and add the space to the other partition that is 99.8% full.
How do i go about doing this?
Thanks
October 20, 2021 at 9:48 am #69252MemberRobin
::Hello eyekay
Firstly: Make a full backup of your virtualbox-container, in which the antiX-machine is stored, before starting to manipulate partitions within it. Resizing of partitions is always a dangerous act, you may loose everything in it.
Second: The correct path to go depends on how you originally have created the virtual system: If you have created two drive containers, one containing /home and the other / then you’d need to resize the containers using virtualbox command line tools. But it looks as if you have a single virtual drive container only, containing both:
Local Storage: total: 23 GiB used: 10.53 GiB (45.8%) ID-1: /dev/sda vendor: VirtualBox model: VBOX HARDDISK size: 23 GiB Partition: ID-1: / size: 8.7 GiB used: 8.68 GiB (99.8%) fs: ext4 dev: /dev/sda1 ID-2: /home size: 12.55 GiB used: 1.82 GiB (14.5%) fs: ext4 dev: /dev/sda3So I would simply try to use gparted from antiX main menu to modify the partition sizes within the drive.
Normally there are two steps:
1.) Make /home smaller
2.) Use the free space to make / bigger.That should have been all.
But be warned: Don’t touch anything without having a full backup copy of your virtualbox drive container, so you can simply start over with a new attempt if the procedure fails.
Good luck!
RobinWindows is like a submarine. Open a window and serious problems will start.
October 20, 2021 at 9:57 am #69253Member
eyekay234
::Thanks very much for the response. the issue i have now is this, i havent seen a write up of how to go about doing this. Can you help out with this?
October 20, 2021 at 10:30 am #69254Forum Admin
anticapitalista
October 20, 2021 at 10:55 am #69255Member
eyekay234
::Thanks a lot but honestly, this isnt helpful to me as i am now more confused than ever. I will just delete the whole virtual machine and recreate as i wanted to simply know how to create free space from a partition and then add that free space to the root partition while your response just tells me a different thing entirely
- This reply was modified 1 year, 6 months ago by eyekay234.
October 20, 2021 at 12:49 pm #69258MemberRobin
::I admit, if you have never done this before, it might look a bit difficult, but it isn’t, actually. As I said before. Step by step now.
1.) Save the container with the antiX machine by copying it elsewhere. The container is usually named something.vdi, sits in the hidden .virtualbox/VDI folder and has some GB of size. Since it is a compressed file format, it will not have the full 23 GB probably.
2.) Start the virtual antiX machine.
3.) Open antiX Main menu, and chose from it in the submenu Programs → System the entry »gparted«. This will start the partition editor (see screenshot). Wait until everything is settled and read in. You will see the drive and all the partitions it contains. Possibly you’ll have to chose the correct drive from the pulldown menu in the upper right corner first.
4.) Select the partition you want to modify, so it is highlighted. In your case it is /home in the first step.
5.) From the gparted menu named »partitions« chose the entry »resize/move«. Enter the new (smaller) size into the size field and give your OK for it.
6.) From the gparted menu named »edit« chose »execute«.
Now gparted starts to resize your partition. Wait until it is done, it can take much time, so be patient.
In the end you will hopefully see the success message, and see some additional free space listed in gparted.Repeat this procedure for the other partition you want to have bigger. Maybe you have to move some of the partitions so the free space is usable for the partition you want to have bigger (If I recollect correctly, the space you want to add to a partition has to sit directly behind it in the list).
Later you may also do both in one execution, gparted will handle this for you like a script, but for the beginning just let it execute one step after the other, so you are sure everything worked as expected.
Remark: Maybe the names of menus are not what you will see, since I have to retranslate these expressions back to English, and I don’t know the original phrases used. So you have to guess what is the closest hit.
Once you have done it, it will not look difficult to you any longer.
Good luck.
RobinAttachments:
Windows is like a submarine. Open a window and serious problems will start.
October 20, 2021 at 1:43 pm #69264Member
Xecure
::I think the issue here is that the partitions are positioned as
/(root), swap, /homeSo you need to reduce “to the right” the /home partition size (meaning, giving free space “to the left”), make the swap partition bigger “to the right” (gaining the free-space from /home), reduce the swap partition in the same way as you did with /home (give free space “to the left”), and then you would be able to increase the / (root) partition size.
Best solution is start again and use 100% root size, so that you can keep experimenting on the Virtual Machine without running out of space on a specific partition.
antiX Live system enthusiast.
General Live Boot Parameters for antiX. -
AuthorPosts
- You must be logged in to reply to this topic.
