Hey guys, welcome back to the channel and in this video, we are going to deal with disks and filesystem. But before that, please press the subscribe button so that I can continue to make these videos for you.
At the end of this lecture, you would know
1) how to partition disks
2) how to create and maintain a file system
3) and how to work with swap
In Linux, the disk is represented by the block devices which have names like /dev/sda /dev/sdb
Partition, on the other hand, are sub-division of the disk, something like /dev/sda1
Partitions are defined in a small area on disk called partition table
to view the partition table, we are going to use a utility provided by Linux called fdisk
so fdisk -l , you either give the name of partition or it will take whatever is in there /proc/partition
Anyway, next comes the filesystem....it is the database of all the files and directory with which you interact with every day.
So if you want to interact with a file, you must first get the partition information from the partition table and then search for the file in the filesystem database.
So partition tables are of different types these days like
MBR and gpt
MBR is master boot record - this what we will deal with
gpt - globally unique identifier partition table
Partitioning tool which we will use, I have already told u , fdisk, fdisk does not support gpt so there is another version of fdisk called gdisk to do that
partitions are of 2 types, primary and extended
you can have 4 primary partitions in mbr, if you need more than 4, then you need to create an extended partition and then create logical partition under it. this is a problem with mbr, and this is because
Then show how to create a partition on the disk
Filesystem - although traditionally filesystem was implemented in kernel, innovation asked for the development of a userspace implementation and thus FUSE or filesystem in userspace was born. Linux does this by using a thing called vfs or virtual filesystem.VFS makes sure that all of the filesystem implementations support a standard interface so that userspace applications can access files and directories.
There are multiple types of filesystem
ext3, ext4,zfs,xfs, each have their own features and this video will take more than an hour or so.
Now let's see how we can create a filesystem on a partition
Now that we have the filesystem ready, let's mount it to use
you can use the mount command to check the current mounts / awshandson https://amzn.to/2A9DVv1
https://amzn.to/3cEGVNf
Смотрите видео Disks and Filesystem in Linux онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Infinite Linux 12 Май 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,319 раз и оно понравилось 32 людям.