In this video, Kevin Dankwardt discusses using fdisk to examine disks to make disk partions, to list disk partions, and to delete partions. Kevin Dankwardt lists partitioning tools fdisk and parted.
- [Instructor] Let's talk about Linux storage. When we're going to talk about storage we should talk about parts of storage, like partitions. Maybe the easiest way to find out about partitions on your Linux box is the cat/proc/partitions. That's getting information straight from the kernels and it's a proc file. We see here that the kernel is reporting for disc sda two partitions, sda1 and sda2 and it tells you the size. The major, minor numbers there are telling us which driver, eight SCSI, and the minor numbers, which disk and which controller.
We also see the DVD sr0, and we see a second disk sdb. Another way to get this information would be with a command like fdisk minus l, or if you go into fdisk, you give it the whole disk, so instead of sdb and a number, or sda and a number, we do the whole disk, so dev sdb, for example. Let us look at the second disk. We get our command prompt command, m for help, so type m if you need it, and we do a p to list the partitions, and there we see the different partitions, and the type and so forth.
With fdisk, we could also make new partitions. So if you have some space in your disk that's currently unused, then you have room to make partitions. Now fdisk or parted, or other tools, or possible fsdisk comparted are perhaps the two most popular. Another thing to keep in mind is you can give a type to a partition in certain tools. You can find your partition based on type. So let's look at creating some partitions, and deleting partitions, and changing to make a new partition that's bigger than it was before, and so forth.
To be effective with the Linux storage course, you need to be good with the command line, and familiar with Linus admin practices like using sudo and installing Linux, so you can give yourself a fresh system to use and modify.
- Partitioning storage
- Creating, mounting, and unmounting file systems
- Formatting file systems
- Making volumes with LVM
- Adding storage security
- Managing swap spaces
- Backing up and recovering Linux storage systems
- Working with networked file systems like NFS and SSHFS