Skip to content

26 comments

GParted Live, if you want minimum effort.

21 points

But i won't use GUI for that .-.

-22 points

If you don't want to use a GUI for ideological reasons, you can do the same thing with parted and tools like resize2fs.

17 points

Damn, are people really downvoting someone on a Linux sub for wanting/needing a specific UX?

I could easily see this being me if I needed to SSH into my server machine without video output to do the same thing.

11 points
unknown author

This really depends what needs to be done. If you're just extending it to the right, it's pretty simple. Resize the partition, and run resize2fs to resize the ext4 partition. If you need to move the partition though (ie, to use space to the left of the partition), then you need to rewrite the data, at which point you're significantly increasing the risk of losing data, as any interruption will leave you in a corrupt state. If you need to shrink it, the fs needs to be shrunk first, then the partition.

At all times, when messing with partitions, backup your data. There is no 100% guarantee there won't be any data loss, even for simple changes, and people should know by now that there's no excuse for not having a backup if they really can't afford to lose data, especially when they start messing with the system on this level.

For tools to resize it, look into gparted for a nice GUI solution that does everything, from the partition to the filesystem resize. Or if you insist on a CLI tool (ie, if it's a server), you can use something like cfdisk, which is like an easier fdisk. You can also use parted, or something like fdisk itself.

7 points

Just use Emacs, it can do everything except edit text

Jokes apart, cfdisk works great for me. It's command line but super easy to use, and is bundled in with the archiso. Just be sure that if you are expanding your partition size, it won't automatically expand your filesystem size, use resize2fs for that

2 points

You can extend a standard partition if it is at the end of the table. Otherwise you can't.

2 points

If you're worried about data loss, it's probably best to let GParted do this for you. Plenty of live images have it installed.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.