Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Resizing a FAT partition?
Date: Thu, 30 Jul 2015 19:14:43
Message-Id: 20150730201410.1fed475b@digimed.co.uk
In Reply to: [gentoo-user] Resizing a FAT partition? by Meino.Cramer@gmx.de
1 On Thu, 30 Jul 2015 20:32:05 +0200, Meino.Cramer@×××.de wrote:
2
3 > Firstly I want to shrink the first partition and secondly it is a
4 > plain FAT32 partition not ext-something. I did not find a
5 > "resizefat32" or similiar.
6
7 You need fatresize, which doesn't appear to be in portage. The approach
8 when reducing a partition's size is to first reduce the size of the
9 filesystem, to slightly less than the final partition size for safety.
10 Then delete and recreate the partition, with the same starting point.
11 Finally resize the filesystem to fill the new partition.
12
13 > What tools do I need?
14
15 The easiest way is probably to use GParted, which does all the hard work
16 for you, just tell it the new size of the partition. It will also create
17 the second partition for you, as a bonus.
18
19 > (beside the way to backup the SDcard, reinitialize it, put 2
20 > partitions on it and copy back the stuff.)
21
22 Given that you should backup any important data before resizing any
23 filesystem, this may be the easiest method.
24
25
26 --
27 Neil Bothwick
28
29 Unsolicited advice is the junk mail of life

Replies

Subject Author
[gentoo-user] Re: Resizing a FAT partition? Grant Edwards <grant.b.edwards@×××××.com>