View previous topic :: View next topic |
Author |
Message |
DEC-Objectice n00b
Joined: 26 May 2013 Posts: 35 Location: New York
|
Posted: Mon Jun 17, 2013 6:37 pm Post subject: Copying Kernel to /boot = No space left on device |
|
|
Hey guys..
So i'm back with a strange dilema...
When I try to copy the kernel: ( i.e. cp arch/x86/boot/bzImage /boot/kernel-3.8.13-gentoo )
I get;
cp failed to extend ' /boot/kernel-3.8.13....: No space left on device
Exiting Chroot so I can #df -i
I get
Filesystem---------------------------Inodes------------IUsed--------IFree----IUse%-----Mounted on
rootfs------------------------------110651------------7483---------103168------7%-------/
udev-------------------------------110140-------------502---------109638------1%-------/dev
/dev/sr0----------------------------------0----------------0---------------0-------__--------/mnt/cdrom
/dev/loop0--------------------------36514----------36514---------------0-----100%------/mnt/livecd
/dev/sr0----------------------------------0----------------0---------------0-------__--------/mnt/cdrom
tmpfs-------------------------------110651------------478---------110173--------1%-----/run
shm--------------------------------110651----------------1---------110650--------1%-----/dev/shm
tmpfs-------------------------------110651--------------1----------110650--------1%-----/mnt/livecd/lib/firmware
tmpfs-------------------------------110651--------------1----------110650--------1%-----/mnt/livecd/usr/firmware
/dev/sda3------------------------7299072--------262916--------7036156--------4%-----/mnt/gentoo
/dev/sda1----------------------------7808-----------5306------------2502--------68%-----/mnt/gentoo/boot
What am I missing here?...
Thanks in advance.. _________________ Superiority is achieved through Transparency |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Mon Jun 17, 2013 6:43 pm Post subject: |
|
|
DEC-Objectice,
You don't say how big /boot is or what filesystem it uses.
Maybe its really full ?
What does df show, as the root user?
What takes up 5306 inodes on /boot? Code: | $ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 7776 39 7737 1% /boot |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
DEC-Objectice n00b
Joined: 26 May 2013 Posts: 35 Location: New York
|
Posted: Mon Jun 17, 2013 7:00 pm Post subject: |
|
|
NeddySeagoon wrote: | DEC-Objectice,
You don't say how big /boot is or what filesystem it uses.
Maybe its really full ?
What does df show, as the root user?
What takes up 5306 inodes on /boot? Code: | $ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 7776 39 7737 1% /boot |
|
Hello Neddy,
When I type in #df -i at root
I ge the same report.. as mentioned in my first posting....
when i change directiory ( i.e. # cd /mnt/gentoo/boot ) an ( # ls ) I get
bin boot dev etc home kernel-3.8-13-gentoo lib loost+found media mnt opt ... ( etc other files)
I dont see anything that could be taking up space except the Kernel file...
your thoughts... _________________ Superiority is achieved through Transparency |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Jun 17, 2013 7:06 pm Post subject: |
|
|
Looks like you mistakenly unpacked a stage3 in there. You can safely clean everything out and then just copy your kernel.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
DEC-Objectice n00b
Joined: 26 May 2013 Posts: 35 Location: New York
|
Posted: Mon Jun 17, 2013 7:09 pm Post subject: |
|
|
John R. Graham wrote: | Looks like you mistakenly unpacked a stage3 in there. You can safely clean everything out and then just copy your kernel.
- John |
What would be the easiest way to do that... _________________ Superiority is achieved through Transparency |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Jun 17, 2013 7:23 pm Post subject: |
|
|
First, are you in the chroot?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1014
|
Posted: Mon Jun 17, 2013 8:00 pm Post subject: |
|
|
Code: | cp arch/x86/boot/bzImage /boot/kernel-3.8.13-gentoo |
as you can see you're copying bzImage to the /boot live not /mnt/gentoo/boot outside your chroot or are you chrooted ?
wrong path
Last edited by sabayonino on Mon Jun 17, 2013 8:03 pm; edited 1 time in total |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Jun 17, 2013 8:02 pm Post subject: |
|
|
Not if he's in the chroot, which is why I asked.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
DEC-Objectice n00b
Joined: 26 May 2013 Posts: 35 Location: New York
|
Posted: Mon Jun 17, 2013 8:21 pm Post subject: |
|
|
John R. Graham wrote: | Not if he's in the chroot, which is why I asked.
- John |
yes I am... ( (chroot) livecd linux # cp arch/x86/boot/bzImage /boot/kernel-3.8.13-gentoo )
tried previous recommendation, didn't work..
same issue _________________ Superiority is achieved through Transparency |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Jun 17, 2013 8:33 pm Post subject: |
|
|
Okay, if you're sure you're in the chroot, doThen, report the output of- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
DEC-Objectice n00b
Joined: 26 May 2013 Posts: 35 Location: New York
|
Posted: Mon Jun 17, 2013 8:38 pm Post subject: |
|
|
John R. Graham wrote: | Okay, if you're sure you're in the chroot, doThen, report the output of- John |
Hey John,
Thanks for the help....
in (chroot) df -h returns " cannot read table of mounted systems"
in (boot #) I get the same results as my first post.... _________________ Superiority is achieved through Transparency |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Jun 18, 2013 10:48 am Post subject: |
|
|
All right. Something more abstruse is going on. Exit the chroot and report the mounted filesystems:- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
DEC-Objectice n00b
Joined: 26 May 2013 Posts: 35 Location: New York
|
Posted: Tue Jun 18, 2013 6:06 pm Post subject: |
|
|
John R. Graham wrote: | All right. Something more abstruse is going on. Exit the chroot and report the mounted filesystems:- John |
Sorry for the late reply...
livecd gentoo # mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,nosuid,nodev,noexe,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240,nr_inodes=110140,node=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/dev/sr0 on /mnt/cdrom type iso9660 (ro,relatime)
/dev/loop0 on /mnt/livecd type squashfs (ro,relatime)
/dev/sr0 on /mnt/cdrom type iso9660 (ro,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /mnt/livecd/lib/firmware type tmpfs (rw)
tmpfs on /mnt/livecd/usr/portage type tmpfs (rw)
/dev/sda3 on /mnt/gentoo type ext4 (rw)
/dev/sdda1 on /mnt/gentoo/boot type ext2 (rw)
none on /mnt/gentoo/proc type proc (rw)
/sys on /mnt/gentoo/sys type none (rw,bind,rbind)
/dev on /mnt/gentoo/dev type none (rw,bind,rbind)
While sending this reply I went ahead rebooted my machine and remounted--FYI I'm installing on a 2001-MacBook _________________ Superiority is achieved through Transparency |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Jun 18, 2013 6:51 pm Post subject: |
|
|
Wow. Did you hand type that? Just as an FYI, the SystemRescueCD supports a GUI, a web browser, and the ability to copy & paste. You can also use wgetpaste to upload output to the web so it's easier to transcribe.
Okay, so, now, out of the chroot, what do you see when you run Code: | ls /mnt/gentoo/boot | ?
- John
P.S.: Just confirmed that the wgetpaste program exists on the minimal install CD as well. Non need to hand transcript by hand. _________________ I can confirm that I have received between 0 and 499 National Security Letters.
Last edited by John R. Graham on Tue Jun 18, 2013 7:09 pm; edited 1 time in total |
|
Back to top |
|
|
DEC-Objectice n00b
Joined: 26 May 2013 Posts: 35 Location: New York
|
Posted: Tue Jun 18, 2013 7:09 pm Post subject: |
|
|
John R. Graham wrote: | Wow. Did you hand type that? Just as an FYI, the SystemRescueCD supports a GUI, a web browser, and the ability to copy & paste. You can also use wgetpaste to upload output to the web so it's easier to transcribe.
Okay, so, now, out of the chroot, what do you see when you run Code: | ls /mnt/gentoo/boot | ?
- John |
Yes I did type it... I'm actually installing Gentoo on a laptop... and communicating via my desktop...
If you can provide me with a Howto Link I would appreciate that.. Thanks
your request:
livecd gentoo # ls /mnt/gentoo/boot
bin boot.0800 etc initramfs-genkernel-x86-3.8.13-gentoo lib media opt root sbin tmp var
boot dev home kernel-3.8.13-gentoo lost+found mnt proc run sys usr
_________________ Superiority is achieved through Transparency |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Jun 18, 2013 7:23 pm Post subject: |
|
|
Okay, run Code: | cd /mnt/gentoo/boot
rm -r * | You should be able to rejoin the Handbook install at 6.a. Chrooting.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue Jun 18, 2013 7:28 pm Post subject: |
|
|
DEC-Objectice,
You have untarred a stage3 to your /boot, so it is probably really full.
The safest way out is to remake the filesystem on /dev/sda1 but not on any of your other partitions.
You can ssh into your gentoo install from your desktop.
Outside the chroot, start the sshd daemon Code: | /etc/inid.d/sshd start |
Set the root password
Look at your IP Address.
On you desktop, install a ssh client. Linux will have one, PuTTY is one of many free Windows ones.
On your desktop, do Code: | ssh root@<ip_of_gentoo> |
and give the root password, which you set above, at the prompt. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
DEC-Objectice n00b
Joined: 26 May 2013 Posts: 35 Location: New York
|
Posted: Tue Jun 18, 2013 7:58 pm Post subject: |
|
|
NeddySeagoon wrote: | DEC-Objectice,
You have untarred a stage3 to your /boot, so it is probably really full.
The safest way out is to remake the filesystem on /dev/sda1 but not on any of your other partitions.
You can ssh into your gentoo install from your desktop.
Outside the chroot, start the sshd daemon Code: | /etc/inid.d/sshd start |
Set the root password
Look at your IP Address.
On you desktop, install a ssh client. Linux will have one, PuTTY is one of many free Windows ones.
On your desktop, do Code: | ssh root@<ip_of_gentoo> |
and give the root password, which you set above, at the prompt. |
So I'm clear. what you're suggesting, is that I recreate /dev/sda1 (using parted) instead of deleting the boot directory? ( reason for this, easier?)
Also, I can remote into my laptop (Mac-Book) through my desktop (Mac-mini) using ssh client? Didn't know that was possible at this stage...
I'll experiment...
Thanks _________________ Superiority is achieved through Transparency |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue Jun 18, 2013 8:05 pm Post subject: |
|
|
DEC-Objectice,
In this case, removing all the files does there same thing as mkfs.
You do not need parted - the partition is already correctly created. One way or another, you need to empty it of things that should not be there.
To be pedantic, thats everything except your kernel, which only half installed anyway and you will replace.
So deleting everything in /boot (your /dev/sda1) works.
John and I have proposed two different ways to achieve the same thing. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
DEC-Objectice n00b
Joined: 26 May 2013 Posts: 35 Location: New York
|
Posted: Tue Jun 18, 2013 8:15 pm Post subject: |
|
|
NeddySeagoon wrote: | DEC-Objectice,
In this case, removing all the files does there same thing as mkfs.
You do not need parted - the partition is already correctly created. One way or another, you need to empty it of things that should not be there.
To be pedantic, thats everything except your kernel, which only half installed anyway and you will replace.
So deleting everything in /boot (your /dev/sda1) works.
John and I have proposed two different ways to achieve the same thing. |
Cool got it....
FYI... I tried
# /etc/inid.d/ssd start
-bash No so file or directory....
? _________________ Superiority is achieved through Transparency |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Jun 18, 2013 8:49 pm Post subject: |
|
|
Typos. Code: | /etc/init.d/sshd start | Note that this only works from the install CD prompt, not inside the chroot. Also note that you must set the root password. Both of these steps are in the Handbook.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
DEC-Objectice n00b
Joined: 26 May 2013 Posts: 35 Location: New York
|
Posted: Tue Jun 18, 2013 9:43 pm Post subject: |
|
|
John R. Graham wrote: | Typos. Code: | /etc/init.d/sshd start | Note that this only works from the install CD prompt, not inside the chroot. Also note that you must set the root password. Both of these steps are in the Handbook.
- John |
Ok got it.... WOW so freshing...
Thanks guys...
_________________ Superiority is achieved through Transparency |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Jun 19, 2013 8:14 am Post subject: |
|
|
DEC-Objectice,
Sorry about the typos ... I would have used tab completion but it doesn't work in a post.
I've tried ... many times :) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|