DISCOVER
×

Video transcription

Hi, my name is Dave Andrews, today I'm going to show you how to format a hard drive in Linux. Let's go to our Linux command line. And the very first thing we're going to do is do a change directory to the slash DEV folder. Let's do an LS and do SD star. This shows you the drives that are connected. I have SDA which is our first hard drive, the primary one, and it has several partitions. I then have SDB which is our second hard drive. I'm going to format SDB. To do so, let's run the CF disk command by saying pseudo CF disk, and then a slash S - DEV slash SDB. This opens up the partition drive - partition table for our second hard drive. Move an arrow over to select over. We want to create a primary partition. It fills the entire drive. After we've made that, let's just select write and say yes. That writes the partition table to our second disk. Once it's done writing, select quit. Now we're back to the command line. What we're going to do now is format that hard drive. So you want to do pseudo MKFS which is Make File System, space, and then SDB one, which is the first partition on hard drive B. That has just formatted our new hard drive. My name is Dave Andrews, and I've just showed you how to format a hard drive in Linux.