Solved Mint 17.3 low on disk space

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
cabman46
Level 2
Level 2
Posts: 84
Joined: Sat Dec 26, 2015 4:55 pm

Solved Mint 17.3 low on disk space

Post by cabman46 » Wed Oct 17, 2018 5:02 pm

Hi all,
I have a Dell Optiplex 780 running Mint 17.3. I have used this OS for several years now. I originally was setup to dual boot Win XP Pro. each partition was about 40 gig out of a total of 320gig. About a year ago I got rid of Windows and now I'm down to about 9gig of space left for Mint. Attached is a screeprint of my hard drive.
I would like to add/merge the 240gig partition to my Mint file system without losing any data. Would someone be so kind as to show me how to do this? Many thanks in advance. I have Gparted installed.
Attachments
filesys.jpg
Last edited by cabman46 on Fri Oct 19, 2018 12:13 pm, edited 1 time in total.

User avatar
catweazel
Level 17
Level 17
Posts: 7755
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Mint 17.3 low on disk space

Post by catweazel » Thu Oct 18, 2018 12:42 am

cabman46 wrote:
Wed Oct 17, 2018 5:02 pm
I would like to add/merge the 240gig partition to my Mint file system without losing any data.
Nobody can guarantee that you won't mess something up. Backup your treasured stuff before proceeding. You will need to delete the 240GB partition and extend the extended partition into that space, then delete the swap partition, then extend partition 5, then recreate swap. I doubt you'll come out unscathed. The alternative is to mount the 240GB partition and soft link to it from your /home directory. This option will save you lots of potential heartache.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

User avatar
WharfRat
Level 20
Level 20
Posts: 11704
Joined: Thu Apr 07, 2011 8:15 pm

Re: Mint 17.3 low on disk space

Post by WharfRat » Thu Oct 18, 2018 8:57 am

Another alternative to finagling with the partitions or symlinks is to move the /home folder to that partition :wink:

sudo du -sh /home/ will show how much space that folder is using.
ImageImage

HaveaMint
Level 4
Level 4
Posts: 427
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Mint 17.3 low on disk space

Post by HaveaMint » Thu Oct 18, 2018 9:27 am

Since it is only smart to backup your treasures I think it would be easier to just re-install after the backup.
"Tune for maximum Smoke and then read the Instructions".

puddleglum
Level 1
Level 1
Posts: 26
Joined: Fri Dec 22, 2017 12:03 pm

Re: Mint 17.3 low on disk space

Post by puddleglum » Thu Oct 18, 2018 9:41 am

I assume Mint 17.3 and your home directories are on Partition 5 and you want to expand partition 5 by using partition 1. Do you currently have anything on partition 1 that you want to keep? If there is you will need to back it up because you are going to lose everything on that partition.

You mentioned Gparted, and you can use that to accomplish the steps catweazel outlined for you. The safer alternative he mentioned keeps your OS on partition 5 and places your home directory on partition 1. You would need to use a program like rsync to copy the contents of your home directory to partition 1. Then edit your /etc/fstab file and add a line to mount partition 1 on /home. After rebooting and making sure your home directory is working from partition 1, you can unmount it and delete the original copy on partition 5 to free up the space.

Another possible solution is to move everything from partition 5 to partition 1 and delete partition 5 as you have your 41 GB of Free Space. I assume that used to be windows. You would then be running Mint 17.3 and your home directories on the 240 GB of partition 1. If you chose this option you will need to edit your /etc/fstab file so / is mounted on partition 1 instead of partition 5. You will also need to reinstall grub from partition 5 with grub-install or you will end up with a system that will no longer boot.

User avatar
sdibaja
Level 5
Level 5
Posts: 666
Joined: Sun May 08, 2011 12:57 pm
Location: Baja California, Mexico

Re: Mint 17.3 low on disk space

Post by sdibaja » Thu Oct 18, 2018 9:53 am

don't over-complicate this.
run Gparted from a live medium
1. expand the boundary of the Extended partition all the way to the left.
2. move the partitions within all the way to the left
3. move the boundary of that Extended partition over as desired.
now the un-formatted area adjoins the BIG 240...
4. expand the 240 to consume it all
yes it is slow, but it works.

Yes, backup first... but that is a given.

Personally I prefer GPT partition tables, much smaller partitions (purpose specific)...much more flexible. And I would make a fresh install.

alternatively the partitions can be Copied to another drive and Copied back as desired.
Gparted does it all, simply.

User avatar
JerryF
Level 10
Level 10
Posts: 3139
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Mint 17.3 low on disk space

Post by JerryF » Thu Oct 18, 2018 11:15 am

sdibaja wrote:
Thu Oct 18, 2018 9:53 am
don't over-complicate this.
run Gparted from a live medium
1. expand the boundary of the Extended partition all the way to the left.
2. move the partitions within all the way to the left
3. move the boundary of that Extended partition over as desired.
now the un-formatted area adjoins the BIG 240...
4. expand the 240 to consume it all
yes it is slow, but it works.

Yes, backup first... but that is a given.
...
+1
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members.

User avatar
trytip
Level 8
Level 8
Posts: 2407
Joined: Tue Jul 05, 2016 1:20 pm

Re: Mint 17.3 low on disk space

Post by trytip » Thu Oct 18, 2018 12:01 pm

i would first check and delete the extra leftovers and uninstall extra kernels you have.
in /boot/ folder how many kernels do you have? how many files starting with initrd.img- are there?
also in var/cache/apt/archives/ and var/cache/apt/archives/partial/ you can delete everything
Image

cabman46
Level 2
Level 2
Posts: 84
Joined: Sat Dec 26, 2015 4:55 pm

Re: Mint 17.3 low on disk space

Post by cabman46 » Thu Oct 18, 2018 12:39 pm

WharfRat wrote:
Thu Oct 18, 2018 8:57 am
Another alternative to finagling with the partitions or symlinks is to move the /home folder to that partition :wink:

sudo du -sh /home/ will show how much space that folder is using.
I ran it and got 14gig.

cabman46
Level 2
Level 2
Posts: 84
Joined: Sat Dec 26, 2015 4:55 pm

Re: Mint 17.3 low on disk space

Post by cabman46 » Thu Oct 18, 2018 12:45 pm

JerryF wrote:
Thu Oct 18, 2018 11:15 am
sdibaja wrote:
Thu Oct 18, 2018 9:53 am
don't over-complicate this.
run Gparted from a live medium
1. expand the boundary of the Extended partition all the way to the left.
2. move the partitions within all the way to the left
3. move the boundary of that Extended partition over as desired.
now the un-formatted area adjoins the BIG 240...
4. expand the 240 to consume it all
yes it is slow, but it works.

Yes, backup first... but that is a given.
...
+1
I have a large external HD. Could I just copy the Home folder to that drive. I was also thinking about upgrading to mint 18.3 or 19 then put the copied Home folder back in?

User avatar
JerryF
Level 10
Level 10
Posts: 3139
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Mint 17.3 low on disk space

Post by JerryF » Thu Oct 18, 2018 12:52 pm

Be careful with regards to your hidden folders (the ones that start with a period) in your home folder.

Some of those have settings for your apps. As of now, they're for 17.3 and may not play well if you install a higher version like 18 or 19.
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members.

puddleglum
Level 1
Level 1
Posts: 26
Joined: Fri Dec 22, 2017 12:03 pm

Re: Mint 17.3 low on disk space

Post by puddleglum » Thu Oct 18, 2018 12:55 pm

cabman46 wrote:
Thu Oct 18, 2018 12:45 pm
I have a large external HD. Could I just copy the Home folder to that drive. I was also thinking about upgrading to mint 18.3 or 19 then put the copied Home folder back in?
I figured that was what you were going to use your free space for since 17.3 will stop being supported next year. You can install 18.3 or 19 there for now and duel boot until you make sure the new OS works with your hardware. You can move the stuff over from your 17.3 home directory any time. If you need more space you can set up partition 1 as your home directory during the installation.

cabman46
Level 2
Level 2
Posts: 84
Joined: Sat Dec 26, 2015 4:55 pm

Re: Mint 17.3 low on disk space

Post by cabman46 » Thu Oct 18, 2018 2:17 pm

puddleglum wrote:
Thu Oct 18, 2018 12:55 pm
cabman46 wrote:
Thu Oct 18, 2018 12:45 pm
I have a large external HD. Could I just copy the Home folder to that drive. I was also thinking about upgrading to mint 18.3 or 19 then put the copied Home folder back in?
I figured that was what you were going to use your free space for since 17.3 will stop being supported next year. You can install 18.3 or 19 there for now and duel boot until you make sure the new OS works with your hardware. You can move the stuff over from your 17.3 home directory any time. If you need more space you can set up partition 1 as your home directory during the installation.
Sounds like a good plan to me. The only thing I have on partition 1 is a save from Timeshift. I can run Timeshift again to a thumb drive.

User avatar
sdibaja
Level 5
Level 5
Posts: 666
Joined: Sun May 08, 2011 12:57 pm
Location: Baja California, Mexico

Re: Mint 17.3 low on disk space

Post by sdibaja » Thu Oct 18, 2018 2:54 pm

the partitions can be Copied to another drive and Copied back if desired.
Gparted does it all, simply.
Peter

User avatar
WharfRat
Level 20
Level 20
Posts: 11704
Joined: Thu Apr 07, 2011 8:15 pm

Re: Mint 17.3 low on disk space

Post by WharfRat » Thu Oct 18, 2018 4:53 pm

cabman46 wrote:
Thu Oct 18, 2018 12:39 pm
WharfRat wrote:
Thu Oct 18, 2018 8:57 am
Another alternative to finagling with the partitions or symlinks is to move the /home folder to that partition :wink:

sudo du -sh /home/ will show how much space that folder is using.
I ran it and got 14gig.
So you will essentially clear up 14gig of your mint filesystem and anything you save to the /home folder will not impact your Mint filesystem.

So you have some choices and good advice and instructions here so the decision is yours.

If you decide to move /home to the 240gig partition I can provide you with the term commands.

Good luck :wink:
ImageImage

cabman46
Level 2
Level 2
Posts: 84
Joined: Sat Dec 26, 2015 4:55 pm

Re: Mint 17.3 low on disk space

Post by cabman46 » Fri Oct 19, 2018 12:12 pm

WharfRat wrote:
Thu Oct 18, 2018 4:53 pm
cabman46 wrote:
Thu Oct 18, 2018 12:39 pm
WharfRat wrote:
Thu Oct 18, 2018 8:57 am
Another alternative to finagling with the partitions or symlinks is to move the /home folder to that partition :wink:

sudo du -sh /home/ will show how much space that folder is using.
I ran it and got 14gig.
So you will essentially clear up 14gig of your mint filesystem and anything you save to the /home folder will not impact your Mint filesystem.

So you have some choices and good advice and instructions here so the decision is yours.

If you decide to move /home to the 240gig partition I can provide you with the term commands.

Good luck :wink:
I've thought about this situation and have decided to backup my /home/ folder and format the drive to get it straight then reinstall linux. I'm going to mark this solved. Thank you guys for all of your help. My Linux knowledge is limited so many of the instructions here are over my head.

User avatar
sdibaja
Level 5
Level 5
Posts: 666
Joined: Sun May 08, 2011 12:57 pm
Location: Baja California, Mexico

Re: Solved Mint 17.3 low on disk space

Post by sdibaja » Fri Oct 19, 2018 12:25 pm

Good choice. Best of luck.
Remember, first thing... get a backup program going and rest easy in the future.
shameless plug for LuckyBackup with scheduled automatic backup

Post Reply

Return to “Hardware Support”