Fri, 26 Jan 2024 13:19:48 -0500 Felix Miata <mrmazda@earthlink.net> :
Ben T. Fender composed on 2024-01-26 07:09 (UTC-0500):
But the thing is this: /dev/sda7 is another linux OS in this case and no-one told the freakin' system to *mount* it ANYWHERE! So why is it being mounted at all? Knowing where something is is one thing, sticking your dick into it without being told to is something else.
This has been bothering me too lately, mostly though with ESPs on multiboot systems, sticking the ESP in /efi if no entry for ESP exists in /etc/fstab. One way to deal with it generally is to create a noauto fstab entry for it.
You mean as a countermeasure I should drop lines in fstab for all other partitions specifying 'noauto' so as to prevent anythingh else from mounting them? Does systemd get clobbered by noauto? May be an idea but how would I interdict automount without mounting it somewhere? Never done one of these before :-)
Ben T. Fender composed on 2024-01-26 11:39 (UTC-0500):
# fdisk -l Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors Disk model: Samsung SSD 860 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 2CB71AC7-D2DB-4B81-A559-02802643D197
Device Start End Sectors Size Type /dev/sda1 2048 2099199 2097152 1G EFI System /dev/sda2 2099200 4196351 2097152 1G BIOS boot /dev/sda3 4196352 16779263 12582912 6G Linux swap /dev/sda4 16779264 226494463 209715200 100G Linux filesystem /dev/sda5 226494464 436209663 209715200 100G Linux filesystem /dev/sda6 436209664 645924863 209715200 100G Linux filesystem /dev/sda7 645924864 855640063 209715200 100G Linux filesystem /dev/sda8 855640064 1065355263 209715200 100G Linux filesystem /dev/sda9 1065355264 1275070463 209715200 100G Linux filesystem /dev/sda10 1275070464 1484785663 209715200 100G Linux filesystem /dev/sda11 1484785664 1694500863 209715200 100G Linux filesystem /dev/sda12 1694500864 1946159103 251658240 120G Linux filesystem
That's a lot of wasted disk space.
I've seen some around 60gb and I wanted them to be all exactly uniform so I can just dd any one of them to any of those 100gb partitions and not just on one disk.