Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Freeing up space on Hard Disk/Partitioning

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
TheWizardofOdds
LXF regular


Joined: Sun Sep 28, 2008 2:37 pm
Posts: 180

PostPosted: Fri Dec 02, 2011 12:05 pm    Post subject: Freeing up space on Hard Disk/Partitioning Reply with quote

I dual-boot Ubuntu 11.10 and Windows XP Pro on my PC.

When I used XP last night to upload some music I was warned of low disk space. I have 166MB free. This seems shockingly low when I have next to nothing on Windows just the minimum programs plus iTunes.

When I accessed Computer on Ubuntu it says 360 GB Hard Disk, 12GB File system. When I upgrade the Ubuntu distro every six months I notice that the previous distro is still on the boot menu. Is this making the Hard Disk space less and less each time by partitioning? I don't need or use the 'old' distros.

I would like to partition the Disk with only the current distro and XP. I am very nervous about doing so as I had such a drama installing XP. How would I go about this? Is it possible to delete the other distros on the boot menu or do I have to reinstall Ubuntu 11.10 in order to free up the space for Windows?
Back to top
View user's profile Send private message
johnhudson
LXF regular


Joined: Wed Aug 03, 2005 2:37 pm
Posts: 870

PostPosted: Fri Dec 02, 2011 7:45 pm    Post subject: Reply with quote

The Windows notification only applies to the Windows partition because Windows thinks that is all you have.

The problem is Windows updates which gradually fill up the partition - I started with XP using around 4Gb and now it uses 9Gb - I haven't added anything in the last five years other than the updates.

Assuming you have cleaned and defragged the partition, see if there are any files or programs you never use which you can get rid of.

BTW the problem arises because Windows has no swap and is looking for somewhere on the hard disk to use for its equivalent of swap.
Back to top
View user's profile Send private message
TheWizardofOdds
LXF regular


Joined: Sun Sep 28, 2008 2:37 pm
Posts: 180

PostPosted: Wed Dec 07, 2011 12:26 pm    Post subject: Reply with quote

johnhudson wrote:
The Windows notification only applies to the Windows partition because Windows thinks that is all you have.

The problem is Windows updates which gradually fill up the partition - I started with XP using around 4Gb and now it uses 9Gb - I haven't added anything in the last five years other than the updates.

Assuming you have cleaned and defragged the partition, see if there are any files or programs you never use which you can get rid of.

BTW the problem arises because Windows has no swap and is looking for somewhere on the hard disk to use for its equivalent of swap.


I have deleted everything I can and defragged also.

Do I re-partition and reinstall Ubuntu and try to partition the disk 50/50 ?
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8453
Location: Warrington, UK

PostPosted: Wed Dec 07, 2011 1:12 pm    Post subject: Reply with quote

If you are upgrading, rather than reinstalling, you only have one distro. However, you will have several kernels, which is what you see in the boot menu. You can uninstall the older ones in Synaptic or the Software Centre.

To see where all the space is being used, run

Code:
df -Th

_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
TheWizardofOdds
LXF regular


Joined: Sun Sep 28, 2008 2:37 pm
Posts: 180

PostPosted: Tue Jun 19, 2012 12:48 am    Post subject: Reply with quote

nelz wrote:
If you are upgrading, rather than reinstalling, you only have one distro. However, you will have several kernels, which is what you see in the boot menu. You can uninstall the older ones in Synaptic or the Software Centre.

To see where all the space is being used, run

Code:
df -Th


How can I uninstall the older ones via Synaptic/Software centre?

I've got 12.04 LTS Ubuntu and would like to partition with XP, that's already on the hard drive.

I would like to start over again and partition 50/50 XP and 12.04. Can I do this when I install 12.04? I have no room on XP at all yet I have loads of space on the hard drive.

All this so I can use iTunes Rolling Eyes
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2430

PostPosted: Tue Jun 19, 2012 1:57 am    Post subject: Reply with quote

Fire up Gparted in Linux and adjust your Linux partition. Then with the same program, increase the XP partition, or mark it for NTFS, so XP picks it up next time you boot into it. Commit the changes and have Gparted do its magic Smile It'll report back when it's done.
Back to top
View user's profile Send private message
Paradigm Shifter



Joined: Sat May 19, 2012 1:16 pm
Posts: 84

PostPosted: Wed Jun 20, 2012 5:04 pm    Post subject: Reply with quote

I'd be more concerned over exactly where the space is going rather than 'fixing' it by giving it more with changing partition sizes. My first question would be what else do you have on that Windows partition? Space doesn't just vanish into the ether - something is filling it up... and as lousy as Windows updates can be, if you've given XP a reasonable amount of breathing room on its partition (15-20GB) Windows Updates shouldn't have chewed it all up.

How big is that Windows partition?

Have you got lots and lots of iTunes music on it? ALAC in particular will chew HDD space like it was going out of fashion. This is my main suspect in terms of HDD space vanishing... Wink

Have you put any more RAM in the system? If you've got the Hibernation and Page files active and Page file is set to size control by Windows (the default) then putting more RAM in will make the Hibernate and Page files jump in size...

Are there any large .log or temp files hiding anywhere?

Do you have System Restore set to a large percentage of the partition?

Are there lots of "$ folders" in the \Windows\ directory? (They'll be hidden and compressed with NTFS compression - they're often left behind when Windows updates essential system files, as they're the cache from the install and the old version in case you want to uninstall the Windows Update... but if you aren't going to uninstall the Update, they're just chewing space)

May also be worth downloading something like CCleaner and giving it a run to see what it finds; it's usually pretty good at finding temporary files hiding in daft places. Smile
Back to top
View user's profile Send private message
MartyBartfast
LXF regular


Joined: Mon Aug 22, 2005 8:25 am
Posts: 814
Location: Hants, UK

PostPosted: Wed Jun 20, 2012 5:49 pm    Post subject: Reply with quote

Paradigm Shifter wrote:

May also be worth downloading something like CCleaner and giving it a run to see what it finds; it's usually pretty good at finding temporary files hiding in daft places. Smile


I was also going to suggest installing CCleaner on the XP OS, I've found it pretty good at cleaning up lots of stuff.
_________________
I have been touched by his noodly appendage.
Back to top
View user's profile Send private message
catgate
LXF regular


Joined: Wed Jul 19, 2006 7:45 pm
Posts: 1037
Location: Just over there, in that corner.

PostPosted: Wed Jun 20, 2012 6:58 pm    Post subject: Reply with quote

There used to be a jolly good free programme for finding and removing all unwanted/unneeded .dll files in the days that I used to use Windows (98SE). The profligate way that M$ wastes you HDD space by not cleaning up after itself was one of my reasons for waving two finger at BG and changing to linux.
I am afraid I can not remember it's name but surely the freeware world must be awash with them.
_________________
Oh, sod it.
Back to top
View user's profile Send private message
JohnParr



Joined: Fri May 18, 2012 2:33 pm
Posts: 9

PostPosted: Wed Jul 11, 2012 10:29 pm    Post subject: Reply with quote

Restore points use up a lot of space. If you have never deleted any they may well be the problem. This link will tell you how.

http://support.microsoft.com/kb/555367
Back to top
View user's profile Send private message
guy
LXF regular


Joined: Thu Apr 07, 2005 1:07 pm
Posts: 1070
Location: Worcestershire

PostPosted: Sat Jul 14, 2012 12:09 pm    Post subject: Reply with quote

TheWizardofOdds wrote:
How can I uninstall the older ones via Synaptic/Software centre?

I'd appreciate an answer to that as well.

I desperately need to free up space occupied by old kernels - and other packages - too, but can find nothing in either GUI that so much as hints at this capability.

I recall seeing a magic command spell that can do this, but man synaptic pretty much just says to use the GTK+ recipes, which I cannot find.

[update] Found this: http://ubuntuforums.org/showthread.php?t=1587462
Just scroll down a bit
_________________
Cheers,
Guy
The eternal help vampire
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2430

PostPosted: Sat Jul 14, 2012 1:01 pm    Post subject: Reply with quote

Start Synaptic the usual way, then search for "linux" or "linuz". Mark all but the latest kernel version for purging, confirm your selection and have it do its job. Then search the menu for the option to clear the package cache, confirm again. If you regularly try out software, repeat the cache clearing on a monthly basis (or more frequent if you'd installed/removed a lot).
Back to top
View user's profile Send private message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7627
Location: Midlands, UK

PostPosted: Sat Jul 14, 2012 3:10 pm    Post subject: Reply with quote

Oddly (perhaps), I have found that when upgrading *Ubuntu releases, old kernels can be left in boot, but because they are not part of the new system's package list, they are not shown in Synaptic.
In just such a case, I have deleted all the relevant files for the old kernels from /boot (there's usually initrd, System.map, abi and config files as well as vmlinuz), then run sudo update-grub.
But, as mentioned above, Synaptic should be the first port of call for deleting old kernels.
_________________
Bye, Rhakios
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast