What is the purpose of file system
- File system helps to organize space in hard disk
- hard disk is organized by addresses
Think of file system as a closet. Each slot in the closet is used to store jackets, socks, t-shirts etc. this makes the closet clean and not cluttered. Same is the purpose of the file system.
Disk and Partitions:
Partition are different blocks in a disk. We use partition table to map where a partition starts and ends. Two main formats: MBR(Master boot record) and GPT(GeoID partition table).
MBR was written with 32-bit. so partition can begin and end with 32-bit number. which means there are max of 32-bit addresses(4 billion addresses).
we can edit partition table using “fdisk” command.