View previous topic :: View next topic |
Author |
Message |
rpil Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/11112312814864ae652e0a2.jpg)
Joined: 23 May 2008 Posts: 314
|
Posted: Tue Feb 23, 2010 8:39 pm Post subject: Upgrade Problem [SOLVED] |
|
|
Today, I' ve downloaded the kernel sources for 2.6.31-r10 (I have 2.6.31-r6). After following the known procedure
Code: | $ eselect kernel list |
Code: |
$ eselect kernel set 3 |
Code: |
$ cd /usr/src/linux/
$ make menuconfig |
I gave
Code: | make && make_modules install install |
but the result was:
Code: | DEPMOD 2.6.31-gentoo-r10
sh /usr/src/linux-2.6.31-gentoo-r10/arch/x86/boot/install.sh 2.6.31-gentoo-r10 arch/x86/boot/bzImage \
System.map "/boot"
cat: write error: No space left on device
make[1]: *** [install] Error 1
make: *** [install] Error 2
|
Can't find free space in /boot?
I erased 2.6.30-r8 files, but still the same. How can I make bigger my /boot and finish the installation/upgrade of my new kernel?
My df -h:
Code: | gentoo drphibes # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 229G 101G 117G 47% /
udev 10M 168K 9.9M 2% /dev
/dev/sda1 31M 31M 0 100% /boot
shm 502M 0 502M 0% /dev/shm
gentoo drphibes # |
Last edited by rpil on Wed Feb 24, 2010 11:03 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Dr.Willy Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 15 Jul 2007 Posts: 547 Location: NRW, Germany
|
Posted: Tue Feb 23, 2010 8:59 pm Post subject: |
|
|
Unless you have like ... 6 kernel images on /boot you shouldn't run out of space ... so
plz |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rpil Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/11112312814864ae652e0a2.jpg)
Joined: 23 May 2008 Posts: 314
|
Posted: Tue Feb 23, 2010 9:02 pm Post subject: |
|
|
Code: | gentoo drphibes # ls -lh /boot
total 11M
-rw-r--r-- 1 root root 2.0M Nov 28 11:40 System.map-genkernel-x86-2.6.31-gentoo-r6
lrwxrwxrwx 1 root root 1 Oct 25 15:47 boot -> .
drwxr-xr-x 2 root root 1.0K Nov 28 13:27 grub
-rw-r--r-- 1 root root 1.3M Nov 28 13:27 initramfs-genkernel-x86-2.6.31-gentoo-r6
-rw-r--r-- 1 root root 4.8M Nov 28 11:40 kernel-genkernel-x86-2.6.31-gentoo-r6
drwx------ 2 root root 12K Oct 25 15:13 lost+found
-rw-r--r-- 1 root root 0 Feb 23 20:42 vmlinuz-2.6.31-gentoo-r10
-rw-r--r-- 1 root root 2.6M Oct 26 15:48 vmlinuz-new
gentoo drphibes #
|
So? ![Confused :?](images/smiles/icon_confused.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rpil Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/11112312814864ae652e0a2.jpg)
Joined: 23 May 2008 Posts: 314
|
Posted: Tue Feb 23, 2010 9:05 pm Post subject: |
|
|
Code: | title=Gentoo Linux (2.6.31-gentoo-r6)
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.31-gentoo-r6 root=/dev/ram0 init=/linuxrc$
initrd /boot/initramfs-genkernel-x86-2.6.31-gentoo-r6 |
This is my /boot/grub/grub.conf right now. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Dont Panic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/11879286554c45f5f52a008.jpg)
Joined: 20 Jun 2007 Posts: 322 Location: SouthEast U.S.A.
|
Posted: Tue Feb 23, 2010 9:17 pm Post subject: |
|
|
Quote: | /dev/sda1 31M 31M 0 100% /boot |
Quote: | gentoo drphibes # ls -lh /boot
total 11M |
Well, 31M is kind of small for a boot partition. But, as you say, something isn't adding up right here.
Your df says that 31M is occupied, but your ls is only showing 11M of files.
What kind of file system do you have on /boot?
Is there something laying around the lost+found or grub directory (maybe a 'du /boot' might provide insight)?
My /boot/grub directory is only 500K. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
carcajou Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1847818534bd7454c4c054.jpg)
Joined: 10 Jun 2008 Posts: 248
|
Posted: Tue Feb 23, 2010 9:22 pm Post subject: |
|
|
I guess /boot is ext2 or ext3 and problem is probably caused by inode number. There are already topics with similar problems on forums. It's probably the best to backup /boot, then reformat it with proper options and restore it's content.
Give us the output of:
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rpil Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/11112312814864ae652e0a2.jpg)
Joined: 23 May 2008 Posts: 314
|
Posted: Tue Feb 23, 2010 9:33 pm Post subject: |
|
|
My df -i
Code: | drphibes@gentoo ~ $ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda3 15228928 688984 14539944 5% /
udev 128423 2386 126037 2% /dev
/dev/sda1 8032 58 7974 1% /boot
shm 128423 1 128422 1% /dev/shm
drphibes@gentoo ~ $
|
Last edited by rpil on Tue Feb 23, 2010 9:36 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rpil Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/11112312814864ae652e0a2.jpg)
Joined: 23 May 2008 Posts: 314
|
Posted: Tue Feb 23, 2010 9:36 pm Post subject: |
|
|
And my du /boot:
Code: | gentoo drphibes # du /boot
12 /boot/lost+found
447 /boot/grub
6 /boot/.Trash-0/info
19434 /boot/.Trash-0/files
19441 /boot/.Trash-0
30701 /boot
gentoo drphibes # |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
carcajou Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1847818534bd7454c4c054.jpg)
Joined: 10 Jun 2008 Posts: 248
|
Posted: Tue Feb 23, 2010 9:41 pm Post subject: |
|
|
Now it's quite obvious... Extra baggage is caused by .Trash-0 directory and it's contents. I guess this should be safe (check the contents first of course):
Code: | # rm -fr /boot/.Trash-0/files/* |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rpil Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/11112312814864ae652e0a2.jpg)
Joined: 23 May 2008 Posts: 314
|
Posted: Tue Feb 23, 2010 9:47 pm Post subject: |
|
|
It contains the previous kernel's files! That's why is so big.
So, I erase it! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rpil Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/11112312814864ae652e0a2.jpg)
Joined: 23 May 2008 Posts: 314
|
Posted: Tue Feb 23, 2010 9:50 pm Post subject: |
|
|
Code: | gentoo drphibes # du /boot
12 /boot/lost+found
447 /boot/grub
6 /boot/.Trash-0/info
1 /boot/.Trash-0/files
8 /boot/.Trash-0
11268 /boot
gentoo drphibes # |
Do you think it's ok now? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
carcajou Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1847818534bd7454c4c054.jpg)
Joined: 10 Jun 2008 Posts: 248
|
Posted: Tue Feb 23, 2010 10:01 pm Post subject: |
|
|
Well yeah, you have ~19 MB of free space left on boot. ![Wink :wink:](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rpil Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/11112312814864ae652e0a2.jpg)
Joined: 23 May 2008 Posts: 314
|
Posted: Wed Feb 24, 2010 6:14 am Post subject: |
|
|
Thanks, kukibl! ![Wink :wink:](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|