How to shrink home partition on a running OS (Ubuntu linux)? [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite
1













This question already has an answer here:



  • How to resize the root partition using GParted

    1 answer



  • How to resize partitions?

    4 answers



enter image description here



I want to reduce the home size. So I need to unmount it. How can I do it using gparted?



2) what type of file system is better for accessing both windows and linux.







share|improve this question














marked as duplicate by user68186, Fabby, David Foerster, Kevin Bowen, Helio May 28 at 13:58


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Welcome to Ask Ubuntu. Please use one question at a time. Your second question is primarily opinion based, and likely to be closed if asked as a separate question.
    – user68186
    May 24 at 15:50







  • 1




    I think you would have to enable root then login as root... if you are logged in as a user your home folder will always be in use. or you can boot from live USB and use gparted there maybe?
    – Joshua Besneatte
    May 24 at 16:02










  • You can access NTFS on Ubuntu, just run: sudo apt install ntfs-3g
    – NerdOfLinux
    May 24 at 17:42










  • what will be the better option using ntfs or fat32
    – Md. Mony
    May 24 at 18:00










  • Obvious, but you cannot use NTFS or Fat32 for /home. Use Live USB to reduce /home. P.S. I never use extended for /home or swap, so I have never reduced them with Live USB. ExFAT is dangerous with Linux! If you intentionally or accidentally do a filesystem check, you could lose all your data, I have done it once...
    – vasilis74
    May 25 at 1:29














up vote
2
down vote

favorite
1













This question already has an answer here:



  • How to resize the root partition using GParted

    1 answer



  • How to resize partitions?

    4 answers



enter image description here



I want to reduce the home size. So I need to unmount it. How can I do it using gparted?



2) what type of file system is better for accessing both windows and linux.







share|improve this question














marked as duplicate by user68186, Fabby, David Foerster, Kevin Bowen, Helio May 28 at 13:58


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Welcome to Ask Ubuntu. Please use one question at a time. Your second question is primarily opinion based, and likely to be closed if asked as a separate question.
    – user68186
    May 24 at 15:50







  • 1




    I think you would have to enable root then login as root... if you are logged in as a user your home folder will always be in use. or you can boot from live USB and use gparted there maybe?
    – Joshua Besneatte
    May 24 at 16:02










  • You can access NTFS on Ubuntu, just run: sudo apt install ntfs-3g
    – NerdOfLinux
    May 24 at 17:42










  • what will be the better option using ntfs or fat32
    – Md. Mony
    May 24 at 18:00










  • Obvious, but you cannot use NTFS or Fat32 for /home. Use Live USB to reduce /home. P.S. I never use extended for /home or swap, so I have never reduced them with Live USB. ExFAT is dangerous with Linux! If you intentionally or accidentally do a filesystem check, you could lose all your data, I have done it once...
    – vasilis74
    May 25 at 1:29












up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1






This question already has an answer here:



  • How to resize the root partition using GParted

    1 answer



  • How to resize partitions?

    4 answers



enter image description here



I want to reduce the home size. So I need to unmount it. How can I do it using gparted?



2) what type of file system is better for accessing both windows and linux.







share|improve this question















This question already has an answer here:



  • How to resize the root partition using GParted

    1 answer



  • How to resize partitions?

    4 answers



enter image description here



I want to reduce the home size. So I need to unmount it. How can I do it using gparted?



2) what type of file system is better for accessing both windows and linux.





This question already has an answer here:



  • How to resize the root partition using GParted

    1 answer



  • How to resize partitions?

    4 answers









share|improve this question













share|improve this question




share|improve this question








edited May 24 at 18:30









Philippe Gachoud

2,9772336




2,9772336










asked May 24 at 15:49









Md. Mony

133




133




marked as duplicate by user68186, Fabby, David Foerster, Kevin Bowen, Helio May 28 at 13:58


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by user68186, Fabby, David Foerster, Kevin Bowen, Helio May 28 at 13:58


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.













  • Welcome to Ask Ubuntu. Please use one question at a time. Your second question is primarily opinion based, and likely to be closed if asked as a separate question.
    – user68186
    May 24 at 15:50







  • 1




    I think you would have to enable root then login as root... if you are logged in as a user your home folder will always be in use. or you can boot from live USB and use gparted there maybe?
    – Joshua Besneatte
    May 24 at 16:02










  • You can access NTFS on Ubuntu, just run: sudo apt install ntfs-3g
    – NerdOfLinux
    May 24 at 17:42










  • what will be the better option using ntfs or fat32
    – Md. Mony
    May 24 at 18:00










  • Obvious, but you cannot use NTFS or Fat32 for /home. Use Live USB to reduce /home. P.S. I never use extended for /home or swap, so I have never reduced them with Live USB. ExFAT is dangerous with Linux! If you intentionally or accidentally do a filesystem check, you could lose all your data, I have done it once...
    – vasilis74
    May 25 at 1:29
















  • Welcome to Ask Ubuntu. Please use one question at a time. Your second question is primarily opinion based, and likely to be closed if asked as a separate question.
    – user68186
    May 24 at 15:50







  • 1




    I think you would have to enable root then login as root... if you are logged in as a user your home folder will always be in use. or you can boot from live USB and use gparted there maybe?
    – Joshua Besneatte
    May 24 at 16:02










  • You can access NTFS on Ubuntu, just run: sudo apt install ntfs-3g
    – NerdOfLinux
    May 24 at 17:42










  • what will be the better option using ntfs or fat32
    – Md. Mony
    May 24 at 18:00










  • Obvious, but you cannot use NTFS or Fat32 for /home. Use Live USB to reduce /home. P.S. I never use extended for /home or swap, so I have never reduced them with Live USB. ExFAT is dangerous with Linux! If you intentionally or accidentally do a filesystem check, you could lose all your data, I have done it once...
    – vasilis74
    May 25 at 1:29















Welcome to Ask Ubuntu. Please use one question at a time. Your second question is primarily opinion based, and likely to be closed if asked as a separate question.
– user68186
May 24 at 15:50





Welcome to Ask Ubuntu. Please use one question at a time. Your second question is primarily opinion based, and likely to be closed if asked as a separate question.
– user68186
May 24 at 15:50





1




1




I think you would have to enable root then login as root... if you are logged in as a user your home folder will always be in use. or you can boot from live USB and use gparted there maybe?
– Joshua Besneatte
May 24 at 16:02




I think you would have to enable root then login as root... if you are logged in as a user your home folder will always be in use. or you can boot from live USB and use gparted there maybe?
– Joshua Besneatte
May 24 at 16:02












You can access NTFS on Ubuntu, just run: sudo apt install ntfs-3g
– NerdOfLinux
May 24 at 17:42




You can access NTFS on Ubuntu, just run: sudo apt install ntfs-3g
– NerdOfLinux
May 24 at 17:42












what will be the better option using ntfs or fat32
– Md. Mony
May 24 at 18:00




what will be the better option using ntfs or fat32
– Md. Mony
May 24 at 18:00












Obvious, but you cannot use NTFS or Fat32 for /home. Use Live USB to reduce /home. P.S. I never use extended for /home or swap, so I have never reduced them with Live USB. ExFAT is dangerous with Linux! If you intentionally or accidentally do a filesystem check, you could lose all your data, I have done it once...
– vasilis74
May 25 at 1:29




Obvious, but you cannot use NTFS or Fat32 for /home. Use Live USB to reduce /home. P.S. I never use extended for /home or swap, so I have never reduced them with Live USB. ExFAT is dangerous with Linux! If you intentionally or accidentally do a filesystem check, you could lose all your data, I have done it once...
– vasilis74
May 25 at 1:29










3 Answers
3






active

oldest

votes

















up vote
4
down vote



accepted










Basically, you cannot modify the structure of a mounted partition (which you are using).



Home, boot, data partition



So a home partition can typically be unmounted using another user logged in, umount it and modify its structure.



Slash or extended partition when slash mounted on



You have to do this from a live UFD/DVD as you cannot unmount a Linux system partition on an hdd/ssd while it is directly or potentially in use.



As far as file systems are concerned, with Windows use NTFS and with Ubuntu system devices, stay with ext4. If you plan to stay with Windows keep data files on an NTFS system or use extufsd for example.






share|improve this answer






















  • I have another question, can I increase the size of "extended partition"? and how?
    – Md. Mony
    May 24 at 17:57










  • @Md.Mony: if it's another question, make it another question ;)
    – 0xC0000022L
    May 24 at 18:37

















up vote
-1
down vote













if you want to reduce home partition size means it definitely affects the whole working Linux operating system. while Linux machine is running it is not possible to edit the home partition. it can be done by using bootable Linux USB/cd (any Linux os, ex Ubuntu, Kali Linux) and gparted is installed on it. in this way also you may destroy your running Ubuntu os. but I tried this it workes for me. Hope that this s work for you also.






share|improve this answer




















  • Reducing the Home partition can't damage the Ubuntu installation if there really is a home partition, and a separate OS partition. Even if there is only one partition, I don't see how shrinking it will cause damage, especially if it is just about 10% full, as the picture shows.
    – NerdOfLinux
    May 24 at 17:40











  • ok I solve it by using a live CD. Thank you so much.
    – Md. Mony
    May 24 at 17:58

















up vote
-2
down vote













  1. Log in as another user; typically Ctrl+alt+F1 username -> enter -> pwd (Instructions to create another if you don't have one yet; that other user must be added to the group sudoer)

  2. Shutdown graphical interface sudo service sddm stop

  3. Unmount home sudo umount /home


  4. resize2fs /dev/sda6 6000M or the size you want

  5. Remount all partitions defined into /etc/fstab which include /home sudo mount -a

  6. Restart you graphical interface sudo service sddm start





share|improve this answer


















  • 1




    Logging in as another user will not solve the problem, unless the user is root. All other users have their Home folder under /home/user1, /home/user2 etc. The /home partition is mounted and locked whether user1 is logged in or user2 is logged in. Create another user, user3 and she gets /home/user3 as her home. So, you cannot unmount /home unless you enable root login or boot from another drive, such as a Live USB or DVD.
    – user68186
    May 24 at 19:14

















3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote



accepted










Basically, you cannot modify the structure of a mounted partition (which you are using).



Home, boot, data partition



So a home partition can typically be unmounted using another user logged in, umount it and modify its structure.



Slash or extended partition when slash mounted on



You have to do this from a live UFD/DVD as you cannot unmount a Linux system partition on an hdd/ssd while it is directly or potentially in use.



As far as file systems are concerned, with Windows use NTFS and with Ubuntu system devices, stay with ext4. If you plan to stay with Windows keep data files on an NTFS system or use extufsd for example.






share|improve this answer






















  • I have another question, can I increase the size of "extended partition"? and how?
    – Md. Mony
    May 24 at 17:57










  • @Md.Mony: if it's another question, make it another question ;)
    – 0xC0000022L
    May 24 at 18:37














up vote
4
down vote



accepted










Basically, you cannot modify the structure of a mounted partition (which you are using).



Home, boot, data partition



So a home partition can typically be unmounted using another user logged in, umount it and modify its structure.



Slash or extended partition when slash mounted on



You have to do this from a live UFD/DVD as you cannot unmount a Linux system partition on an hdd/ssd while it is directly or potentially in use.



As far as file systems are concerned, with Windows use NTFS and with Ubuntu system devices, stay with ext4. If you plan to stay with Windows keep data files on an NTFS system or use extufsd for example.






share|improve this answer






















  • I have another question, can I increase the size of "extended partition"? and how?
    – Md. Mony
    May 24 at 17:57










  • @Md.Mony: if it's another question, make it another question ;)
    – 0xC0000022L
    May 24 at 18:37












up vote
4
down vote



accepted







up vote
4
down vote



accepted






Basically, you cannot modify the structure of a mounted partition (which you are using).



Home, boot, data partition



So a home partition can typically be unmounted using another user logged in, umount it and modify its structure.



Slash or extended partition when slash mounted on



You have to do this from a live UFD/DVD as you cannot unmount a Linux system partition on an hdd/ssd while it is directly or potentially in use.



As far as file systems are concerned, with Windows use NTFS and with Ubuntu system devices, stay with ext4. If you plan to stay with Windows keep data files on an NTFS system or use extufsd for example.






share|improve this answer














Basically, you cannot modify the structure of a mounted partition (which you are using).



Home, boot, data partition



So a home partition can typically be unmounted using another user logged in, umount it and modify its structure.



Slash or extended partition when slash mounted on



You have to do this from a live UFD/DVD as you cannot unmount a Linux system partition on an hdd/ssd while it is directly or potentially in use.



As far as file systems are concerned, with Windows use NTFS and with Ubuntu system devices, stay with ext4. If you plan to stay with Windows keep data files on an NTFS system or use extufsd for example.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 24 at 18:36









Philippe Gachoud

2,9772336




2,9772336










answered May 24 at 16:40









Paul Benson

393117




393117











  • I have another question, can I increase the size of "extended partition"? and how?
    – Md. Mony
    May 24 at 17:57










  • @Md.Mony: if it's another question, make it another question ;)
    – 0xC0000022L
    May 24 at 18:37
















  • I have another question, can I increase the size of "extended partition"? and how?
    – Md. Mony
    May 24 at 17:57










  • @Md.Mony: if it's another question, make it another question ;)
    – 0xC0000022L
    May 24 at 18:37















I have another question, can I increase the size of "extended partition"? and how?
– Md. Mony
May 24 at 17:57




I have another question, can I increase the size of "extended partition"? and how?
– Md. Mony
May 24 at 17:57












@Md.Mony: if it's another question, make it another question ;)
– 0xC0000022L
May 24 at 18:37




@Md.Mony: if it's another question, make it another question ;)
– 0xC0000022L
May 24 at 18:37












up vote
-1
down vote













if you want to reduce home partition size means it definitely affects the whole working Linux operating system. while Linux machine is running it is not possible to edit the home partition. it can be done by using bootable Linux USB/cd (any Linux os, ex Ubuntu, Kali Linux) and gparted is installed on it. in this way also you may destroy your running Ubuntu os. but I tried this it workes for me. Hope that this s work for you also.






share|improve this answer




















  • Reducing the Home partition can't damage the Ubuntu installation if there really is a home partition, and a separate OS partition. Even if there is only one partition, I don't see how shrinking it will cause damage, especially if it is just about 10% full, as the picture shows.
    – NerdOfLinux
    May 24 at 17:40











  • ok I solve it by using a live CD. Thank you so much.
    – Md. Mony
    May 24 at 17:58














up vote
-1
down vote













if you want to reduce home partition size means it definitely affects the whole working Linux operating system. while Linux machine is running it is not possible to edit the home partition. it can be done by using bootable Linux USB/cd (any Linux os, ex Ubuntu, Kali Linux) and gparted is installed on it. in this way also you may destroy your running Ubuntu os. but I tried this it workes for me. Hope that this s work for you also.






share|improve this answer




















  • Reducing the Home partition can't damage the Ubuntu installation if there really is a home partition, and a separate OS partition. Even if there is only one partition, I don't see how shrinking it will cause damage, especially if it is just about 10% full, as the picture shows.
    – NerdOfLinux
    May 24 at 17:40











  • ok I solve it by using a live CD. Thank you so much.
    – Md. Mony
    May 24 at 17:58












up vote
-1
down vote










up vote
-1
down vote









if you want to reduce home partition size means it definitely affects the whole working Linux operating system. while Linux machine is running it is not possible to edit the home partition. it can be done by using bootable Linux USB/cd (any Linux os, ex Ubuntu, Kali Linux) and gparted is installed on it. in this way also you may destroy your running Ubuntu os. but I tried this it workes for me. Hope that this s work for you also.






share|improve this answer












if you want to reduce home partition size means it definitely affects the whole working Linux operating system. while Linux machine is running it is not possible to edit the home partition. it can be done by using bootable Linux USB/cd (any Linux os, ex Ubuntu, Kali Linux) and gparted is installed on it. in this way also you may destroy your running Ubuntu os. but I tried this it workes for me. Hope that this s work for you also.







share|improve this answer












share|improve this answer



share|improve this answer










answered May 24 at 16:51









Gokul Gokul

12




12











  • Reducing the Home partition can't damage the Ubuntu installation if there really is a home partition, and a separate OS partition. Even if there is only one partition, I don't see how shrinking it will cause damage, especially if it is just about 10% full, as the picture shows.
    – NerdOfLinux
    May 24 at 17:40











  • ok I solve it by using a live CD. Thank you so much.
    – Md. Mony
    May 24 at 17:58
















  • Reducing the Home partition can't damage the Ubuntu installation if there really is a home partition, and a separate OS partition. Even if there is only one partition, I don't see how shrinking it will cause damage, especially if it is just about 10% full, as the picture shows.
    – NerdOfLinux
    May 24 at 17:40











  • ok I solve it by using a live CD. Thank you so much.
    – Md. Mony
    May 24 at 17:58















Reducing the Home partition can't damage the Ubuntu installation if there really is a home partition, and a separate OS partition. Even if there is only one partition, I don't see how shrinking it will cause damage, especially if it is just about 10% full, as the picture shows.
– NerdOfLinux
May 24 at 17:40





Reducing the Home partition can't damage the Ubuntu installation if there really is a home partition, and a separate OS partition. Even if there is only one partition, I don't see how shrinking it will cause damage, especially if it is just about 10% full, as the picture shows.
– NerdOfLinux
May 24 at 17:40













ok I solve it by using a live CD. Thank you so much.
– Md. Mony
May 24 at 17:58




ok I solve it by using a live CD. Thank you so much.
– Md. Mony
May 24 at 17:58










up vote
-2
down vote













  1. Log in as another user; typically Ctrl+alt+F1 username -> enter -> pwd (Instructions to create another if you don't have one yet; that other user must be added to the group sudoer)

  2. Shutdown graphical interface sudo service sddm stop

  3. Unmount home sudo umount /home


  4. resize2fs /dev/sda6 6000M or the size you want

  5. Remount all partitions defined into /etc/fstab which include /home sudo mount -a

  6. Restart you graphical interface sudo service sddm start





share|improve this answer


















  • 1




    Logging in as another user will not solve the problem, unless the user is root. All other users have their Home folder under /home/user1, /home/user2 etc. The /home partition is mounted and locked whether user1 is logged in or user2 is logged in. Create another user, user3 and she gets /home/user3 as her home. So, you cannot unmount /home unless you enable root login or boot from another drive, such as a Live USB or DVD.
    – user68186
    May 24 at 19:14














up vote
-2
down vote













  1. Log in as another user; typically Ctrl+alt+F1 username -> enter -> pwd (Instructions to create another if you don't have one yet; that other user must be added to the group sudoer)

  2. Shutdown graphical interface sudo service sddm stop

  3. Unmount home sudo umount /home


  4. resize2fs /dev/sda6 6000M or the size you want

  5. Remount all partitions defined into /etc/fstab which include /home sudo mount -a

  6. Restart you graphical interface sudo service sddm start





share|improve this answer


















  • 1




    Logging in as another user will not solve the problem, unless the user is root. All other users have their Home folder under /home/user1, /home/user2 etc. The /home partition is mounted and locked whether user1 is logged in or user2 is logged in. Create another user, user3 and she gets /home/user3 as her home. So, you cannot unmount /home unless you enable root login or boot from another drive, such as a Live USB or DVD.
    – user68186
    May 24 at 19:14












up vote
-2
down vote










up vote
-2
down vote









  1. Log in as another user; typically Ctrl+alt+F1 username -> enter -> pwd (Instructions to create another if you don't have one yet; that other user must be added to the group sudoer)

  2. Shutdown graphical interface sudo service sddm stop

  3. Unmount home sudo umount /home


  4. resize2fs /dev/sda6 6000M or the size you want

  5. Remount all partitions defined into /etc/fstab which include /home sudo mount -a

  6. Restart you graphical interface sudo service sddm start





share|improve this answer














  1. Log in as another user; typically Ctrl+alt+F1 username -> enter -> pwd (Instructions to create another if you don't have one yet; that other user must be added to the group sudoer)

  2. Shutdown graphical interface sudo service sddm stop

  3. Unmount home sudo umount /home


  4. resize2fs /dev/sda6 6000M or the size you want

  5. Remount all partitions defined into /etc/fstab which include /home sudo mount -a

  6. Restart you graphical interface sudo service sddm start






share|improve this answer














share|improve this answer



share|improve this answer








edited May 24 at 21:04









K7AAY

3,73221443




3,73221443










answered May 24 at 18:42









Philippe Gachoud

2,9772336




2,9772336







  • 1




    Logging in as another user will not solve the problem, unless the user is root. All other users have their Home folder under /home/user1, /home/user2 etc. The /home partition is mounted and locked whether user1 is logged in or user2 is logged in. Create another user, user3 and she gets /home/user3 as her home. So, you cannot unmount /home unless you enable root login or boot from another drive, such as a Live USB or DVD.
    – user68186
    May 24 at 19:14












  • 1




    Logging in as another user will not solve the problem, unless the user is root. All other users have their Home folder under /home/user1, /home/user2 etc. The /home partition is mounted and locked whether user1 is logged in or user2 is logged in. Create another user, user3 and she gets /home/user3 as her home. So, you cannot unmount /home unless you enable root login or boot from another drive, such as a Live USB or DVD.
    – user68186
    May 24 at 19:14







1




1




Logging in as another user will not solve the problem, unless the user is root. All other users have their Home folder under /home/user1, /home/user2 etc. The /home partition is mounted and locked whether user1 is logged in or user2 is logged in. Create another user, user3 and she gets /home/user3 as her home. So, you cannot unmount /home unless you enable root login or boot from another drive, such as a Live USB or DVD.
– user68186
May 24 at 19:14




Logging in as another user will not solve the problem, unless the user is root. All other users have their Home folder under /home/user1, /home/user2 etc. The /home partition is mounted and locked whether user1 is logged in or user2 is logged in. Create another user, user3 and she gets /home/user3 as her home. So, you cannot unmount /home unless you enable root login or boot from another drive, such as a Live USB or DVD.
– user68186
May 24 at 19:14


Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491