[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Network booting with a disk image ?
From: |
Feng Shuo |
Subject: |
RE: Network booting with a disk image ? |
Date: |
Tue, 2 Dec 2003 09:48:27 +0800 |
You can make NBD connection in 'initrd' and mount the 'nd' block device,
then, just pivot_root:
(An example linuxrc in initrd)
insmod /lib/jbd.o
insmod /lib/ext3.o
insmod /lib/mii.o
insmod /lib/8139too.o 2>/dev/null
insmod /lib/nbd.o
mount -t proc /proc /proc
ifconfig eth0 XX.XX.XX.XX up
nbd-client YY.YY.YY.YY ZZZ /dev/nd0
echo 0x0100 > /proc/sys/kernel/real-root-dev
mount --ro -t ext3 /dev/nd0 /sysroot
pivot_root /sysroot /sysroot/initrd
umount /initrd/proc
I am working with such diskless machine :-).
Feng Shuo
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Daniele Bellucci
Sent: Tuesday, December 02, 2003 2:29 AM
To: Feng Shuo
Cc: address@hidden
Subject: Re: Network booting with a disk image ?
On Mon, Dec 01, 2003 at 12:06:09PM +0800, Feng Shuo wrote:
|NBD (Network Block Device) on linux can make a remote image file (or
|device) as a local block device by TCP. You can use the block device as
|the root of your linux system.
NBD on Linux doesn't work as a root dev!
--
Daniele.
"I could have made money this way, and perhaps amused myself writing
code.
But I knew that at the end of my career, I would look back on years of
building walls to divide people, and feel I had spent my life making the
world a worse place."
Richard
Stallman
_______________________________________________
Bug-grub mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-grub