Open main menu

CDOT Wiki β

Changes

OPS235 Lab 5 - CentOS7

68 bytes added, 08:42, 24 June 2015
no edit summary
<li>In the terminal as root, issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">fdisk /dev/vda</span></code></b><br><br>Remember that we are using a Virtual Machine, so the hard disk appears as '''/dev/vda''' instead of /dev/sda.<br><br></li>
<li>At the fdisk prompt issue the command: '''p'''. What does this do?</li>
<li>Now issue the commands n (new partition), '''p ''' (primary partition), '''3 ''' (i.e. next available partition number). When prompted for initial block, '''press enter to accept the defaultbeginning block size''', and '''type : +2G ''' at ending block (create 2GB for partition)and '''press enter'''. </li>
<li>At the fdisk prompt, issue the command '''p''' to review the partition information, then type '''w''' to save partition table and exit (ignore WARNING message).</li>
<li>You <u>'''must'''</u> restart your centos2 VM to allow changes to take effect</li>
13,420
edits