Assignment 01 Partition Linux OS and Config
Assignment 01: Partition Linux OS and Config
Azure VM
Choose Ubuntu version 16.04 LTS
Step 1:
- Name
- [NETID]01 i.e. jkolter01
- Authentication
- SSH key pair; paste public key in this window
- https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html for Windows PuTTY
- Resource Group:
- Use existing
- Big_Data_Technologies
- Use existing
- Location
- West US 2
Step 2:
- VM Size B4MS
Step 3:
- Defaults for most settings
- Enable auto-shutdown with a time that makes sense for you
Step 4:
- Create and wait
Data Disk
Add data disk
-
Name
- [NETID]01_data1
-
Resource Group
- Use existing: Big_Data_Technologies
-
Account type
- SSD
-
Source Type
- None
-
Size
- 64GB
Make sure to "SAVE" after creating!!!
Parition/Format/Mount Data Disk
Create partition table
- sudo fdisk /dev/sdc
- 'g' to create new label
-
'n' to create new partition table
- use enter for defaults
- partition number 1
- first and last sector
- 'w' to write partition table to disk
Format Disk
- sudo mkfs -t xfs /dev/sdc1
Mount Disk
- sudo mkdir /data
- sudo mount /dev/sdc1 /data
Add to fstab to persist reboots
- sudo blkid /dev/sdc1
- edit /etc/fstab
- add a line that looks somethign like the following, with the UUID from your blkid output substituted in
- UUID=b8feed20-d520-4130-8cf3-d0633f63a2d8 /data xfs defaults,nofail 1 2
Exit SSH session and shut down VM when done!
Comments
Post a Comment