Am Mittwoch, 14. September 2011 schrieb Mihamina Rakotomandimby: > On 09/14/2011 01:15 AM, Bryan Irvine wrote: > > Which brings me to another fun question. What's your worst > > administration mistake and how did you recover? > > On ext4 resizing > > - I did not put a swap partition on my laptop, just / and /home > - I decided to shrink /home to put a swap at the end > - fdisk > -- del & new smaller partition for /home, with same beginning > -- new partition at the end for swap (label 82) > - reboot > - fsck failed, resize2fs failed, all failed > - I forgot to backup during the week end > - I lost important documents... > > There is a need of absolute "ext4 resizing tutorial"... :-P
Most important rule is the ordering: 1) On enlarging first enlarge the volume / partition, then grow the filesystem 2) On shrinking do it the *other* way around when you are interested in your data. So first shrink your filesystem and then shrink the volume / partition, but not below the new size of the filesystem. But I guess you know that by now ;) -- Martin 'Helios' Steigerwald - http://www.Lichtvoll.de GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201109140957.44874.mar...@lichtvoll.de