How to add a hard disk in Ubuntu linux

Source: Internet
Author: User

How to add a Hard Disk in Ubuntu linux: 1. Disable the Ubuntu Virtual Machine in Vmware. In settings, add a new hardware device and select Hard Disk. (If you do not disable Ubuntu, you cannot add new hardware devices.) Click Next and select the hard disk type. You can select IDE or SCSI. Select SCSI here and click Next, select the location of the new virtual disk and name it Ubuntu2.vmdk. Next, set the hard disk size. I will set it to 2 GB and select Allocate all disk space now. If this option is not selected, the hard disk is relatively small, but with the read/write access to the hard disk, the virtual hard disk file will become larger and larger. After this option is selected, the virtual hard disk is fixed to the selected 2 GB space and will not increase. Click Finish to create a new hard disk. Www.2cto.com 2. Start Ubuntu and log on as the root user. Enter fdisk-l on the terminal. You can see Disk/dev/sda: 10.7 GB, 10737418240 bytes255 heads, 63 sectors/track, 1305 cylindersUnits = cylinders of 16065*512 = 8225280 bytesDisk identifier: 0x000af383Device Boot Start End Blocks Id System/dev/sda1 * 1 1244 9992398 + 83 LinuxDisk/dev/sdb: 5368 MB, 5368709120 bytes255 heads, 63 sectors/track, 652 CylindersUnits = cylinders of 16065*512 = 8225280 bytesDisk identifier: 0x00000000 You Can See That/dev/sdb is the newly added hard disk and you need to partition the new hard disk. Enter "fdisk/dev/sdb" in the terminal www.2cto.com and type "m" to view the help information. Enter "n" to add a new partition. Enter "p" to add a primary partition. Enter "l" to add a primary partition, select the primary Partition Number as 1, so that after the primary partition is created as sdb1, fdisk will let you select the start value and end value of the partition, press enter and enter: w, save all and exit to complete the partitioning of the new hard disk. 3. format the disk in the terminal input: mkfs-t ext3/dev/sdb1 format/dev/sdb1 format/dev/sdb1 www.2cto.com 4 mount the partition: manually mount: enter in the terminal: mkdir/media: Create a New Hard Disk mount point. Enter mount/dev/sdb1/media in the terminal. If you want to automatically mount the file/etc/fstab, add the following lines: /dev/sdb1/media ext3 defaults, 0 1

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.