Forum Replies Created
-
AuthorPosts
-
fergon
MemberHello,
I’m sorry. I forgot to say that I was using a previously installed system (Ubuntu) as a “host” system so I have grub already installed. In order to “install” Zeroshell I booted Ubuntu and followed the steps.
It seems that you have done it from zeroshell ‘shellprompt’, and that you don’t have any other OS in your disk. I suppose you have to obtain grub and install it following the instructions in http://www.gnu.org/software/grub/. I will try it…
fergon
MemberThanks Fulvio,
It works well by changing the ‘cp -r’ in the first post:
**************************************************************
Now we can copy the contents of rootfsFolder to /media/hda5# cp -r * ..
and unmount it.
**************************************************************for ‘cp -a’ when copying the contents of rootfsFolder:
**************************************************************
Now we can copy the contents of rootfsFolder to /media/hda5# cp -a * ..
and unmount it.
**************************************************************Regards,
Fernando
fergon
MemberHello,
When I posted the installation proccess I had only booted it up and browsed the login page. When I finally tried to login into the system, it never ends the authentication process :oops:.
I am really confused: the ‘kerbynet’ program (in /usr/local/apache2/cgi-bin), which is launched as a cgi script when the user press the login button, seems to start a never-end loop: it begins but it never ends (you can see it with a ‘top’ command from a shell prompt in the server.)
When the root file system is mounted from as a ram disk (default in the liveCD) kerbynet works without problems, so I have modified the “installation” method in a manner that the root file system still remains in a ram disk. It seems to work (at least kerbynet doesn’t hang), but, again, further testing must be accomplished.
In order to install zeroshell in /dev/hda5:
# mkdir $HOME/zeroshell
# mount -t iso 9660 -o loop Zeroshell-1.0.beta3.iso $HOME/zeroshell
# mkdir /media/hda5
# mount -t auto /dev/hda5 /media/hda5
# cd $HOME/zeroshell
# cp -r * /media/hda5
# cd /media/hda5
# umount $HOME/zeroshellNow we modify the linuxrc script in initrd in order to link /dev/cdrom to /dev/hda5 instead of to the actual CDROM device.
# mkdir initrdFolder
# gunzip -c isolinux/initrd.gz > initrd.unzip
# mount -t auto -o loop initrd.unzip initrdFolder
# cd initrdFolder
# cp linuxrc linuxrc.old
# cat > linuxrc << EOF> #!/bin/bash
> #
> # linuxrc by Fulvio Ricciardi 16-11-2003
> # Modified by Fernando Gonzalez 7-2-2007
> mount -t proc proc /proc
> if mount -t auto /dev/hda5 /cdrom 2>/dev/null ; then
> echo Success
> echo -n “Loading root filesystem into RAM device… “
> if gzip -dc /cdrom/isolinux/rootfs >/dev/ram2 2>/dev/null ; then
> echo Success
> umount /cdrom
> /sbin/insmod /lib/loop.ko
> mount -o loop /dev/ram2 /cdrom
> cd /cdrom/dev
> ln -s hda5 cdrom
> cd /
> umount /cdrom
> else
> echo Fail
> umount /dev/hda5 > /dev/null
> fi
> else
> echo “Fail”
> fi
>
> EOF# mknod dev/hda5 b 3 5
# cd ..
# umount initrdFolder
# cp isolinux/initrd.gz initrd.gz.old
# gzip -c initrd.unzip > isolinux/initrd.gz(I am not sure if it is necessary or not to create the device node.)
And we change fstab in rootfs to mount /dev/cdrom as ext2 instead of iso9660:
# mkdir rootfsFolder
# gunzip -c isolinux/rootfs > rootfs.unzip
# mount -t auto -o loop rootfs.unzip rootfsFolder
# cd rootfsFolder
# cp etc/fstab etc/fstab.old
# cat > etc/fstab << EOF> /dev/ram2 / ext2 defaults 1 1
> /dev/cdrom /cdrom ext2 ro 0 0
> proc /proc proc defaults 0 0
> none /sys sysfs defaults 0 0
> devpts /dev/pts devpts gid=4,mode=620 0 0
> shm /dev/shm tmpfs defaults 0 0
>
> EOF# cd ..
# umount rootfsFolder
# cp isolinux/rootfs isolinux/rootfs.old
# gzip -c rootfs.unzip > isolinux/rootfsNow the system is ready, only rest to make it bootable. With grub, append in /boot/grub/menu.lst
title ZeroShell
root (hd0,4)
kernel /isolinux/vmlinuz quiet root=/dev/ram2 ramdisk_size=131072 init=/bin/init
initrd /isolinux/initrd.gz
boot
It must be improved: Although booting from hard disk, the whole root file system is mounted as a ram disk. I think it can be a problem if there is not enough memory installed.I hope this can be helpful. Any idea about why kerbynet hangs when it the root file system is mounted from a partition in hard disk? ❓
-
AuthorPosts