flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Did I enter protected mode right?Goto page Previous 1, 2 |
| Author |
|
|
revolution 20 Aug 2026, 22:08
bzt wrote: ... a UNIX clone like Linux usually needs multiple partitions (root, home, usr, var, etc.). |
|||
|
|
bzt 21 Aug 2026, 15:31
revolution wrote:
(ps. see tune2fs, a typical distro installer calls this automatically, it only asks you what are you going to use the partition for, the tweaking is taken care for you.) |
|||
|
|
bzt 23 Aug 2026, 13:00
revolution wrote: I wonder if that is conflating mount points with partitions. revolution wrote: I have many mount points, on a single partition revolution wrote: For example tmp is mounted as a ram disk, dev is mounted udev etc. Their path is special, see FHS, but it doesn't matter if their parent directory, the root is mounted from a partition or from an another ramdisk, etc. Likewise, tmp could be backed by an actual partition, a ramdisk device as well; and dev could be an ext4 partition for example with actual device files on it too (see mknod). The tmpfs and udev pseudo file systems are just much more efficient solutions, plus udev is dynamic (device files appear and disappear automatically as they needed). For an extreme, take a look at tinycore linux. Here the root is just a ramdisk, and every installed software is also a mount point (a loopback device mounted image file). So here all is handled by VFS alone, no disks and no partitions, the block device layer is simply unused (except for the loopback device). This works very fast at first, but after you install some packages, you'll see the VFS can't cope with many mount points and the whole system seriously slows down. This has nothing to do with any partitions or where the mount points located, just their number matters (to be precise, the "which mount point a certain path belongs to" lookup is O(n*m) in the Linux kernel). |
|||
|
|
revolution 23 Aug 2026, 13:15
I queried because the comment I quoted talked about tmp and dev in relation to a single partition being risky. But I didn't see how mounts points are related to partitioning. They are orthogonal.
Anyhow, it was also to imply that Linux doesn't need more than one partition, and an MBR can support Linux perfectly fine. Indeed this box I am using now uses an MBR with a single partition. Maybe the old MBR isn't so bad after all, it can still support contemporary OSes today. |
|||
|
|
bzt 23 Aug 2026, 19:01
revolution wrote: I queried because the comment I quoted talked about tmp and dev in relation to a single partition being risky. What I meant by risk, Linux needs to write files frequently to certain locations (notably under /var, to be precise /var/run, /var/cache, /var/log, etc.), which puts a stress on the device (most notably on the sectors where the superblock resides, but other meta data needs to be written too). If you have only one partition with only one file system, then all writes alter that one superblock. Should that single file system get corrupted, you're screwed. On the other hand, if root, /var, /home and /usr are separate, then you can tune them properly, write their meta data separately, meaning lower risk of corrupting everything all at once, and even if var goes havoc for example, your precious family photos on the home file system will be safe. And vice versa, if you accidentally fill up your /home, that won't affect /var, and for example your graphical session won't crash because it still can create secure cookie files or named pipes or whatever it needs to function. revolution wrote: But I didn't see how mounts points are related to partitioning. They are orthogonal. revolution wrote: Anyhow, it was also to imply that Linux doesn't need more than one partition, and an MBR can support Linux perfectly fine. revolution wrote: Indeed this box I am using now uses an MBR with a single partition. Also these days firmware mandate a separate /boot partition (UEFI ESP) too. While it's certainly possible, I definitely would not recommend using a FAT formatted ESP as your Linux root file system. Just because you can do it, doesn't mean you should. revolution wrote: Maybe the old MBR isn't so bad after all, it can still support contemporary OSes today. Good luck trying to install and boot a contemporary Win11 for example on old MBR scheme. Maybe possible, but definitely won't worth the effort. |
|||
|
|
Furs 25 Aug 2026, 21:46
bzt wrote: Huh, you like to live dangerously, don't you? See the risks above. Anyway, you're overcomplicating shit with your millions of partitions. Keep it simple. In my case, I have a complete immutable root filesystem stored in a squashfs, with an overlayfs on top, which I make either a tmpfs upperdir, or somewhere on disk if I want changes saved or to inspect later. So all root writes/updates are temporary, which is perfect for most daily usage and much safer since the root filesystem itself is immutable; one time I completely borked a core library so no apps could launch anymore, and guess what, I just restarted the PC and it was back to normal since the writes were temporary only. Your millions of partitions don't offer any real safety in comparison. /var/log writes or whatever also go to tmpfs so nothing is torturing my disk (and there's less than you think, can easily inspect what changed by checking the upperdir). You know what else is good about it? All it takes to backup my root is a copy of a single file (the squashfs) and it can be copied anywhere on any other filesystem, even a DVD. Backing up a partition on the other hand can be a pain in the ass. The only thing that requires more though is updating it—but that's good because you should be careful doing updates and only update what's necessary or what you know will be updated. Did an update completely bork my system? No worries just copy back the squashfs backup and restore is done. No complicated bullshit "backup and restore" apps. |
|||
|
|
revolution 26 Aug 2026, 00:56
bzt wrote:
bzt wrote: Nope, it can't. I judge that as a success for MBR. |
|||
|
|
bzt 05 Sep 2026, 14:15
Furs wrote: Anyway, you're overcomplicating shit with your millions of partitions. Furs wrote: Your millions of partitions don't offer any real safety in comparison. Furs wrote: /var/log writes or whatever also go to tmpfs Furs wrote: so nothing is torturing my disk (and there's less than you think, can easily inspect what changed by checking the upperdir). revolution wrote: A machine manufacturer removing support for MBR booting is not the fault of the OS or MBR. Blame is on the manufacturer for making their system less flexible. Furthermore some contemporary OSes have removed MBR booting support as well, GPT is mandatory for Windows since W11 24H2. Circumventing simply does not worth the effort, and firmware these days can't boot it anyway. revolution wrote: So I have multiple data points showing that the MBR is still relevant today. |
|||
|
| Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.