LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2015, 12:59 PM   #1
Mike Fisher
LQ Newbie
 
Registered: Nov 2015
Location: Portugal
Posts: 4

Rep: Reputation: Disabled
Angry Ubuntu boot disk nearly full. How do I prune


I use Ubuntu (14.16 light?) and at start up I get a message that there is only 2.9MB free space on boot disk. When I press the examine key no details appear. How do I get access and prune?
 
Old 11-03-2015, 01:18 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
You could run df -h from a terminal. It will show the size, amount used and amount available of mounted partitions. Do you have a separate boot partition or is it all on the / partition? With a separate boot partition you could use the option explained in the first post at the link below. If the / filesystem is close to full, you need to move some data.
 
Old 11-03-2015, 01:20 PM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,087
Blog Entries: 10

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Firstly, do you have any idea what content is taking up space? Meaning do you save a lot of files, documents, large things like movies? Or do you just use your system, save nothing more major than written documents, and thus have no starting clues on this subject?
 
Old 11-03-2015, 01:23 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,087
Blog Entries: 10

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Command line, a.k.a. Terminal? Or Desktop GUI? For instance on the command line there are commands such as the df which was raised by yancek, on the UI you can view your file folders and get properties. You should also right mouse to get a general menu and enable viewing of hidden files and folders. The initial things people are going to try and assist you with are to ascertain the total disk size you have, and whether or not disk usage is system files and applications or personal files which are pure data that you can consider backing up somewhere else.
 
Old 11-03-2015, 01:53 PM   #5
Mike Fisher
LQ Newbie
 
Registered: Nov 2015
Location: Portugal
Posts: 4

Original Poster
Rep: Reputation: Disabled
the files system looks like this
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-root 913G 13G 854G 2% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 1.7G 4.0K 1.7G 1% /dev
tmpfs 334M 1.3M 333M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.7G 288K 1.7G 1% /run/shm
none 100M 28K 100M 1% /run/user
/dev/sda2 237M 222M 2.8M 99% /boot
/dev/sda1 511M 3.4M 508M 1% /boot/efi

presumably the message refers to /dev/sda2 ???
Whatever that is! Does this shed any light on the problem.

Thanks for the replies so far.

Mike
 
Old 11-03-2015, 01:55 PM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,087
Blog Entries: 10

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Quote:
Originally Posted by Mike Fisher View Post
the files system looks like this
Filesystem Size Used Avail Use Mounted on
/dev/mapper/ubuntu--vg-root 913G 13G 854G 2 /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 1.7G 4.0K 1.7G 1% /dev
tmpfs 334M 1.3M 333M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.7G 288K 1.7G 1% /run/shm
none 100M 28K 100M 1% /run/user
/dev/sda2 237M 222M 2.8M 99% /boot
/dev/sda1 511M 3.4M 508M 1% /boot/efi

presumably the message refers to /dev/sda2 ???
Whatever that is! Does this shed any light on the problem.

Thanks for the replies so far.

Mike
So what that says is that you are only using 2% of your disk. You're reading it incorrectly.

For your root file system that is. The boot partition is largely full, but that should not matter, it should be solely to contain the boot information which will not change. Root is "/", the first one. 854G available. And that is likely where your /home/[your username] directory is located.

Last edited by rtmistler; 11-03-2015 at 01:56 PM.
 
Old 11-03-2015, 02:08 PM   #7
Mike Fisher
LQ Newbie
 
Registered: Nov 2015
Location: Portugal
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks all, especially rtmistler
 
Old 11-03-2015, 02:12 PM   #8
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,087
Blog Entries: 10

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
No problem. Just realizing though that the whole reason you raised the question was because your system was complaining. Yes, there's 2.8'ish Meg left on the /boot partition. That really should not be a problem. I do wonder why it complains. It should not even be mounting /boot except to start up.

If you run a "mount" command, just that word from the terminal, does it show that /dev/sda2 is mounted anywhere? If mounted, at the very least it should be read-only "ro". Once again I do wonder why the system is complaining...
 
Old 11-03-2015, 03:02 PM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
It may cause a problem the next time he updates his kernel. If it tries to keep the older ones or if the new one is a few MB bigger than the one it removes, it'll cause trouble.
 
Old 11-03-2015, 05:12 PM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Ubuntu doesn't or doesn't always remove old kernels and people who have a separate boot partition often see this problem and have to manually remove older kernels. Lots of posts about this problem at the various Ubuntu forums. Posting the link I forgot in my earlier post.

http://ubuntuforums.org/showthread.php?t=2240697
 
Old 11-04-2015, 05:54 AM   #11
Mike Fisher
LQ Newbie
 
Registered: Nov 2015
Location: Portugal
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thumbs up

Thanks all,

after following the link to the UBUNTU forum supplied by yancek (thanks) forum I executed the instruction

sudo apt-get autoremove

this freed up loads of space (presumably redundant old kernel stuff).

I then restarted and voila! no warnings so problem solved.

It is very comforting to know how helpful people want to be.

Much obliged.

Mike
 
Old 11-04-2015, 08:24 AM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
You might want to bookmark that page or make a note of the command(s) as it is likely to happen again if you are doing regular updates of kernels. In some cases, a separate boot partition is useful or necessary but for the average user, it's not anymore.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Software to prune empty space for disk image. Weapon S Linux - Software 1 12-14-2013 04:18 PM
[SOLVED] how to prune ubuntu 12.04 arnold.kang Linux - Desktop 2 07-29-2013 07:33 AM
Full disk encryption on boot partition paul_mat Linux - Security 13 03-12-2008 03:11 AM
My disk became too full and wouldn't boot....I reinstalled..what can to do next time mikeymagic Linux - Newbie 4 04-11-2004 12:13 AM
I need a full root/boot disk with all utilities, can anybody help? gbolly_bolly Linux - Software 3 04-25-2002 10:00 AM


All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration