[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apparent failure to mount /root during boot of netboot image



Hi Tomas,

On Friday 21 November 2008 12.54:53 tomas@tuxteam.de wrote:
> On Fri, Nov 21, 2008 at 11:46:33AM +0100, Andrew Baumann wrote:
> > Hi folks,
> >
> > I'm trying to build a netboot debian-live image for amd64 systems with a
> > serial console [...]
>
> Hmm Strange. From the error messages down there (e.g. this):
>   > ... cp: cannot create '/root/etc/live.conf': Path does not exist
>
> the directory /root seems missing. In the regular init from initramfs it
>
> is created at the very beginning, right after:
>   > Loading, please wait...
>
> You could boot with the extra kernel parameter "break=top". This lands
> you into the first breakpoint of initramfs. You might check whether
> /root is there.

I tried this, thanks for the hint. /root exists at the beginning, but is 
completely empty. It seems that later parts of the script assume 
subdirectories of /root (such as /root/etc) exist. I tried creating /root/etc 
and continuing, and things seem to work better (see below), but commands that 
depend upon locations such as /root/usr fail.

What is responsible for setting up the directory tree in /root?

Thanks again,
Andrew


[    6.203232] Freeing unused kernel memory: 392k freed                                
Loading, please wait...                                                                
Spawning shell within the initramfs                                                    


BusyBox v1.10.2 (Debian 1:1.10.2-2) built-in shell (ash)
Enter 'help' for a list of built-in commands.           

/bin/sh: can't access tty; job control turned off
(initramfs) mount                                
rootfs on / type rootfs (rw)                     
none on /sys type sysfs (rw,nosuid,nodev,noexec) 
none on /proc type proc (rw,nosuid,nodev,noexec) 
udev on /dev type tmpfs (rw,size=10240k,mode=755)
(initramfs) ls -ld /root                         
drwx------    2 0        0               0 Nov 21 14:31 /root
(initramfs) id                                               
uid=0 gid=0                                                  
(initramfs) ls -la /root
drwx------    2 0        0               0 Nov 21 14:31 .
drwx------   16 0        0               0 Nov 21 14:31 ..
(initramfs) mkdir /root/etc                               
(here I pressed ^D to exit the shell and allow the boot to continue)
(initramfs) Begin: Loading essential drivers ... done.    
Begin: Running /scripts/init-premount ...
(lots of kernel output)
done.                                                                                  
Begin: Mounting root file system ... [   76.373303] ide_generic: please use 
"probe_mask=0x3f" module parameter for probing all legacy ISA IDE ports                           
[   76.386186] ide_generic: I/O resource 0x1F0-0x1F7 not free.
[   76.392228] ide_generic: I/O resource 0x170-0x177 not free.
Begin: Running /scripts/live-premount ... done.
IP-Config: eth0 hardware address 00:e0:81:b1:a7:a8 mtu 1500 DHCP RARP
[   78.197354] RPC: Registered udp transport module.
[   78.207277] RPC: Registered tcp transport module.
IP-Config: eth0 guessed broadcast address 192.168.53.127
IP-Config: eth0 complete (from 192.168.53.66):
 address: 192.168.53.70    broadcast: 192.168.53.127   netmask: 
255.255.255.192
 gateway: 192.168.53.65    dns0     : 192.168.53.66    dns1   : 0.0.0.0
 host   : gruyere
 domain : in.barrelfish.org
 rootserver: 192.168.53.66 rootpath:
 filename  : tftpboot.gruyere
Begin: Trying netboot from 192.168.53.66:/local/debian-live/binary/live ... 
Begin: Trying nfsmount -o nolock -o ro  192.168.53.66:/local/debian-
live/binary/live /live/image ... done.
done.
Begin: Running /scripts/live-bottom ... Begin: Copying config on real root fs 
... done.
Begin: Setting timezone ... chroot: cannot execute debconf-communicate: No 
such file or directory
cp: cannot stat '/root/usr/share/zoneinfo/UTC': No such file or directory
done.
Begin: Moving mount points ... done.
Begin: Setting hostname ... done.
Begin: Adding live session user ... chroot: cannot execute debconf-
communicate: No such file or directory
chroot: cannot execute /usr/bin/env: No such file or directory
chroot: cannot execute debconf-communicate: No such file or directory
grep: /root/etc/passwd: No such file or directory
The default user (user) is not present,
grep: /root/etc/passwd: No such file or directory
no other valid users found, disabling autologin.
done.
Begin: Configuring fstab ... done.
Begin: Setting up locales ... awk: can't open 
'/root/usr/share/i18n/SUPPORTED': No such file or directory
awk: can't open '/root/usr/share/i18n/SUPPORTED': No such file or directory
Warning: Locale 'en_US.UTF-8' is unsupported.
/scripts/live-bottom/14locales: line 1: cannot create 
/root/etc/default/locale: nonexistent directory
chroot: cannot execute /usr/sbin/locale-gen: No such file or directory
done.
Begin: Setting up console keyboard ... chroot: cannot execute 
/usr/sbin/install-keymap: No such file or directory
chroot: cannot execute /usr/bin/debconf-communicate: No such file or directory
chroot: cannot execute /usr/bin/debconf-communicate: No such file or directory
chroot: cannot execute /usr/bin/debconf-communicate: No such file or directory
chroot: cannot execute /usr/bin/debconf-communicate: No such file or directory
done.
Begin: Configuring gnome-panel-data ... done.
Begin: Configuring screensaver ... done.
Begin: Preconfiguring /etc/modules ... done.
Begin: Preconfiguring networking ... /scripts/live-bottom/23networking: line 
44: cannot create /root/etc/network/interfaces: nonexistent directory
cp: cannot create '/root/var/log/': Path does not exist
done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev 
failed: No such file or directory
done.
mount: mounting /sys[   79.479441] Kernel panic - not syncing: Attempted to 
kill init!
 on /root/sys fa


Reply to: