ndipit

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Installing ZeroShell in Hard Disk #45149

    ndipit
    Member

    After all described in the previous post I`ve successfully logined to web interface/
    But there were some moments I want to clarify to:
    1. When booting:

    mount: according to mtab, /dev/sda2 is already mounted on /

    When I commented out “/dev/sda2 / ext3 defaults 1 1 ” in /etc/fstab – the same

    in reply to: Installing ZeroShell in Hard Disk #45148

    ndipit
    Member

    Hello all. Here my way to install ZS2.0 on HDD. Root folder is located on Hdd
    Boot from your favorite liveCD linux (I’ve used knoppix 6.7) and execute the next steps:

    1. Install ZS2.0 in the usual way, as described here or on http://www.zeroshell.net/eng/documentation/
      Then you must delete 2nd and 3rd partitions (all except 1st boot partition) and create your own partitions (ext3 and ext4 fs are supported)
    2. Create tmp folders:
      mkdir sda1
      mkdir sda2
      mkdir usb
      mkdir iso
      mkdir rootfs.dir
      mkdir initrd.dir

      and mount partitions to it:
      in my case HDD was /dev/sda, usb flashdrive – /dev/sdb and ZS2.0RC1 livecd iso image filename is ZeroShell-2.0.RC1.iso. You can find out flashdrive device name using dmesg or fdisk -l commands

      mount /dev/sda1 sda1
      mount /dev/sda2 sda2
      mount /dev/sdb1 usb
      mount -o loop usb/ZeroShell-2.0.RC1.iso iso
    3. Copy all files and directories from previously mounted iso image to sda2:
      copy -arp iso/* sda2
      rm -f sda2/isolinux
    4. Unpacking rootfs to hdd:
      gunzip -c iso/isolinux/rootfs > rootfs
      mount -o loop rootfs rootfs.dir ##mount unpacked rootfs ext2 image
      cd rootfs.dir
      find . -maxdepth 1 -type l -delete ##Deleting softlinks
      cp -arp ./* ../sda2
      cd ../
    5. Also we need to edit sda2/etc/fstab:
      /dev/sda2      /              ext3      defaults     1    1
      /dev/sda1 /boot ext2 defaults,ro 0 0
      proc /proc proc defaults 0 0
      none /sys sysfs remount 0 0
      devpts /dev/pts devpts gid=4,mode=620 0 0
      shm /dev/shm tmpfs defaults 0 0
      usbfs /proc/bus/usb usbfs defaults 0 0
    6. modification of initrd.img
      gunzip -c sda1/initrd.img > initrd.dir/initrd
      cd initrd.dir
      cpio -id < initrd

      Edit initrd.dir/init script (I wrote only changed strings here):

      ##   if [ "$root" = ISO ] ; then
      # echo "Mounting ISO image ..."
      # mkdir /cdrom
      # if mount "$device" /cdrom 2>/dev/null ; then
      # echo -n "Loading root filesystem into RAM device... "
      # if gzip -dc /cdrom/i#solinux/rootfs >/dev/ram2 2>/dev/null ; then
      # echo Success
      # umount /cdrom
      # #/sbin/insmod /lib/loop.ko
      mount $device /.root
      cd /.root/dev
      ln -sf $device cdrom
      cd /
      mount /.root/dev/cdrom /.root/cdrom 2>/dev/null
      sleep 3
      echo "Successfully mounted device $device"
      #umount /cdrom
      # else
      # echo "Wrong ISO filesystem found"
      # umount $device > /dev/null
      # while true ; do sleep 10000 ; done
      # fi
      # else
      # echo "Failed to mount the Live CD"
      # while true ; do sleep 10000 ; done
      # fi
      # else
      # if ! mount -n -t "$rootfstype" -o "$rootflags" "$device" /.root ; then
      # no_mount $device
      # cat /proc/partitions
      # while true ; do sleep 10000 ; done
      # else
      # echo "Successfully mounted device $device"
      # fi
      # fi

      pack new initrd and replace the original with it:

      rm -f initrd
      find -print | cpio -o -H newc | gzip -c9 > ../sda1/initrd.img

    That`s all. Reboot and try ti boot from hdd

    in reply to: Installing ZeroShell in Hard Disk #45146

    ndipit
    Member

    I’ve tried to install ZS2.0RC1 to hdd using instruction in 1st post.
    But I couldn’t mount ungzipped initrd:

    #mount -t auto -o loop initrd.unzip initrd.folder
    #mount: you should specify the filesystem type

    When i specify ext2 or ext3 fs manually it says “wrong fs type”

    in reply to: ERROR: LDAP Base malformed #51949

    ndipit
    Member

    I have 5 static addresses on ETH00, but the same problem on b16

    in reply to: Classifier Rules #47655

    ndipit
    Member

    But i have only 1 gateway active at the same time, or reason is in incompatibility between QoS and netbalancer modules, even it is working in failover mode?

    in reply to: QoS and http Proxy at the same time #46635

    ndipit
    Member

    I have same problem (zeroshell beta11). Can you tell me more about classifing the traffic manualy with iptables?

Viewing 6 posts - 1 through 6 (of 6 total)