Do I need to build a new initramfs?
 what changes do I need to make? 

>From some howto from xen I think I know what to do:

cp -a ./lib/modules/*  /lib/modules/
depmod  2.6.18.1-bb2

cd /boot/
mkinitramfs -o initrd.img-2.6.18.1-bb2 2.6.18.1-bb2

The initrd.img is now on the host file system.

./vmlinux-2.6.18.1-bb2
       initrd=/boot/initrd.img-2.6.18.1-bb2\
        umid=base6.10 \
        con=pts  con0=fd:0,fd:1\
        ubd0=b.img \
   
The initrd file  is used in the boot process. 
I have also tried putting it in the image file. 

Thank you for your time,

Nicholas A. Schembri 
State College PA USA


----- Original Message ----
From: Adrian Phillips <[EMAIL PROTECTED]>
To: n schembr <[EMAIL PROTECTED]>
Cc: user-mode-linux-user@lists.sourceforge.net
Sent: Tuesday, January 9, 2007 1:03:39 AM
Subject: Re: [uml-user] Fw:  Booting ubuntu 6.10 from a physical disk

>>>>> "Nicholas" == n schembr <[EMAIL PROTECTED]> writes:

    Nicholas> Thank you for the info.  I searched for your name and
    Nicholas> could not find a how to.
    >> From looking at howto's and the Book "User Mode Linux", I know
    >> that I can use any block device to boot from.

    Nicholas> I have a clean Install of ubuntu 6.10 Edgy on /dev/sde1.
    Nicholas> I pulled the drive from a working system.

    Nicholas> filesystem) readonly.  Warning: unable to open an
    Nicholas> initial console.

Just guessing here but I wonder whether this has something to do with
not running an initrd ? From initramfs-tools init script :-

  #!/bin/sh

  mkdir /sys
  mkdir /proc
  mkdir /tmp
  mkdir -p /var/lock
  mount -t sysfs none /sys -onodev,noexec,nosuid
  mount -t proc none /proc -onodev,noexec,nosuid

  # Note that this only becomes /dev on the real filesystem if udev's scripts
  # are used; which they will be, but it's worth pointing out
  tmpfs_size="10M"
  mount -t tmpfs -o size=$tmpfs_size,mode=0755 udev /dev
  > /dev/.initramfs-tools
  mkdir /dev/.initramfs
  mknod /dev/console c 5 1 
  mknod /dev/null c 1 3

Note the /dev/console.

Sincerely,

Adrian Phillips

-- 
Who really wrote the works of William Shakespeare ?
http://www.pbs.org/wgbh/pages/frontline/shakespeare/







-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to