UbuntuServer: attach a hard disk in Ubuntu as follows: 1. disable the Ubuntu virtual machine in Vmware. in settings, add a new hardware device and select HardDisk. (If you do not disable the Ubuntu system, you cannot add new hardware devices.) click next... ubuntu Server: 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. 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 here we can see that/dev/sdb is the newly added hard disk, and you need to partition the new hard disk. Enter fdisk/dev/sdb on the terminal and type: m. The help information is displayed. 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. input mkfs-t ext3/dev/sdb1 in the terminal to format/dev/sdb1 in the ext3 format. 4. mount the partition: manually mount the disk. enter: mkdir/media: create a new mount point for the hard disk. on the terminal, type mount/dev/sdb1/media. if you want to enable automatic mount and modify the/etc/fstab file, add the following lines: /dev/sdb1/media ext3 defaults, 0 1
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.