Comment by Wowfunhappy

Comment by Wowfunhappy 3 days ago

5 replies

> Unix starts at root, which is how nature intended. It does not change characteristics based on media - you can mount a floppy at root if you want.

Why is the root of one of my drives `/` while the roots of my other drives are subdirectories of that first drive?

eichin 3 days ago

Thinking of it in terms of namespaces might help; it's not that the drive is special, it's that there's a view that starts from / and one disk filesystem happens to be dropped there and others are dropped elsewhere; with something like initramfs there aren't any drives on /, just a chunk of ram, though you usually pivot to a physical one later (many linux-based embedded systems don't because your one "drive" is an SD card that can't handle real use, so you just keep the "skeleton" in memory and drop various bits of eMMC or SD or whatever into the tree as-convenient.)

  • Wowfunhappy 3 days ago

    I do get it, I just don't think that the UNIX way is necessarily more natural than the Windows way.

Dylan16807 3 days ago

In multiple ways, / doesn't have to be one of your drives.

Hendrikto 2 days ago

Because you (or your distro) configured it like that. You don’t have to do it that way.

TimeBearingDown 3 days ago

Only the root of the root filesystem is /

The point is that any filesystem can be chosen as the OS’s root.

The root of all other filesystems - there could be multiple per drive - is where you tell the filesystem to be mounted, or in your automounter’s special directory, usually /run/media, where it makes a unique serial or device path.

* clarity