Appending disk space to Ubuntu

Source: Internet
Author: User
My laptop is equipped with dual systems, WIN7 and Ubuntu11.04. Previously, Ubuntu only gave 25 GB. Now it is basically used up. When new software is installed or the system is updated, it is often prompted that the disk space is insufficient and the system is thoroughly cleaned up, for more information about how to clean up Ubuntu systems, see http://www.linuxidc.com/linux/2012-10/72813.htm. So I thought if I could draw a picture from Windows.

My laptop is equipped with dual systems, WIN7 and Ubuntu 11.04.

Previously, Ubuntu only gave 25 GB. Now it is basically used up. When new software is installed or the system is updated, it is often prompted that the disk space is insufficient and the system is thoroughly cleaned up, refer to my blog post "Ubuntu system more comprehensive cleaning" see http://www.linuxidc.com/Linux/2012-10/72813.htm, there is still no fundamental solution to the problem. So I figured out if I could add some space from Windows to Ubuntu, but Google did.

The idea is as follows: Create a partition from Windows, mount the new partition to/home/open, and restart. I tried it and it was easy to use.

1 df command to view the current disk usage

2. Back up the disk used in Windows 7, and format it for ubuntu.

3 mkfs Command Format Disk

My disk is/dev/sda8 in ubuntu and formatted as the linux ext4 file system, that is, the disk space device to be converted from win7 to ubuntu.

4. edit/etc/fstab to automatically mount the new device.

Mount/dev/sda8 to/home/open and add:

[Cpp] view plaincopyprint?

/Dev/sda8/home/open ext4 defaults 0 1

/Dev/sda8/home/open ext4 defaults 0 1

OK. You can restart it. It will be automatically mounted to/home/open.

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.