From the course: Linux: Storage Systems
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution: Formatting and mounting - Linux Tutorial
From the course: Linux: Storage Systems
Solution: Formatting and mounting
- [Instructor] Now let's look at the solutions. How to do the partitioning, formatting, and we're going to mount and look at the directories. And then we're going to look at NFS and autofs. So we want to make some partitions. So I'm going to list the disks I have on my system, fdisk -l, and I'll pipe that into grep Disk with a capital D and that would just list the disks. And I really have three regular disks, sda, sdb and sdc. A and b are 250 gig and c is one gig. So sdc is a little thumb drive, so that's what I'm going to be experimenting with. So I'm going to partition with fdisk and I'm going to say /dev/sdc. Be really careful here, right, a typo, if you accidentally said a, and that was your system disk, you'd be in a lot of trouble if you made some changes. All right, so, double, triple check, make sure you're working with the right one here. Or you're in a VM that, if you wipe it out, it's okay. All right, so there we go. Let's see if there's any partitions already. Yeah…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Basic commands for storage partitions2m 10s
-
(Locked)
Create, mount, and unmount file systems10m 21s
-
(Locked)
Use block device attributes7m 16s
-
(Locked)
File system types: ext4, Btrfs, and XFS7m 26s
-
(Locked)
Make file systems7m 24s
-
(Locked)
Mount file systems during boot11m 27s
-
(Locked)
Mount file systems on demand7m 1s
-
(Locked)
Challenge: Formatting and mounting2m 3s
-
(Locked)
Solution: Formatting and mounting8m 17s
-
-
-
-
-
-