From de55c562099fb0fc03de6c5c21f1328aae80fa8f Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Fri, 15 May 2020 21:56:17 -0400 Subject: [PATCH] Updated to add partition labels --- content/blog/quickstoragesetup.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/blog/quickstoragesetup.md b/content/blog/quickstoragesetup.md index 0f9a0a6..06347d1 100644 --- a/content/blog/quickstoragesetup.md +++ b/content/blog/quickstoragesetup.md @@ -36,7 +36,7 @@ sudo parted -a opt /dev/sdX mkpart primary ext4 0% 100% Now we can let `ext4` format the drive, ```bash -sudo mkfs.ext4 /dev/sdX +sudo mkfs.ext4 /dev/sdX1 ``` I like to set up my mount points to be `/mnt/data/N` where N is the number of the drive I'm working with. @@ -48,13 +48,13 @@ sudo mkdir /mnt/data/N To temporarily mount it, just to make sure it works you can run ```bash -sudo mount /dev/sdX /mnt/data/N +sudo mount /dev/sdX1 /mnt/data/N ``` You can unmount it with `umount` ```bash -sudo umount /dev/sdX +sudo umount /dev/sdX1 ``` When you're ready to make it permanent, we'll have to edit the `/etc/fstab` file. We should note the drive by its UUID so that it's not dependent on the slot the hard drive sits in. You can find it by running this command