The last time I touched Unix of any flavor it was Solaris, so please forgive me. I'm am so very rusty.
I decided to build a home lab and get back into things. I've built, destroyed, and rebuilt my Ubuntu server more times in the last week than I can count. But I have a new issue. It will seem simple to you, but it's scary to me.
I intend to add a log aggregator to this box, and it's an HP min. So, I got a 1TB external drive and plugged into it. I also made the mistake of rebuilding a time or two with that drive plugged in so I think it may have hosted the OS once, and that's where the partitions come from.
So, here is the problem. When I look at lsblk, it looks like this:
While my fstab looks like this:
Now, from what my old mind can figure out, root "/" is mounted to a virtual drive of some sort, which is part of the 500GB drive inside the machine. I am reading up on how that works, but after all this time, it's new to me. It was setup that way by the install, I do not know why.
The /boot, /boot.efi, and swap I don't have problems with. But I want to mount the new drive and it looks like it already has some partitions.
The old drive looks like: internal drive
And the new drive looks like this: external drive
On the internal/old drive the first 2 partitions are mounted, but the third is not.
On the external/new drive none of them are mounted.
So, hoping I gave you enough information, is it safe to mount partition 3 on the old/internal drive, I ask because that's where the "lvm" for the root "/" mount is and I don't wanna mess it up somehow.
Second, is it safe to remove all 3 partitions from the new/external drive and create a new one, then mount it?
And lastly, I assume the best way to do this is still fdisk?
I've spent a lot of time relearning all of this. I've rebuilt the box so many times the idea of doing it again scares the hell out of me. So, I'm being cautious and asking the experts before I do anything that could kill the machine. I have DNS, mail, pihole, and a few other things on it right now, and they are all working. I would not like to have to reinstall them, again.
Thanks so much for any help, and advice. I feel very much the noob again.
Dennis
code
using the {_} icon above the edit window. – user68186 Mar 02 '24 at 02:44