I ran into an issue with my root partition being too small. My plan was to 
reduce the size of my home partition and increase the size of my root 
partition. Here is what I have done:

First, I rebooted in single user mode.
Then I did the following:
# mount / -rw -o remount 
# amount /home
umount: /home: not mounted.
# fsck -f /dev/mapper/debian --vg-home
fsck from util-linux 2.38.1
e2fsck 1.47.0 (5-Feb-2023)
Pass 1: Checking inodes, blocks, and sizes 
Inode 8803015 extent tree (at level 1) could be shorter. Optimize<y>? yes
Inode 8919578 extent tree (at level 1) could be shorter. Optimize<y>? yes
Inode 9328852 extent tree (at level 1) could be shorter. Optimize<y>? yes
Inode 11273442 extent tree (at level 1) could be shorter. Optimize<y>? yes
Pass 1E: Optimizing extent trees
Pass 2: Checking directory structure 
Pass 3: Checking directory connectivity 
Pass 4: Checking reference counts
Pass 5: Checking group summary information 

/dev/mapper/debian--vg-home: ***** FILE SYSTEM WAS MODIFIED *****
/dev/mapper/debian--vg-home: 329100/29302784 files (1.8% non-contiguous), 
12560416/117196800 blocks 
# fsck -f /dev/mapper/debian--vg-home 
fsck from util-linux 2.38.1
e2fsck 1.47.0 (5-Feb-2023)
Pass 1: Checking inodes, blocks, and sizes 
Pass 2: Checking directory structure 
Pass 3: Checking directory connectivity 
Pass 4: Checking reference counts 
Pass 5: Checking group summary information 
/dev/mapper/debian--vg-home: 329100/29302784 files (1.8% non-contiguous), 
12560416/117196800 blocks 
# resize2fs /dev/mapper/debian--vg-home 400G
resize2fs 1.47.0 (5-Feb-2023)
Resizing the filesystem on /dev/mapper/debian--vg-home to 104857600 (4k) blocks.
The filesystem on /dev/mapper/debian--vg-home is now 104857600 (4k) blocks long.
# lvreduce -L -39G /dev/mapper/debian--vg-home 
WARNING: Reducing active logical volume to 408.07 GiB.
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce debian--vg/home? [y/n]: y
Size of logical volume debian--vg/home changed from 447.07 GiB (114450 extents) 
to 408.07 GiB (104466 extents).
Logical volume debian--vg/home successfully resized.

This is where I am stalled. The prompt has not come back and I have been 
waiting about 10.5 hours. Is it normal for this to take this long? Should I 
just be patient? Or has something gone wrong? I am not sure what to do at this 
point.

Thanks in advance for your assistance.

Jonathan 

-- 
Jonathan Wiebe

Our passions are there to drive us to act, not to be the seasoning of our 
emotional stew.

Sent from Proton Mail Android

Attachment: publickey - jonathan.b.wiebe@proton.me - 0x835A0CE0.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to