On Mon September 2 2024 13:50:37 dep via tde-users wrote:
First, I'm trying to remember how to do a fill
low-level check of the
drive, to knock out any bad sectors, etc. I don't think GParted does it.
Thirty years ago I used SpinRite but these days I just run badblocks
over the whole drive in read-write mode. The drive itself hides bad
sectors and replaces them with spare sectors.
Second, I'm trying to figure out how to best
partition the thing, to get it
to boot properly. I know there needs to be a dinky FAT32 partition
someplace. What I don't know is where it should be and what size it should
be. After that I'll have a non-home partition and a /home partition, as
well as /swap. Is there any new thought as to the ideal size of the swap
partition? Machine has 32 gigs of memory, and I do not keep a huge number
of applications open at once, but I will have a lot of drive space. Any
settled preference as to the location of the swap partition?
I use LVM wherever possible.
Not only can you resize logical volumes when your needs change, but if you
split the drive up into 8 or 10 physical volumes then when a new disk
error arises you can easily migrate the data out of the affected physical
volume and then use badblocks on just that physical volume to cause the
drive to hide and replace the bad sector, and then return the repaired
physical volume to your logical volume.
At the front of the drive before the LVM physical volumes/partitions my
laptop has a 260M EFI partition - it probably came that way with Windows
from Lenovo - and it's currently 12% full.
--Mike