Dual system adds partition to Ubuntu

Source: Internet
Author: User

Http://www.th7.cn/system/lin/201506/106338.shtml

Http://www.linuxidc.com/Linux/2012-06/61983.htm

Because I installed the Windows,ubuntu dual system, so at that time to give Ubuntu space is relatively small, and now want to compile Android Rom under Ubuntu, but the AOSP code is a few grams, space is not enough, so ready to add disk space to Ubuntu.

    1. First enter the Windows system, use Disk Management under Windows-compress the volume to compress an unassigned partition, and then create a new simple volume, formatted in NFTS format.
    2. Reboot into Ubuntu system. You may not be able to enter the system at this point, because the partition where grub is booting has changed. Workaround See: http://www.linuxidc.com/Linux/2012-06/61983.htm
    3. Under Ubuntu, use the disk utility to find the partition that is just under Windows, remembering its device name: for example,/dev/sda8.
    4. Using terminal, input: Mkfs-t ext4/dev/sda8
      Format the partition you just had in the EXT4 format.
    5. Edit the/etc/fstab to automatically mount the newly-entered device, and append a line
      /dev/sda8/home/open EXT4 Defaults 0 1
    6. Reboot, it will automatically mount under/home/open.
    7. A few days ago I was splitting a partition in my laptop, and the following error occurred when restarting:

      Because my computer is Ubuntu, booting with grub boot, and grub is placed under Ubuntu/boot/grub. Because I separated a district, resulting in grub can not find the original Ubuntu partition, naturally can not find/boot/grub, so solve this problem is very simple, as long as the grub and/boot/grub corresponding on it.

      The steps are as follows:

      1.

      Enter LS as follows:

      Will list all the partitions currently available on the disk, depending on the partition order on the original disk, it is possible to determine which of these are the Ubuntu partition (which is not OK, one trial)

      2.

      Enter the set as follows:

      Will list the current grub settings, just because these settings are wrong, so that grub cannot find the Ubuntu partition, since grub cannot be found, then we have to specify it manually.

      3.

      Take (HD0,MSDOS1) as an example, enter:

      Set ROOT=HD0,MSDOS1

      Set prefix= (HD0,MSDOS1)/boot/grub

      As shown below:

      Note: The format may vary depending on the version of Grub, as long as it matches the format listed in the previous set.

      4.

      Then enter set and find that we've set it up:

Dual system adds partition to Ubuntu

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.