The Unix Philosophy asks only if what the user requests CAN be done, not if it is smart or stupid. Sometimes there are times when doing something that is usually stupid is pure genius. That's my story, and I'm sticking with it.
Sometimes we need to wipe an entire drive or partition. The OS shouldn't guess, so most CLI tools will require a "--force" option to be used. Just a few days ago, I wanted to clone an entire HDD. The command I used was
Code:
sudo ddrescue /dev/sda /dev/sdf /tmp/8tb.log
That failed. The error told me to add "--force" if I really wanted to wipe everything on sdf, which I did.
Code:
sudo ddrescue --force /dev/sda /dev/sdf /tmp/8tb.log
If ran overnight and didn't finish. sda is a disk that is failing, so I didn't think it would finish.
If I got the order of the command arguments wrong, it would be a really bad day. I would have done something stupid. Not the first time ... er ... today.
But I want the computer to do what I ask, not hold my hand as I try to cross the street.
Inside the installer, doing disk setup, I've been frustrated more than a few times, when I'd setup all the storage I wanted and the installer refused to continue because I hadn't created a BIOS partition that wasn't going to be used anyway. In the end, I didn't have a choice but to create a 1MB partition that has never been used. It was required to get the installer to do anything farther.
Code:
nvme0n1 disk 931.5G
├─nvme0n1p1 part ext2 1M
├─nvme0n1p2 part vfat 50M 43.9M 12% /boot/efi
├─nvme0n1p3 part ext4 700M 339.8M 42% /boot
└─nvme0n1p4 part LVM2_member 930.8G
├─vg01-swap01 lvm swap 4.1G [SWAP]
├─vg01-root01 lvm ext4 35G 24.8G 22% /
├─vg01-var01 lvm ext4 20G 14G 23% /var
├─vg01-home01 lvm ext4 20G 10.1G 44% home01 /home
...
nvme0n1p1 is useless. Completely unnecessary.
Bookmarks