Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Copying Kernel to /boot = No space left on device
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
DEC-Objectice
n00b
n00b


Joined: 26 May 2013
Posts: 35
Location: New York

PostPosted: Mon Jun 17, 2013 6:37 pm    Post subject: Copying Kernel to /boot = No space left on device Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32091
Location: 56N 3W

PostPosted: Mon Jun 17, 2013 6:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
DEC-Objectice
n00b
n00b


Joined: 26 May 2013
Posts: 35
Location: New York

PostPosted: Mon Jun 17, 2013 7:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7835
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Jun 17, 2013 7:06 pm    Post subject: Reply with quote

Looks like you mistakenly unpacked a stage3 in there. You can safely clean everything out and then just copy your kernel.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
DEC-Objectice
n00b
n00b


Joined: 26 May 2013
Posts: 35
Location: New York

PostPosted: Mon Jun 17, 2013 7:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7835
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Jun 17, 2013 7:23 pm    Post subject: Reply with quote

First, are you in the chroot?

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
sabayonino
Apprentice
Apprentice


Joined: 03 Jan 2012
Posts: 267

PostPosted: Mon Jun 17, 2013 8:00 pm    Post subject: Reply with quote

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 :roll:


Last edited by sabayonino on Mon Jun 17, 2013 8:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7835
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Jun 17, 2013 8:02 pm    Post subject: Reply with quote

Not if he's in the chroot, which is why I asked. :wink:

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
DEC-Objectice
n00b
n00b


Joined: 26 May 2013
Posts: 35
Location: New York

PostPosted: Mon Jun 17, 2013 8:21 pm    Post subject: Reply with quote

John R. Graham wrote:
Not if he's in the chroot, which is why I asked. :wink:

- 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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7835
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Jun 17, 2013 8:33 pm    Post subject: Reply with quote

Okay, if you're sure you're in the chroot, do
Code:
cd /boot
rm -r *
Then, report the output of
Code:
df -h
- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
DEC-Objectice
n00b
n00b


Joined: 26 May 2013
Posts: 35
Location: New York

PostPosted: Mon Jun 17, 2013 8:38 pm    Post subject: Reply with quote

John R. Graham wrote:
Okay, if you're sure you're in the chroot, do
Code:
cd /boot
rm -r *
Then, report the output of
Code:
df -h
- 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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7835
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Jun 18, 2013 10:48 am    Post subject: Reply with quote

All right. Something more abstruse is going on. Exit the chroot and report the mounted filesystems:
Code:
exit
mount
- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
DEC-Objectice
n00b
n00b


Joined: 26 May 2013
Posts: 35
Location: New York

PostPosted: Tue Jun 18, 2013 6:06 pm    Post subject: Reply with quote

John R. Graham wrote:
All right. Something more abstruse is going on. Exit the chroot and report the mounted filesystems:
Code:
exit
mount
- 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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7835
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Jun 18, 2013 6:51 pm    Post subject: Reply with quote

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.
_________________
This space intentionally left blank.


Last edited by John R. Graham on Tue Jun 18, 2013 7:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
DEC-Objectice
n00b
n00b


Joined: 26 May 2013
Posts: 35
Location: New York

PostPosted: Tue Jun 18, 2013 7:09 pm    Post subject: Reply with quote

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


:D 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

8O
_________________
Superiority is achieved through Transparency
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7835
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Jun 18, 2013 7:23 pm    Post subject: Reply with quote

Okay, run
Code:
cd /mnt/gentoo/boot
rm -r *
You should be able to rejoin the Handbook install at 6.a. Chrooting.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32091
Location: 56N 3W

PostPosted: Tue Jun 18, 2013 7:28 pm    Post subject: Reply with quote

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
Code:
passwd

Look at your IP Address.
Code:
 ifconfig


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
View user's profile Send private message
DEC-Objectice
n00b
n00b


Joined: 26 May 2013
Posts: 35
Location: New York

PostPosted: Tue Jun 18, 2013 7:58 pm    Post subject: Reply with quote

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
Code:
passwd

Look at your IP Address.
Code:
 ifconfig


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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32091
Location: 56N 3W

PostPosted: Tue Jun 18, 2013 8:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
DEC-Objectice
n00b
n00b


Joined: 26 May 2013
Posts: 35
Location: New York

PostPosted: Tue Jun 18, 2013 8:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7835
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Jun 18, 2013 8:49 pm    Post subject: Reply with quote

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. :wink:

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
DEC-Objectice
n00b
n00b


Joined: 26 May 2013
Posts: 35
Location: New York

PostPosted: Tue Jun 18, 2013 9:43 pm    Post subject: Reply with quote

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. :wink:

- John


Ok got it.... WOW so freshing...

Thanks guys...
:D
_________________
Superiority is achieved through Transparency
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32091
Location: 56N 3W

PostPosted: Wed Jun 19, 2013 8:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum