View Single Post

   
  #1 (permalink)  
Old 01-19-2008, 06:39 AM
ANTant@zimage.com
 
Posts: n/a
Default How to make room for / partition to install/upgrade Kernel?

Hi! How can I increase my / partition without reformatting and hosing my
system? I used the default setting (couldn't find a way to set a bigger
partition so I left that way, but now Kernel got too big!) when installing
Debian with Sarge installer back in September 2004.

Here's the log:
# apt-get install kernel-image-2.6.9-1-k7
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
lilo kernel-doc-2.6.9 kernel-source-2.6.9
The following NEW packages will be installed:
kernel-image-2.6.9-1-k7
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.4MB of archives.
After unpacking 45.4MB of additional disk space will be used.
Get:1 http://ftp.debian.org unstable/main kernel-image-2.6.9-1-k7 2.6.9-3
[15.4MB]
Fetched 15.4MB in 2m5s (122kB/s)
Selecting previously deselected package kernel-image-2.6.9-1-k7.
(Reading database ... 100257 files and directories currently installed.)
Unpacking kernel-image-2.6.9-1-k7 (from
..../kernel-image-2.6.9-1-k7_2.6.9-3_i386.deb) ...
Setting up kernel-image-2.6.9-1-k7 (2.6.9-3) ...
mkcramfs: ROM image write failed (wrote 237568 of 4603904 bytes): No space
left on device?
Failed to create initrd image.
dpkg: error processing kernel-image-2.6.9-1-k7 (--configure):
subprocess post-installation script returned error exit status 9
Errors were encountered while processing:
kernel-image-2.6.9-1-k7
E: Sub-process /usr/bin/dpkg returned an error code (1)
ANTian-AXP:/home/ant/download# apt-get install kernel-image-2.6.9-1-k7
ANTian-AXP:/home/ant/download# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 135468 135467 0 100% /
tmpfs 518288 0 518288 0% /dev/shm
/dev/hda8 20121812 3507344 15592336 19% /home
/dev/hda7 369000 8266 341074 3% /tmp
/dev/hda5 4807056 1836572 2726300 41% /usr
/dev/hda6 2885780 224428 2514764 9% /var
/dev/hdb5 5336664 1428984 3636588 29% /storage

I tried to be smart and tried to remove old Kernel:
# apt-get remove kernel-image-2.6.8-1-k7
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
kernel-image-2.6.8-1-k7
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 43.3MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 101980 files and directories currently installed.)
Removing kernel-image-2.6.8-1-k7 ...

You are running a kernel (version 2.6.8-1-k7) and attempting to remove
the same version. This is a potentially disastrous action. Not only
will /boot/vmlinuz-2.6.8-1-k7 be removed, making it impossible to boot
it, (you will have to take action to change your boot loader to boot
a new kernel), it will also remove all modules under the directory
/lib/modules/2.6.8-1-k7. Just having a copy of the kernel image is not
enough, you will have to replace the modules too.

I repeat, this is very dangerous. If at all in doubt, answer
no. If you know exactly what you are doing, and are prepared to
hose your system, then answer Yes.
Remove the running kernel image (not recommended) [No]?

I was too scared to try this so I aborted that plan.

# uname -a
Linux ANTian-AXP 2.6.8-1-k7 #1 Thu Nov 25 04:13:37 UTC 2004 i686 GNU/Linux


How can I increase the partition so I can install the latest greatest
Kernel? This is my Debian workstation box. Please note that I am not a
Linux expert. I just know some ways around in it. Thank you in advance.

--
"Caution is not cowardice; even the ants march armed." --Ugandan Proverb
/\___/\
/ /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx
| |o o| | Ant's Quality Foraged Links: http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
Reply With Quote