Changes

Jump to: navigation, search

OPS235 Lab 5 - CentOS7 - SSD

477 bytes added, 06:51, 15 June 2016
no edit summary
# Check to see if there is any remaining space on your existing hard disk. Can you see any?
# You can create a partition by using the fdisk command. Issue the following command: <br><b><code><span style="color:#3366CC;font-size:1.2em;">fdisk /dev/vda</span></code></b> (or fdisk /dev/sda if there is no /dev/vda).
#At the '''fdisk''' prompt issue the command: '''<b><code><span style="color:#3366CC;font-size:1.2em;">p'''</span></code></b>. What does this do?#Now issue the commands '''<b><code><span style="color:#3366CC;font-size:1.2em;">n''' </span></code></b> (new partition), '''<b><code><span style="color:#3366CC;font-size:1.2em;">p</span></code></b>p''' (primary partition), '''<b><code><span style="color:#3366CC;font-size:1.2em;">3''' </span></code></b> (i.e. next available partition number). When prompted for initial block, '''press enter to accept the default beginning block size''', and '''type: <b><code><span style="color:#3366CC;font-size:1.2em;">+2G''' </span></code></b> at ending block (create 2GB for partition) and press ''''press enter'''. #At the fdisk prompt, issue the command '''<b><code><span style="color:#3366CC;font-size:1.2em;">p''' </span></code></b> to review the partition information, then type '''issue the command <b><code><span style="color:#3366CC;font-size:1.2em;">w''' </span></code></b> to save partition table and exit (ignore WARNING message).
#You <u>'''must'''</u> restart your centos2 VM to allow changes to take effect.
#Open a terminal as root, and format your newly-created partition by issuing the command: <b><code><span style="color:#3366CC;font-size:1.2em;">mkfs -t ext4 /dev/vda3</span></code></b><br>(or ''mkfs -t ext4 /dev/sda3'')
13,420
edits

Navigation menu