4 ms·
Haha, try and expand a partition on Linux using command line. It's nearly impossible if you're not a sysadmin [1]. You'll google it and find 10 different ways
by aetherspawn 2y ago
Haha, try and expand a partition on Linux using command line. It's nearly impossible if you're not a sysadmin [1].
You'll google it and find 10 different ways for 10 different distros, and most of them will require doing byte math (but you're not sure if KB is really kB and 1000 or 1024). If you get it wrong your computer blows up (probably).
And if you think resizing was hard, try to defrag and shrink one!
[1] For example if you install RHEL using wizard it will create a bunch of virtual logical areas that each have partitions allocated that each have disks allocated and if you want to resize them later you have to resize the onion all in the correct order.
- bayindirh 2y ago...or you'll just install gparted and do it with a couple of clicks. It'll require root, yes. But in Windows you're already "root", so it doesn't count. No, "permission elevation prompts" doesn't count. You're still defacto Administrator on that system. BTW, none of the CLI tools allow you to overlap partitions or shrink below used percent. So you can't blow your data up unless you try really hard (like fdisk delete/recreate tricks).
- aetherspawn 2y agoI think command-line is the key word here. It is not so hard on Ubuntu in the GUI. But for example if you installed Red Hat CLI-only version, it's probably so hard you'll give up and just ask Red Hat support to look at your logs and send you the commands to run.
- bayindirh 2y agoThe thing is, if you're a desktop user, you generally use gparted. If you're not using a GUI, you're already a sysadmin in most cases. Systems like Raspberry Pi make these things easier, too. They both have docs, or you can do on your system with gparted already. Also, as I aforementioned, none of the CLI tools eat your data unless you force them to. Lastly, all the tools accept KB, MB, etc. as prefixes/suffixes. So, I rarely make back of the napkin math for these things, if ever. > But for example if you installed Red Hat CLI-only version, it's probably so hard you'll give up and just ask Red Hat support to look at your logs and send you the commands to run. Actually it's not hard. You only need to know that you have your filesystems in a LVM (Logical Volume Manager) container. Unless you're not changing the size of the LVM volume, it's the same thing, only the device name changes. If you're adding disks, you need to first increase the LVM size to span the other disk, and add or resize your partiton there. It's not intentionally hard, you meet with a layer you generally don't see everyday. Even if you boot a LVM containing system from a live distro, say GRML, you only need to "activate" the LVM container with a single LVM command, and it's the same thing after that point. It's a matter of thinking in layers.