Ubuntu :: Removing Linux Kernel Image
Apr 24, 2011Other than the linux kernel image I am using is it ok to remove the others I have and thus gain more disk space ? I only have a small asus 900 netbook.
View 4 RepliesOther than the linux kernel image I am using is it ok to remove the others I have and thus gain more disk space ? I only have a small asus 900 netbook.
View 4 RepliesI have Ubuntu 10.10 installed on my laptop.Its a dual boot with XP, have been using ubuntu/xp for a while now..Till now i always used to remove older kernel images after ubuntu update, then update grub and do "sudo apt-get autoclean" never had any problem at all.i skipped the second step, i removed the old kernel image and did "Autoclean" on apt-get but forgot to update grub.
Now after i have reboot, when grub loads i can see only 2 "Memtest" lines in grub list and 1 "windows xp" line.the "Linux kernel generic" line is missing. I can boot in xp (have done just that to post this) but since there is no line in grub list to boot into Ubuntu, cant boot in Ubuntu.Is there any option, something i can do at "Grub" to boot into Ubuntu?
I am new and recently almost one month back installed debian linux stable 8.2 came from windows. Today I upgrade my debian stable 8.2 to testing and everything works fine. Just one thing is that I checked kernel and find :
uname -r
4.2.0-1-amd64
dpkg --list | grep linux-image
ii linux-image-3.16.0-4-amd64 3.16.7-ckt11-1+deb8u5 amd64 Linux 3.16 for 64-bit PCs
ii linux-image-4.2.0-1-amd64 4.2.3-2 amd64 Linux 4.2 for 64-bit PCs
ii linux-image-amd64 4.2+68 amd64 Linux for 64-bit PCs (meta-package)
I am first time removing old kernel so cant take risk from searching the solution from google so come here, what and how to remove that includes everything like kernel image and other old kernel files not needed.
One more thing I just realised and saw on details in settings gnome that
Base : Debian GNU/Linux stretch/sid 64-bit
Is this right as it says sid in the line but i just changed my sources.list to testing only and then aptitude upgrade and full-upgrade then just.
's/ARCHTYPE=i386/ARCHTYPE=x86/'If your looking for a kernel image in /usr/src/linux/arch/i386/boot, your not likely to find one.
View 3 Replies View Relatedi use the command to get the infomation of my linux kernel; sudo dpkg --get-selections|grep linux use this cmd to delete the old kernel sudo apt-get remove linux-image-2.6.32-29-generic but i forget --purge that cause zhe following item show like this linux-image-2.6.32-28-generic deinstall
View 1 Replies View RelatedI have downloaded the i386-DVD.iso image and have burned it on a DVD using Nero Express 6, when it boots from the DVD, it give me an error message "Could not find kernel image: Linux" and the boot: prompt after that. I have burned another DVD using Infra Recorder with minimum write speed but with the same problem. I have Ubuntu already installed on the computer.
View 8 Replies View RelatedI've tried ubuntu, and could never get my sound working with that, so I tried fedora and had the exact same problem there. After a few days of trying to figure it out I decided to give up because it was really getting ridiculous, and I just want to go back to windows where things simply work.
Now the problem is that when I boot from the windows XP install disc, it doesnt recognise anything on my harddrive and just gives me the blue screen when I press any key (after showing me the list of partitions on my harddrive, all of which are <UNKNOWN>). I'm not sure what the problem is but it must be something to do with the fact that I have linux installed, so is there any way I can completely remove Fedora and just start fresh with XP?The only 2 options that the XP install disc gives me are 1) Install windows XP (I get blue screen), or 2) Recover windows XP installation (I dont have xp installed anyway).
Likewise, booting from my Fedora install disc only gives me the options of installing or rescuing Fedora, but not the option of removing it.
I have recompiled a few kernels, but all on 32bit systems so not sure if that has anything to do with it.
Running Arch Linux 64bit, most recent version.
Kernel Output:
Code:
My first thoughts was that it might be my grub bootloader configuration, so had a big play around with that but it didn't fix it. Also made sure support was built for filesystems. However almost all that Fstab mounts are ext3 anyway, and certainly the root and /boot are. Now thinking it may be a memory error so will run a check when I shutdown.
i have installed linux (RHEL4) in a PC and have to do the same process for 150 PC's of same configurationIf i copy the image of the first PC(which i have installed)hard disk to other PCs ..will it works?Or I have to install each PC manually?What is the standard process to do this task.
View 1 Replies View RelatedI did the following command while I had my partition mounted and was not able to restart until i pulled the power. sudo dpkg-reconfigure linux-image-2.6.32-21-generic. Everything seems to be working okay now but before I start getting into 10.04 i wanna make sure i just didn't screw anything up.
View 3 Replies View RelatedHow do you create an image of an installed linux system and use it to build other desktops or servers.
View 6 Replies View RelatedI'm trying to run extract-ikconfig because I've mistakenly deleted an old kernel config that I'd like to recover. However, when running the script from the latest (2.6.32.5) tree I run into this error:
Quote:
ERROR: Unable to extract kernel configuration information.
This kernel image may not have the config info.
Coincidentally, this happens with all of my kernel images. Is it a fixable problem? I should really set CONFIG_IKCONFIG_PROC next time..
Debian Wheezy upgraded to Jessie. I can't install my grsec kernel. I did everything exactly like they say on website: [URL] ....
patching: grsecurity-3.0-3.2.66-201502180830.patch and linux-3.2.66 -o.k
then ''make menuconfig'': Configuration Method - Automatic (for virtualbox hosting) -o.k
compiling the kernel: 'fakeroot make deb-pkg' -o.k
and last step, installing new kernel : ''dpkg -i *.deb'' -not o.k
Below is the output from executing command : dpkg -i *.deb which supposed to install 3.2.66-grsec linux-image:
root@debian:/home/userone/Downloads/grsecurity.net/1# ls
grsecurity-3.0-3.2.66-201502180830.patch
linux-3.2.66
linux-firmware-image_3.2.66-grsec-1_amd64.deb
linux-headers-3.2.66-grsec_3.2.66-grsec-1_amd64.deb
[Code] ....
After restarting, old kernel is booting, however from booting menu under advanced GNU/Linux options i can choice 3.2.66-grsec linux-image to boot, unfortunately it 'panics' (kernel panic - not syncing: grsec: halting the system due to suspicious kernel crash caused by root) and only way to turn off the computer is to hold down power button.
I have a a software "Acronis True Image Home".Is it possible to backup CentOS Linux?on Windows do I need to create a bootdisk from Acronis and then boot it up on linux server?I wanted to copy all the files from Server to External USB Hard Drive or via FTP
View 4 Replies View RelatedI am trying to update ALSA drivers which are built-in in the kernel.
I downloaded the latest ALSA drivers 1.0.23 and tried to compile but came with this error (that is the last part of it)
Code:
*** NO PREDEFINED KERNEL COMPILER IS DETECTED
*** Assuming the same compiler is used with the current system compiler.
[Code]....
Is there a way to remove the ALSA driver from the kernel so I can configure and compile the new ALSA driver ?
How do you go about removing old kernel from other distros from the grub menu. For example I have lucid and ubuntu studio installed. Lucid controls the grub2. So how would I remove the old kernel out of the ubuntu studio?
View 9 Replies View RelatedHere's how to always have only the latest kernel version in your grub:
Code:
sudo gedit /etc/grub.d/10_linux
Find these lines:
Code:
list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
done`
And change it with this:
Code:
for ver in /boot/vmlinu[xz]-* ; do
list="$ver"
done
Notice two differences.
1. There's no ` before "for" and after "done" keywords.
2. There's no list= before "for"
If you want to change the name of entry, scroll down to the end of the file and find last two occurrences of:
Code:
linux_entry
${OS} stands for Ubuntu and ${version} stands for your kernel version. I changed this into:
Code:
linux_entry "${OS} 9.10 Karmic Koala"
You can use your own imagination. If you want to have specific name for your Windows entry, in /boot/grub/grub.cfg copy everything between:
Code:
### BEGIN /etc/grub.d/30_os-prober ###
and
Code:
### END /etc/grub.d/30_os-prober ###
paste it in
/etc/grub.d/40_custom
Change the text between double quotes right after menu entry. (For example, my 40_custom looks like this now:
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the menu entries you want to add after this comment. Be careful not to change the 'exec tail' line above.
menuentry "Windows 7" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set bcdc24dddc249424
chainloader +1
}
)
and make 30_os-prober not executable:
Code:
sudo chmod -x 30_os-prober
If you want to remove recovery mode entry, just uncomment this line in /etc/default/grub:
Code:
#GRUB_DISABLE_LINUX_RECOVERY="true"
PS Don't forget to run
Code:
sudo update-grub
After you finish editing everything! And check in /boot/grub/grub.cfg if everything is ok!
I have winxp and ubuntu 10.04 dualboot. They were working ok. Today I removed old *21 kernel image and headers so grub updated the confs. That's all I did that could cause the win no longer boot. It starts booting, the screen goes black and the PC reboots. I tried safe mode, it started to load some dlls as it usually shows in safe mode but then still reboot.
Code:
$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[Code]....
I have looked for existing threads on this issue, but found no matches, so I am starting a new one.I first installed Ubuntu 9.04 on my laptop from a bought CD last year. When I later installed the kernel updtates with the Update Manager, I noticed the the list of versions growing when I booted up. Then something horrible happened. After installing maybe the third or fourth kernel update, I couldn't boot into Ubuntu, it failed every time. After that I left Ubuntu broken on my laptop for a while.I have now reinstalled from the CD again However, I am now very wary when it comes to installing even the important security updates, never mind the recommended ones! I prefer to keep it simple, because I don't want to do any more reinstalls for a while. So far I have just one kernel headers update on the boot list, and I am trying to figure out how to remove the previous one. I do not see the point in having a growing list of them again.
View 9 Replies View RelatedI installed the kernel source RPM to add a patch to a driver kernel module that didn't support my NIC. Now that the patch is part of the official source tree I no longer need the kernel source and I want to delete it. Can I just do rm -rf rpmbuild or do I need to run the reverse of the rpm commands described in Section 1 of [URL].
View 2 Replies View RelatedHow do I remove old kernels from the Fedora grub menu? I have three currently and I want to keep only one old version to fall back if I have any problems with the current one. When I was using Ubuntu, I had Ubuntu Tweak which had an option to clean up old kernels from the grub menu .. is there something similar for Fedora?
I'm using Fedora 15 32-bit with Gnome 3.
In trying to get something else working, I installed a newer version of the kernel from backports (I'm on 2.6.26 lenny and the backport kernel is 2.6.32). That failed, so I want to remove the backport kernel completely.
I tried:
Code:
and got:
Code:
Accept this solution? [Y/n/q/?]
I don't really understand how these metapackages work and I don't want to accidentally remove my currently-working kernel.
What's the correct way to remove all packages related to the backports kernel and leave the existing lenny ones alone?
Update manager downloaded and installed latest kernel (Ubuntu, Linux 2.6.31 -16 -generic). When I tried to restart I get the message { 1.661235}Kernel panic - not syncing: VFS: unable to mount root fs on unknown - block(8,38). Everything works fine on previous update.
View 1 Replies View RelatedI read in some website and thought of giving a shot at the pae enabled kernel as i was having 6GB of RAM available in my system. I couldn't use 64bit system because i have a lot of applications that are not available in 64bit. I use a few customised software (From my office corporate) they are 32bit too.
Here is what i did..
sudo install linux-generic-pae
It installed a few headers and packages additionally required.
and i did a reboot.
[Code]...
An alternate solution to use all the 6GB is also welcome... using the current pae enabled kernel. do i need to install any additiona drivers..While i try to load Xwindows.. I get the following error.A long error report is generated and at the end "No Xwindows system installed.."
If the moderators permit (because it's a security issue), the security vulnerability was shown in the ubuntu 10.04(64 bits) first by VSR, a security research firm. Now kindly view the link i will give and suggest what to do! I have the same version ,but the 32 bits(Intel).
View 2 Replies View RelatedI have recently been getting into kernel development and was wondering whether the Linux kernel or BSD kernel would be easiest for newbies (such as myself). Does anyone know? I am really considering BSD because it seems to me to have the best documentation.
View 2 Replies View RelatedI am an old Debian user, ho just reinstalled it again to see how it evolved since my las version (3.2). I am sharing it with Arch Linux, And decided to let bot of them. I am using GDM compiled and configured in Arch, and removed GDM2 from Debian (i just like the easy menu.list from the old GDM). The problem is that when i update the kernel, it didn't fing GDM and drops an error message. I tried removing the distro-preconfigured Kernels, as i compiled my own 3.0.0-rc2 Kerenel, but i cant delete the previous ones. Now everytime i do an install or uptgrade, apt-get drops wastes some time, and drops an error message:
[code]...
What can i do? i googled some similar errors, but where just messed up mirror.lists, or similar, i know it isnt the cause of fail.
I had the 180.xxx nvidia drivers on my FC10 setup.I installed the 185.xxx and am running into issues. It gives me the fatal server error: no screens found message. Before that it says that the nvidia kernel module is 180.xxx and the driver component has 185.xxx. I can't seem to figure out how to uninstall the previous module to make this work. I removed the yum kmod nvidia. I'm running this using sh nvidia.185xxx.xxxx.run . The weird thing is that it sometimes would work but then I would restart and it would break again.
Thanks in advance,
I just did an upgrade and it included the kernel. As time goes by, I will be stuck with a lot of kernels to choose from, and lower disk space. How do I remove an older kernel and everything it's related to it without breaking stuff?
View 8 Replies View RelatedAs it written here [URL]. Fedora 13 does not include the kernel-source package provided by older versions, since only the kernel-devel package is required now to build external modules. Linux kernel, does not belong to fedora. Fedora is derivative work isn't it? Or you rewrite all kernel in fedora 13, and fedora is not linux any more? According to GPL, derivative works must be licensed as GPL. And so you must provide ALL sources for free. Including kernel sources. So, where can I get kernel sources for fedora 13? Or I'm wrong, and you shouldn't provide them if you wont?
View 4 Replies View Related