I messed up my system and need to wipe my system (see here: Can't use sudo anymore since running chmod: sudo: /etc/sudo.conf is world writable)
Fortunately even though I am a beginner, I have one drive for the system, and one 12TB drive for my data.
These are the specs:
- Operating System: Ubuntu Server 24.04
- Architecture: x64
- CPU: Intel® Core™ i5-3450 CPU
- RAM: 8GB
- Storage: SSD > 128GB (system drive) || HDD > 12TB (used as nasdrive)
I use this as my Home-Server with plenty of self-hosted applications. If the data of the 12TB drive would be lost I would lose it with all the data that needs to be recovered. I mounted the 12TB drive to ~/mnt/nasdrive/. From my understanding, I could theoretically unmount the 12TB drive, and keep the data that is on it right now, wipe the system, install the fresh system, mount the 12TB drive again and go on as if nothing ever happened correct?
I could use sudo umount <device|directory> so basically sudo umount /dev/sdc1 /mnt/nasdrive
Problem is I messed up my system and can't use sudo anymore, so I'm not sure if I can even unmount the drive. Is there any other solution than to use sudo unmount that doesn't require sudo or to just manually remove the drive from the system and hoping the data is not lost?