this post was submitted on 03 Aug 2023
21 points (95.7% liked)

Linux

45595 readers
656 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hello! I have a 215Gb fat32 partition on my external SSD, and a 100Gb unallocated space right next to it, and I's like to extend it to 315Gb. So, on KDE partition manager, I right-click on the fat32 partition, select "resize/move", and this is the windows that pops up:

as you can see, the textbox with the size is grayed out, so I can only move the partition, but not resize it. Why? the device is not mounted of course, and I can operate on other partitions without problems.

thanks in advance!

top 17 comments
sorted by: hot top controversial new old
[–] [email protected] 16 points 11 months ago (1 children)

You can only extend at the end. You would need to move it first.

[–] [email protected] 2 points 11 months ago (1 children)

but why isn't it giving me the possibility to extend it to the right by 4.01 Mb then?

[–] [email protected] 6 points 11 months ago

4.01Mb may be too small for a single block.

[–] [email protected] 6 points 11 months ago (1 children)

I don't have a FAT32 partition available at hand to test this out, but couldn't you first move the partition to the left, and then extend it? Because IIRC FAT in general whines if you change its starting point, so you need to actually tell it "move yourself, you fat32ass!".

Also note that, for most purposes, you'd be better off with NTFS than FAT32.

[–] [email protected] 2 points 11 months ago (2 children)

thanks for the reply! I'll try to move it then. But without moving it, shouldn't I be able to extend it right by 4.01Mb?

IIRC FAT in general whines if you change its starting point, so you need to actually tell it “move yourself, you fat32ass!”

XD

Also note that, for most purposes, you’d be better off with NTFS than FAT32.

Why this? isn't NTFS primary a windows partition type?

[–] [email protected] 7 points 11 months ago* (last edited 11 months ago) (2 children)

Why this? isn’t NTFS primary a windows partition type?

Because FAT32 has a 4GB file size limit, it's generally slower, and it's easier for hardware faults to corrupt files in a FAT32 filesystem.

Usually I wouldn't bother with FAT32 unless some device specifically requires it, but this is uncommon nowadays. (Be sure to check it out first though, just in case, before ever thinking about changing filesystems!) And nowadays, even if NTFS was originally a Windows partition type (and FAT32 a DOS/W9x one), Linux has excellent support for both, both writing and accessing.

But without moving it, shouldn’t I be able to extend it right by 4.01Mb?

It's probably aligning the round edge to the hardware. Odds are that you can turn this off (in gparted you can), check if there isn't something about this in "Advanced >>".

Either way, I wouldn't worry too much. It's just 4MB.

[–] [email protected] 4 points 11 months ago (1 children)
[–] [email protected] 3 points 11 months ago (1 children)

I don't know much about exFAT, besides the fact that it's encumbered by Microsoft patents.

[–] [email protected] 5 points 11 months ago (1 children)

I believe Microsoft published the spec and opened up the patents for exfat a while ago. So Linux has had a pretty good exfat driver from Samsung since Kernel 5.7.

[–] [email protected] 4 points 11 months ago

Thanks for the info - as I mentioned, I don't know much about it. And frankly I never saw a point on using it, I usually go with ext4 > NTFS > FAT32.

[–] [email protected] 4 points 11 months ago (1 children)

I have an mid 2000's car stereo with USB support that only supports fat32

[–] [email protected] 6 points 11 months ago

Cases like this are why I told OP to check it out first, just in case. Or why I said that devices requiring it are uncommon, not non-existent.

[–] [email protected] 6 points 11 months ago

isn’t NTFS primary a windows partition type?

So is FAT32. Only FAT32 is more primitive and its origins trace back to a time long before Windows when DOS was still the primary MS OS.

[–] [email protected] 4 points 11 months ago (1 children)

I don’t think you can extend a partition at the beginning, only the end of the partition. This is because the partition header and table is written at the beginning of the partition (i.e. the file system needs to know where to start reading so that it can traverse files and directories in the partition). To support resizing a partition at the beginning data would have to be moved to the new beginning of the partition, and exactly which data needs to be copied differs from file system to file system so it’s not something supported by a partition manager such as KDE partition manager. Therefore, the only way to do what you want is to backup the partition, delete it, and create a new partition at the beginning of the drive and the restore the contents of the partition.

Extending a partition at the end is much simpler, basically some header just gets updated and says this is the new end of the partition, and then a file system specific command lets the files system know that you now have all of this free space available for use.

[–] [email protected] 1 points 11 months ago (1 children)

I'm hoping not to be forced to format it... but why isn't it making me extend the partition at the end, using the 4.01Mb unallocated space?

[–] [email protected] 4 points 11 months ago (1 children)

Depending on the block size the filesystem may not be able to use that 4.01Mb of unallocated space. There’s always wasted space with any file system because they have to make a trade off between making use of the available space and fast access.

[–] [email protected] 2 points 11 months ago

thanks for the reply! I'll try to move it first then

load more comments
view more: next ›