{"id":3922,"date":"2011-12-28T13:51:32","date_gmt":"2011-12-28T18:51:32","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=3922"},"modified":"2012-07-29T22:11:01","modified_gmt":"2012-07-30T03:11:01","slug":"virtualbox-add-new-hard-drive","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=3922","title":{"rendered":"VirtualBox: Add New Disk"},"content":{"rendered":"<span id=\"Add_a_New_Disk\"><h2>Add a New Disk<\/h2><\/span>\n<p><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/vbox_add_disk.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/vbox_add_disk.jpg\" alt=\"\" title=\"vbox_add_disk\" width=\"655\" height=\"490\" class=\"aligncenter size-full wp-image-3923\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/vbox_add_disk.jpg 655w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/vbox_add_disk-300x224.jpg 300w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/a><br \/>\n* Make sure VM is shutdown.<br \/>\n* From VirtualBox Manager, open VM settings (right click your VM and select Settings)<br \/>\n* Click <em>Storage <\/em>on the left hand side panel<br \/>\n* Right click <em>SATA Controller<\/em> and select <em>Add Hard Disk<\/em> icon (right hand side icon)<br \/>\n* Click <em>Create new disk<\/em><br \/>\n* Select <em>VMDK <\/em>and click <em>Next<\/em><br \/>\n* Select <em>Dynamically allocated<\/em> and click <em>Next<\/em><br \/>\n* Enter disk file location, e.g., <strong>C:\\VirtualBox VMs\\ODD_WLS_labs\\WLS_ODD_labs-disk3.vmdk<\/strong><br \/>\n* Select disk size, e.g. <strong>20 GB<\/strong><br \/>\n* Click <em>Next <\/em>then click <em>Create<\/em><br \/>\n* Click <em>OK<\/em><\/p>\n<span id=\"Partition_New_Disk\"><h2>Partition New Disk<\/h2><\/span>\n<p>* Start virtual box and log in as root.<\/p>\n<pre lang=\"bash\">\r\nls \/dev\/sd*\r\n\/dev\/sda  \/dev\/sda1  \/dev\/sda2  \/dev\/sdb  \/dev\/sdb1  \/dev\/sdc\r\n\r\n# Create partition\r\n\/sbin\/fdisk \/dev\/sdc\r\n######################\r\nCommand (m for help): n\r\nCommand action\r\n   e   extended\r\n   p   primary partition (1-4)\r\np\r\nPartition number (1-4): 1\r\nFirst cylinder (1-2610, default 1): \r\nUsing default value 1\r\nLast cylinder or +size or +sizeM or +sizeK (1-2610, default 2610): \r\nUsing default value 2610\r\n\r\nCommand (m for help): w\r\nThe partition table has been altered!\r\n\r\nCalling ioctl() to re-read partition table.\r\nSyncing disks.\r\n######################\r\n\r\n ls \/dev\/sd*\r\n\/dev\/sda  \/dev\/sda1  \/dev\/sda2  \/dev\/sdb  \/dev\/sdb1  \/dev\/sdc  \/dev\/sdc1\r\n\r\n# Create file system with label \/u01\r\n\/sbin\/mkfs.ext3 -L \/u01 \/dev\/sdc1\r\n<\/pre>\n<span id=\"Mount_New_Partition\"><h2>Mount New Partition<\/h2><\/span>\n<span id=\"Manual_Mount\"><h3>Manual Mount<\/h3><\/span>\n<pre lang=\"bash\">\r\nmkdir \/u01\r\nmount \/dev\/sdc1 \/u01\r\n<\/pre>\n<span id=\"Auto_Mount\"><h3>Auto Mount<\/h3><\/span>\n<p>* Append to \/etc\/fstab<\/p>\n<pre lang=\"bash\">\r\nLABEL=\/u01              \/u01                    ext3    defaults        0 0\r\n<\/pre>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* <a href=\"http:\/\/www.techotopia.com\/index.php\/Adding_a_New_Disk_Drive_to_an_RHEL_5_System\">Adding a New Disk Drive to an RHEL 5 System<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add a New Disk * Make sure VM is shutdown. * From VirtualBox Manager, open VM settings (right click your VM and select Settings) * Click Storage on the left hand side panel * Right click SATA Controller and select &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=3922\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[123],"tags":[],"class_list":["post-3922","post","type-post","status-publish","format-standard","hentry","category-virtualbox"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-11g","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3922"}],"version-history":[{"count":8,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3922\/revisions"}],"predecessor-version":[{"id":5537,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3922\/revisions\/5537"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}