External Loading of Linux (Fedora10) with insufficient space under virtual machines

Source: Internet
Author: User
1. First shut down the Virtual Machine (if the system is not disabled, new hardware devices cannot be added). In settings, add new hardware devices and select HardDisk. Click Next and select the hard disk type. You can select IDE or SCSI. Select SCSI here. Next, select the location of the new virtual hard disk. The default value is displayed. Next, set the hard disk size, I set it to 2 GB here and select Allocatealldiskspacenow. If this option is not selected, the hard disk is relatively small at the beginning, but with the hard disk read/write access, the Virtual Hardware

1. First shut down the Virtual Machine (if the system is not shut down, new hardware devices cannot be added). In settings, add new hardware devices and select Hard Disk. Click Next and select the hard disk type. You can select IDE or SCSI. Select SCSI here. Next, select the location of the new virtual hard disk. The default value is displayed. Next, set the hard disk size, I set it to 2 GB and select Allocate all disk space now. If this option is not selected, the hard disk is relatively small at the beginning. But as the hard disk reads and writes access, the virtual hard disk files 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. If the hard disk to be added is large, please wait for a while.

2. Start linux on the VM and log on as the root user.

Enter fdisk-l on the terminal.

----------------------------------------------------------------------------

Disk/dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Disk identifier: 0x000af383
Device Boot Start End Blocks Id System
/Dev/sda1*1 1244 9992398 + 83 Linux
Disk/dev/sdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Disk 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

Enter m to view the help information,

Type: n to add a new partition.

Type: p and select add primary partition.

Type: l and select the primary Partition Number as 1. In this way, the primary partition created is sdb1.

Then, fdisk will let you select the start value and end value of the partition and press Enter.

Finally, type w to save all and exit to complete the partition of the new hard disk.

3. format the disk.

Enter mkfs-t ext3/dev/sdb1 on the terminal

Format/dev/sdb1 in ext3 format

Enter q to exit

4. Mount the partition:

Manual mounting:

Enter mkdir/media on the terminal to create a mount point for the new hard disk.

On the terminal, type mount/dev/sdb1/media.

If you want to enable automatic mounting, you also need to modify/etc/profile and add mount/dev/sdb1/disk2 at the end to save and restart the computer.

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.