Friday, May 3, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 8947  / 2 Years ago, tue, march 22, 2022, 12:45:56

I started installing Ubuntu by watching a video tutorial about doing a disk partition installation, for that, inside Windows' 7 own disk partitioning tool. After a defrag I cut 100GB that I pretended to use on my Ubuntu installation for a little try out, now, while installing, I never really chose where I wanted Ubuntu to be installed, so I guess it just made a partition by itself of the minimum that the installation tells you it needs.



How can I now give the other 92 GB I had left apart only for that task?



Here's what my partitions look like now.



screenshot of Windows Disk Management



Here's a df:



screenshot of df



And here's the GParted tool un ubuntu:



screenshot of GParted


More From » partitioning

 Answers
5

EDIT: This stands here only for educational purposes.



Ubuntu does not allow messing with mounted partitions, therefore you have three options:




  1. (Preferred one) Use 91GB partition for your /home, ie, user files. This way, when you need to upgrade Ubuntu, this partition will not be touched, ie, you will not have to copy data from backup back to hard assuming everything went right.

    1. Boot into Ubuntu

    2. Open terminal by pressing ctr+alt+T

    3. Gain administrative rights by typing sudo -s; it will ask for your password; there will be no indication that you are typing it - just type and press Enter

    4. Type lsblk

    5. Find your 91GB partition; Check if it's mounted; if MOUNTPOINT column is empty, skip next step

    6. Unmount that partition by typing umount /dev/sda[number from the first column]

    7. Change mount point of 91GB partition

      • Get UUID for 91GB partition blkid; check for same /dev/sdaX as you used for umount

      • Backup before messing with system file: cp /etc/fstab /etc/fstab_backup
      • Type gedit /etc/fstab

      • There should be line starting with UUID=[UUID from blkid]; change column /something to /home
      • Save file

      • Only read following if there was no line with correct UUID

      • At the end of the file add line #mount home partition; # marks everything following it as a comment, so you can use whatever

      • Add another line UUID=[UUID from blkid] /home ext4 nodev,nosuid 0 2

      • Save file



    8. Reboot

    9. You should have 91GB for your home directory; check from file manager


  2. Deleting 91GB partition and expanding main Ubuntu partition from live session

    1. Boot into Ubuntu live session

    2. Open Gparted by pressing super (Windows) key, typing gparted and pressing enter;

    3. Select your 91GB partition

    4. Press Delete

    5. Select your Ubuntu partition

    6. From menu bar Partition -> Resize/Move

    7. Triple check the operations that will be executed (they are shown at the bottom)

    8. Check if the operations are such: delete [91GB] partition; expand [Ubuntu] partition; Edit -> Clear all operations if not

    9. Apply changes by pressing ctrl+Enter

    10. Reboot into normal Ubuntu session



  3. Deleting 91GB partition in Windows and expand Ubuntu partition. I am not sure to do this as windows does not understand ext4 formatting.



Check

http://www.howtogeek.com/howto/35807/how-to-harmonize-your-dual-boot-setup-for-windows-and-ubuntu/

and

http://www.howtogeek.com/116742/how-to-create-a-separate-home-partition-after-installing-ubuntu/

for reference.


[#21929] Wednesday, March 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
emuralm

Total Points: 290
Total Questions: 111
Total Answers: 117

Location: China
Member since Thu, Sep 1, 2022
2 Years ago
;