hey ive been looking round and found that with vmlinuz initrd you can boot iscsi using open iscsi and a linux iscsi target
now i want to instead get the initrd to load samba and mount a network file share as a virtual hard-disc.
ok so we have an init file in the initrd like:
...
echo "Loading tg3.ko module"
insmod /lib/modules/tg3.ko
##ISCSI modules
echo "Loading scsi_mod.ko module"
insmod /lib/modules/scsi_mod.ko
echo "Loading sd_mod.ko module"
insmod /lib/modules/sd_mod.ko
echo "Loading scsi_transport_iscsi.ko module"
insmod /lib/modules/scsi_transport_iscsi.ko
echo "Loading libiscsi.ko module"
insmod /lib/modules/libiscsi.ko
echo "Loading iscsi_tcp.ko module"
insmod /lib/modules/iscsi_tcp.ko
...
# Mount /proc and /sys
echo Mounting /proc filesystem
mount -t proc /proc /proc
echo Mounting sysfs
mount -t sysfs /sys /sys
...
# Bring the network interface up
ifconfig eth0 ${ISCSI_I_IP%/*} netmask ${ISCSI_I_IP#*/}
# Connect the iSCSI drive
iscsistart -i "$ISCSI_I" -t "$ISCSI_T" -g 1 -a $ISCSI_A
mount -o ro /dev/sda2 /sysroot
echo Switching to new root
cd /sysroot
#exec chroot . sh -c 'exec /sbin/init'
and if i take out the iscsi boot and add in samba like
##SAMBA modules
insmod /lib/samba/idmap/ad.so
insmod /lib/samba/idmap/rid.so
insmod /lib/samba/vsf/audit.so
insmod /lib/samba/vsf/cap.so
insmod /lib/samba/vsf/default_quota.so
insmod /lib/samba/vsf/expand_msdfs.so
insmod /lib/samba/vsf/extd_audit.so
insmod /lib/samba/vsf/fake_perms.so
insmod /lib/samba/vsf/full_audit.so
insmod /lib/samba/vsf/netatalk.so
insmod /lib/samba/vsf/readahead.so
insmod /lib/samba/vsf/readonly.so
insmod /lib/samba/vsf/recycle.so
insmod /lib/samba/vsf/shadow_copy.so
not sure if i need a different type of module? that ends in .ko but there were some .so files in the directory...
now im not sure what i need to write to get samba to start and do its thing im just copying suse linux to this computer so i can compile the initrd and see how i go but i need a hand with some things.
and i know the initrd is made for booting linux but i to to boot a linux boot menu and then it will boot windows... i think that willl work (fingers crossed xD)
thanx verry much to anyone who replys
NETBOOT iscsi, use windows file share instead
Started by
Bliss161
, Jul 17 2008 10:58 AM
1 reply to this topic
#1
Posted 17 July 2008 - 10:58 AM
#2
Posted 17 July 2008 - 11:38 AM
Hmmm, I presume you would get better replies in a "real" Linux Forum.
However I am moving this to where it belongs:
http://www.boot-land...s/?showforum=70
Something that may be related (or maybe not ):
http://nixbit.com/ca...stri/openfiler/
http://nixbit.com/ca...ment/kde/smb4k/
jaclaz
However I am moving this to where it belongs:
http://www.boot-land...s/?showforum=70
Something that may be related (or maybe not ):
http://nixbit.com/ca...stri/openfiler/
http://nixbit.com/ca...ment/kde/smb4k/
jaclaz
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users