This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to gain access to the installed partition of XG Firewall to modify boot so only text is seen via console

Hi All,

I recently managed to install SW-17.5.9_MR-9-577 on a Check Point 2200 device, but once XG has installed and the device is rebooted all the text seen on the console is junk.

I tried to see the boot partition in Linux and Windows but the entire disk is show to have nothing on it but yet it boots.

How can I gain access to the boot folder/partition so I can modify it to send all text to the serial port?

 

Thanks,



This thread was automatically locked due to age.
Parents
  • Hi All,

    I tried the advanced shell and I can't find the boot folder or the grub.cfg anywhere on the disk.

    SF01V_SO01_SFOS 17.5.9 MR-9# ls -l
    drwxr-xr-x 17 root 0 1024 Jan 31 21:33 _conf
    drwxr-xr-x 2 root 0 1024 Jan 31 21:33 bin
    drwxrwxrwt 67 root 0 4096 Feb 3 18:28 cfs
    drwxr-xr-x 9 root 0 1024 Feb 1 19:08 conf
    drwxr-xr-x 19 root 0 1024 Feb 1 21:07 content
    drwxrwxrwt 10 root 0 1000 Feb 3 18:35 dev
    drwxr-xr-x 21 root 0 1024 Feb 3 18:28 etc
    drwxr-xr-x 2 root 0 3 Oct 25 10:20 fwprep
    drwxr-xr-x 19 root 0 8141 Nov 1 16:37 lib
    drwxr-xr-x 3 root 0 27 Nov 1 16:36 lib32
    lrwxrwxrwx 1 root 0 3 Nov 1 16:37 lib64 -> lib
    drwxr-xr-x 3 root 0 28 Nov 1 16:37 libexec
    lrwxrwxrwx 1 root 0 11 Nov 1 16:37 linuxrc -> bin/busybox
    lrwxrwxrwx 1 root 0 9 Nov 1 16:37 log -> var/tslog
    drwx------ 2 root 0 12288 Jan 31 21:33 lost+found
    drwxr-xr-x 2 root 0 3 Nov 1 16:42 overlay
    dr-xr-xr-x 372 root 0 0 Feb 3 18:28 proc
    lrwxrwxrwx 1 root 0 3 Nov 1 16:37 sbin -> bin
    drwxr-xr-x 34 root 0 1024 Jan 31 21:33 scripts
    lrwxrwxrwx 1 root 0 3 Nov 1 16:37 sdisk -> var
    drwxr-xr-x 5 root 0 61 Nov 1 16:37 share
    lrwxrwxrwx 1 root 0 8 Nov 1 16:37 sig -> /content
    drwxr-xr-x 18 root 0 1024 Jan 31 21:33 static
    dr-xr-xr-x 13 root 0 0 Feb 3 18:28 sys
    drwxrwxrwt 15 root 0 1220 Feb 3 19:04 tmp
    drwxr-xr-x 7 root 0 1024 Jan 31 21:33 usr
    drwxr-xr-x 31 root 0 4096 Feb 1 21:09 var
    lrwxrwxrwx 1 root 0 3 Nov 1 16:37 vdisk -> var
    SF01V_SO01_SFOS 17.5.9 MR-9#

    SF01V_SO01_SFOS 17.5.9 MR-9# find / grub | grep grub
    /usr/share/vim/vim80/ftplugin/grub.vim
    /usr/share/vim/vim80/syntax/grub.vim
    find: grub: No such file or directory
    SF01V_SO01_SFOS 17.5.9 MR-9# find / grub* | grep grub
    /usr/share/vim/vim80/ftplugin/grub.vim
    /usr/share/vim/vim80/syntax/grub.vim
    find: grub*: No such file or directory

    Put the speed on the serial connect on my putty session to 38400 but still no luck.

    SF01V_SO01_SFOS 17.5.9 MR-9# df -a
    Filesystem 1K-blocks Used Available Use% Mounted on
    rootfs 313164 2642 289835 1% /
    none 0 0 0 0% /proc
    none 0 0 0 0% /sys
    df: /newroot: No such file or directory
    df: /newroot/dev: No such file or directory
    df: /newrootrw: No such file or directory
    none 313164 2642 289835 1% /
    none 1020476 20 1020456 0% /dev
    none 0 0 0 0% /proc
    none 1020476 12748 1007728 1% /tmp
    none 0 0 0 0% /dev/pts
    none 1020476 14984 1005492 1% /dev/shm
    /sys 0 0 0 0% /sys
    /dev/conf 394624 48675 345949 12% /conf
    /dev/content 22883958 84501 22799457 0% /content
    /dev/var 202018672 291040 201727632 0% /var
    none 0 0 0 0% /cfs
    CFS 0 0 0 0% /cfs
    SF01V_SO01_SFOS 17.5.9 MR-9#

     

    in the syslog.log file

    Original command line: auto BOOT_IMAGE=17_5_9_577 zd=/dev/sda ro ro quiet console=tty0 console=ttyS0,38400n8 ZD=80 SM=0

    but when I do fdisk -l

    SF01V_SO01_SFOS 17.5.9 MR-9# fdisk -l

    Disk /dev/sda: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System

Reply
  • Hi All,

    I tried the advanced shell and I can't find the boot folder or the grub.cfg anywhere on the disk.

    SF01V_SO01_SFOS 17.5.9 MR-9# ls -l
    drwxr-xr-x 17 root 0 1024 Jan 31 21:33 _conf
    drwxr-xr-x 2 root 0 1024 Jan 31 21:33 bin
    drwxrwxrwt 67 root 0 4096 Feb 3 18:28 cfs
    drwxr-xr-x 9 root 0 1024 Feb 1 19:08 conf
    drwxr-xr-x 19 root 0 1024 Feb 1 21:07 content
    drwxrwxrwt 10 root 0 1000 Feb 3 18:35 dev
    drwxr-xr-x 21 root 0 1024 Feb 3 18:28 etc
    drwxr-xr-x 2 root 0 3 Oct 25 10:20 fwprep
    drwxr-xr-x 19 root 0 8141 Nov 1 16:37 lib
    drwxr-xr-x 3 root 0 27 Nov 1 16:36 lib32
    lrwxrwxrwx 1 root 0 3 Nov 1 16:37 lib64 -> lib
    drwxr-xr-x 3 root 0 28 Nov 1 16:37 libexec
    lrwxrwxrwx 1 root 0 11 Nov 1 16:37 linuxrc -> bin/busybox
    lrwxrwxrwx 1 root 0 9 Nov 1 16:37 log -> var/tslog
    drwx------ 2 root 0 12288 Jan 31 21:33 lost+found
    drwxr-xr-x 2 root 0 3 Nov 1 16:42 overlay
    dr-xr-xr-x 372 root 0 0 Feb 3 18:28 proc
    lrwxrwxrwx 1 root 0 3 Nov 1 16:37 sbin -> bin
    drwxr-xr-x 34 root 0 1024 Jan 31 21:33 scripts
    lrwxrwxrwx 1 root 0 3 Nov 1 16:37 sdisk -> var
    drwxr-xr-x 5 root 0 61 Nov 1 16:37 share
    lrwxrwxrwx 1 root 0 8 Nov 1 16:37 sig -> /content
    drwxr-xr-x 18 root 0 1024 Jan 31 21:33 static
    dr-xr-xr-x 13 root 0 0 Feb 3 18:28 sys
    drwxrwxrwt 15 root 0 1220 Feb 3 19:04 tmp
    drwxr-xr-x 7 root 0 1024 Jan 31 21:33 usr
    drwxr-xr-x 31 root 0 4096 Feb 1 21:09 var
    lrwxrwxrwx 1 root 0 3 Nov 1 16:37 vdisk -> var
    SF01V_SO01_SFOS 17.5.9 MR-9#

    SF01V_SO01_SFOS 17.5.9 MR-9# find / grub | grep grub
    /usr/share/vim/vim80/ftplugin/grub.vim
    /usr/share/vim/vim80/syntax/grub.vim
    find: grub: No such file or directory
    SF01V_SO01_SFOS 17.5.9 MR-9# find / grub* | grep grub
    /usr/share/vim/vim80/ftplugin/grub.vim
    /usr/share/vim/vim80/syntax/grub.vim
    find: grub*: No such file or directory

    Put the speed on the serial connect on my putty session to 38400 but still no luck.

    SF01V_SO01_SFOS 17.5.9 MR-9# df -a
    Filesystem 1K-blocks Used Available Use% Mounted on
    rootfs 313164 2642 289835 1% /
    none 0 0 0 0% /proc
    none 0 0 0 0% /sys
    df: /newroot: No such file or directory
    df: /newroot/dev: No such file or directory
    df: /newrootrw: No such file or directory
    none 313164 2642 289835 1% /
    none 1020476 20 1020456 0% /dev
    none 0 0 0 0% /proc
    none 1020476 12748 1007728 1% /tmp
    none 0 0 0 0% /dev/pts
    none 1020476 14984 1005492 1% /dev/shm
    /sys 0 0 0 0% /sys
    /dev/conf 394624 48675 345949 12% /conf
    /dev/content 22883958 84501 22799457 0% /content
    /dev/var 202018672 291040 201727632 0% /var
    none 0 0 0 0% /cfs
    CFS 0 0 0 0% /cfs
    SF01V_SO01_SFOS 17.5.9 MR-9#

     

    in the syslog.log file

    Original command line: auto BOOT_IMAGE=17_5_9_577 zd=/dev/sda ro ro quiet console=tty0 console=ttyS0,38400n8 ZD=80 SM=0

    but when I do fdisk -l

    SF01V_SO01_SFOS 17.5.9 MR-9# fdisk -l

    Disk /dev/sda: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System

Children