Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2681

General Questions • Re: Trying to resize /boot partition but stuck

$
0
0
Thanks for the reply.
2) Can this be done with gparted or partitionmanager without losing data?
A good backup is strongly recommended. A software, hardware or power failure during partitioning can trash your drive. Can you do it without data loss? Probably, but any data loss will most likely be catastrophic.
Before beginning I made two backups, one my standard tar-based backup and a second using fsarchiver. The second way is new to me; I encountered it during my research for this. I will probably revisit it later because it has the very interesting (to me) property of being able to back up a lvm snapshot, which is something else I learned about during research. The tar archive is more useful day-to-day because I can dig individual files out of it rather than restore the whole thing when someone who shall remain anonymous deletes the wrong file. The fsarchiver backup looks like it would only be useful in the case of a complete disk failure or corruption. I did not mention backup because it wasn't directly related to the question at hand.
3) Is deactivating the LVM partition in gparted the correct way to begin that process?
Yes, you need to remove the lock before repartitioning.
I hunted through the gparted code and found for deactivation it is executing:

Code:

lvm vgchange -a n {volgroup}
At this point I am still not clear on what deactivation does in lvm. But I conjecture that even though the disk is not mounted in a traditional sense when booting into a live cd (it does not show in the list that "mount" generates), the OS somehow still scans disks and "mounts" lvm partitions it finds on them. Again purely conjecture. Anyway I will now go forward with deactivation and attempt to move the lvm partition so the unallocated space is adjacent to the /boot partition.

Statistics: Posted by jrv — 2024-05-17 00:24



Viewing all articles
Browse latest Browse all 2681

Trending Articles