How I Messed Up Linux

today again, I wasted my time.I did nothing but in evening, browsing the internet on my PC. while doing that i got a notification that my root partition is has 4096 bytes free from disk analyzer.

so i analyze the partition using

sudo du -sh /

then find out that /usr partition is taking more space so i tried to resize but no free space on the disk so i tried mount another partition in another drive as /usr to do that i created and formatted the new partition and copied the /usr to that partition.

I mounted that partition and generate the fstab and main point is I’m doing this on arch live cd.

rebooted into the operation system and without any surprise it doesn’t boot i don’t why but it says, /sbin/init is not there. so I rebooted back into arch live cd and checked everything is there and symbolic linked correctly too but It won’t boot.

I do every troubleshooting things i doesn’t help the system booting problem.

as i search internet i found that the /usr partition that i newly created may not mounted during boot and that’s causing the problem so revert the change i made but the problem persists.

“Why man why? I revert the changes I made but that problem isn’t gone yet 🤯”

Damn the installation, I’m gonna wipe the full SSD and install everything fresh.

with the frustration, going to start over again. all the configuration i made is gone now.

technically is not i can take backup my config but the problem i forgot what i did change to config is better start from scratch than looking the past.

from this I learn, log everything i change, install, and modified and maintained with git so i can share with you guys or revert back the know good configs if i ever made a mistake.

I want to reinstall it now but the time is already 23:54 so I’m writing blog instead of doing it. it not that tough but i takes time and i need some good rest today after messed up the installation.

Moral of the story is: copy pasting is never gonna works as expected, you need to work on it

by the way, The commands that ruined my system was

In Arch Live Installation media

sudo mount /dev/nvme0n1p6 /root_part --mkdir ## My Root Partition

sudo mount /dev/nvme1n2p3 /mnt/new_usr ## The newly created partition

cp -a /root_part/usr /mnt/new_usr ## copying the file/folders to new partition

rm -rf /root_part/usr/* ## removing the everything from the /usr 

sudo mount /dev/nvme1n2p3 /root_part/usr ## Finally mount new usr partition on /usr

genfstab -U /root_part > /root_part/etc/fstab ## Generate fstab to auto mount

so bye from byte 😫.