What to do when the Linux system has no extra disk space to hang on to???

Source: Internet
Author: User

Some students will certainly meet me this situation, their computer installed on the virtual machine total disk has been divided, so there is no way to continue to create a new partition.

Then we can use the free space below a partition to create a new partition and format it to mount the new system.

First step: Create a 1G size file

Step two: Create a ext3 file system for the partition with this file

3. Create a mount point for the directory and mount it via the Mount command

At this point, your own partition has been created and has been mounted properly.

Here, by the way, the DD command.

The DD command is also a copy of the file, but it differs from the CP command underlying principle.

CP is by taking the data stream from the underlying hard drive into the in-memory cache and then into the other address of the hard drive

The DD command eliminates the caching of data into memory. Similar will be deposited directly from one place on the hard drive to another place via the data stream.

How to use the DD command

Where if is the input filesystem refers to the data source

And of is the output filesystem refers to the whereabouts of the data

Of course, if the source is followed by a directory, then it will be copied directly from the first byte of the directory,

This principle can be used to copy the MBR.

Backup: DD IF=/DEV/SDA of=/mnt/usb/mbr.backup bs=512 count=1

Restore: DD if=/mnt/usb/mbr.backup OF=/DEV/SDA bs=512 count=1

What to do when the Linux system has no extra disk space to hang on to???

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.