Isn't it supposed that Linux has only like 2 types of partitions, one for swap partitions an other for native partitions?
Now, the actual question is, if there's only one type of partition, how does the OS differentiates among all of the supported filesystems? How are they defined? Just like a "volume ID", the first partition 512-bytes sector that contains all of the filesystem dependent fields?
Linux Partitions/Filesystems
Re: Linux Partitions/Filesystems
Generally, There are a minimum of 2 partitions and a swap:~ wrote:Isn't it supposed that Linux has only like 2 types of partitions, one for swap partitions an other for native partitions?
/boot - An ext2 partition that contains GRUB, etc. (32MB) 0x82
/ - The root. Can be anything. (xMB) 0x83
swap - Swap space. (512MB) 0X03?
However, I think it might be possible to just have one ext2 partition with everything. (GRUB doesn't like ext3.) I have never tried that, however.
There is a partition for each file system. (As far as I know. I don't think you can have more than one file system on a partition.) Moreover, you could have a single partition for each part (ie. /home, /usr, /lib, etc.) as long as you mount it with fstab.~ wrote:Now, the actual question is, if there's only one type of partition, how does the OS differentiates among all of the supported filesystems? How are they defined? Just like a "volume ID", the first partition 512-bytes sector that contains all of the filesystem dependent fields?
C8H10N4O2 | #446691 | Trust the nodes.