Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You are currently using 175Mb in /boot. That's quite a bit. Do you have a bunch of kernels stored there? Chances are you could free up a lot of that /boot space by deleting things you don't need there. Much easier (and safer) than any resizing you might be considering, Make sure you know WHICH kernels you can safely delete - you don't want to delete the one you are actively booting! I only have one kernel stored on this particular machine I am on right now, and my usage in /boot is only 28Mb.
You have four kernels there. Unless you have a special need for all of them, only one is really necessary. If you remove three of them, then do the update that you were initially attempting, that update will put a second kernel under /boot. You should have the space you need for that after deleting three, but be aware that you will once again have two after the update.
So we know which kernel you system is configured to boot (we don't want to delete that one!), post the contents of /boot/grub/menu.lst. This file may be called /boot/grub/grub.cfg on your system, or menu.lst may be a symlink to grub.cfg. Whatever ... post the contents of menu.lst if it exists, if not, post the contents of grub.cfg.
Also post the output of "uname -a". That will show which kernel is actually running. This would normally be the same kernel that is configured in menu.lst, but maybe not ... if the configured kernel couldn't boot and it's falling back to some other kernel.
I would recommend using a Parted Magic live CD for resizing partitions: http://partedmagic.com/
I have used Parted Magic many times to partition hard drives and resize partitions and it works very well in my experience. It has an easy to use graphical interface also.
from the image in the first post
If this was MY drive
i would back up important data
and repartition and reinstall
200 meg for /boot might be big , or NOT
200 M is about normal size
35 gig for / if there is enough drive space that is fine
but you do NOT need separate partitions /tmp and /opt
Also there is that 3.91 gig "sda8" unknown partition just taking up space
i would use something like this
with sda2 and Extended there is sda3,4 MISSING -- not good
so back up data and reformat sda2 to ext4 , reinstall
sda3 /boot -- 200 meg
sda4 /home -- 20 Gig ( and that is BIG, 15gig is an average size )
sda5 SWAP -- 1 gig to 4 gig if you have more that say 12 gig ram you can opt out of a swap partition, maybe
sda6 / -- the rest of the drive
... but you do NOT need separate partitions /tmp and /opt ...
How do you know that? When we don't know the environment this system is used in? The OP has not specified how this system is used, what it is used for, etc. It may not be an individual users desktop. At home on my individual user desktop I generally set up just one / partition and swap, but at work on production systems I often set up separate /, /boot, /tmp, /var, /opt, /usr, /usr/tmp, /home, /whatever and those are all typically built on LVM2, so I can resize them easily as needed.
Personally i wouldn't bother resizing and would stick to haertig's advice
1. Run 'uname -a' to get the version of kernel you are actually running (it will be the latest one anyway). Note the number.
2. Delete those unused kernels - these are packages, so don't just 'rm' in /boot. Fire up Synaptic or something, search for 'linux-image' and delete all but the one you use (that's the one with the number).
It is unusual to have /opt and /tmp on separate partitions, but since you have quite a lot of room there, why bother.
3.8.0-25-generic #37-Ubuntu SMP
synaptic does not come up for me. is there another one?
also, where would these other kernels come from? I don't boot to anything else, besides win7. i know when the grub comes up - there are 1/2 other linux options - would these be those?