View previous topic :: View next topic |
Author |
Message |
jk3us Apprentice
Joined: 14 Mar 2005 Posts: 201 Location: Memphis, TN
|
Posted: Sun Apr 03, 2005 7:02 pm Post subject: reiserfs boot partition full [solved] |
|
|
I just tried to upgrade my kernel using genkernel. Everything went fine, until it tried to copy the kernel image to /boot, where it failed, saying the device was full. I have /boot on its own partition with about 40MB. df says it is 96% full with 38 MB used. However, du says that there is only 5.4 MB used. I ran reiserfsck (for it is a reiserfs partition), and it found no problems. Any ideas on what I can do to get that space useable again?
Last edited by jk3us on Mon Apr 04, 2005 6:39 pm; edited 1 time in total |
|
Back to top |
|
|
Xamindar Veteran
Joined: 03 Oct 2004 Posts: 1155 Location: California
|
Posted: Sun Apr 03, 2005 7:04 pm Post subject: |
|
|
reiserfs has to use 32MB for its journal. So you only have about 8Megs for the kernel. Don't use reiser for /boot, use ext2. |
|
Back to top |
|
|
azlan Guru
Joined: 11 Nov 2002 Posts: 381 Location: Seattle WA USA
|
Posted: Sun Apr 03, 2005 7:09 pm Post subject: |
|
|
I'm sorry but I have to ask the dumb question first. Did you mount /boot ?
Gentoo does not mount boot automatically on bootup so the unmounted pointer to boot would fill up pretty darn quick if it wasn't mounted.
Other than that my only suggestion would be to reformat the partition. I usually use ext2 for my boot partition its old school low level and fast. Plus it's built in to every kernel so if you screw up and forget to build in filesystem support you will still be able to boot up. _________________ there is no crazy, only violet and non violet.. |
|
Back to top |
|
|
Xamindar Veteran
Joined: 03 Oct 2004 Posts: 1155 Location: California
|
Posted: Sun Apr 03, 2005 7:11 pm Post subject: |
|
|
umm, if /boot wasn't mounted then he would have plenty of space as it would just be on the main partition.
edit: oh, by the way, we have same post count. |
|
Back to top |
|
|
azlan Guru
Joined: 11 Nov 2002 Posts: 381 Location: Seattle WA USA
|
Posted: Sun Apr 03, 2005 9:10 pm Post subject: |
|
|
Ya, your right. For some reason I was thinking of /boot as a pointer not a directory, which it is.
Still you could try using dd to move the data over, reformat the partition and try again... _________________ there is no crazy, only violet and non violet.. |
|
Back to top |
|
|
jk3us Apprentice
Joined: 14 Mar 2005 Posts: 201 Location: Memphis, TN
|
Posted: Sun Apr 03, 2005 10:19 pm Post subject: confirm |
|
|
Then, before I screw everything up, can someone confirm that this should work.... any additional suggestions would be nice.
1) tar up /boot
# tar cf /somewhere/boot.tar /boot
2) reformat with ext2
# mke2fs /dev/sda1
3) restore directory structure
# cd /boot
# tar xf /somewhere/boot.tar |
|
Back to top |
|
|
phsdv Guru
Joined: 13 Mar 2005 Posts: 372 Location: Europe
|
Posted: Mon Apr 04, 2005 4:40 am Post subject: Re: confirm |
|
|
jk3us wrote: | Then, before I screw everything up, can someone confirm that this should work.... any additional suggestions would be nice.
1) tar up /boot
# tar cf /somewhere/boot.tar /boot
2) reformat with ext2
# mke2fs /dev/sda1
3) restore directory structure
# cd /boot
# tar xf /somewhere/boot.tar |
Sounds about right, if /dev/sda1 is mounted as /boot.
Maybe it is good to umount before and remount the partion after the formating. Also you might want to rerun grub or lilo afterwards to make sure they can find the files again. I am not sure it is needed, but it definitely won't hurt. |
|
Back to top |
|
|
Frodg l33t
Joined: 11 Feb 2004 Posts: 761
|
Posted: Mon Apr 04, 2005 4:45 am Post subject: |
|
|
You will need to change your fstab from reiserfs to ext2 or it will not boot properly _________________ Aerosolo ergo sum - I spray therefore I am
Gentoo - Registered Linux User # 361400 |
|
Back to top |
|
|
jk3us Apprentice
Joined: 14 Mar 2005 Posts: 201 Location: Memphis, TN
|
Posted: Mon Apr 04, 2005 6:36 pm Post subject: now what? |
|
|
I successfully converted /boot to ext2, and go the machine to reboot (after figuring out that "notail" is a reiserfs mount option and had to be removed), now I'm having problems with grub and my new kernel, if I can't figure that one out soon, I'll start a new thread. Thanks for help everyone! |
|
Back to top |
|
|
|