Note: Add a new hard disk to Linux under VMware (Memo)

Source: Internet
Author: User

1. Add a new hard disk to the Linux system through Vmware

2. Restart the Linux system and enter the fdisk-l command to view the drive letter of the new hard disk (usually the prompt message "doesn't contain a valid partion table" is displayed). Assume It is/dev/sdb.

3. fdisk/dev/SDB

Note the differences between extended partitions and logical partitions. After creating extended partitions, you must create logical partitions on this basis, otherwise, the "invalid argument passed to ext3 library while setting up superblock" error will occur during the formatting operation in Step 4 (that is, extended is selected during the first n operation, then we need to re-run n on this basis and select logical)

4. mkfs. ext3/dev/sdb5

Format the corresponding partition to the desired file format

5. Automatic loading upon startup

Create a load point: mkdir/mnt/xxx

Modify the/etc/fstab Partition Table file and add

/Dev/sdb5/mnt/xxx ext3 defaults 0 0

Save and restart.

(Note: If the partition table is modified incorrectly, the system will not be able to enter the Linux desktop system, but the system will enter the CommandLine mode. We can fix and change the wrong fstab in CommandLine mode, however, the CommandLine mode will be read-only file system by default, which means that any modification operation is not allowed, but you can run the Mount/-O remount command, RW to remove this restriction)

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.