Compact Flash doesn't boot



  • Hola,

    I've written the pfSense-1.2.3-RELEASE-2g-nanobsd.img.gz image with Roadkil's Disk Image and used a 4GB Scandisk compact flash. No errors occurred during the image process. Then I used this CF adapter with my old PC (Pentium 4, 1GB Ram…) http://www.delock.de/pictures/products/2/487330a95b94f.jpg for the 4GB Scandisk. The CF will be detected in BIOS as IDE Master 4GB! But the pfSense doesn't boot. After several seconds the error message occured: Non system disk or disk error! The adapter works correctly and the 4GB Scandisk is also ok!

    Whats the issue?

    Thanks and regards


  • Netgate Administrator

    Looks like you're doing everything right.
    I've never tried Roadkills image writer. Try using physdiskwrite or Win32diskimager instead.

    Steve



  • If you're not writing with a different image-writer, it's possible that this one cannot decompress the image on the fly.

    Try decompressing the .gz file first and then write the big .img file to the disk.



  • First of all I already have decompressed the .gz file. I will delete the current partition and try the win32diskimage. However I believe there is some issue with my Bios setting i.e. DMA active/inactive or something like that!?


  • Netgate Administrator

    I always use physdiskwriter (even though it's in German!) as it does on the fly decompression and I know it works.
    You could try disabling UDMA on your CF card in the bios. It is disabled in pfSense anyway as it sometimes causes issues.

    Steve



  • Hi Guys,

    I've deleted the image with Gparted and download the pfHacom 1G image because VGA support. The image was written with physdiskwrite without any errors. After select LBA for the 4GB Scandisk everything works fine. The nanoBSD booted correctly also the Web Interface seems to work without any problem but on the "shell" on the monitor screen I see some reading errors something with ad0: reading error 51. This issue appears everytime when I do some changes on the web interface and save them. Any ideas?


  • Netgate Administrator

    That's not good. However I guess I might be caused by inconsistent dma settings. Are you seeing?:

    ad0: FAILURE - READ_DMA status=51 <ready,dsc,error>error=40<uncorrectable></uncorrectable></ready,dsc,error>
    

    Did you actually disable udma in the bios? If you look in /boot/loader.conf do you have these lines?

    
    hw.ata.atapi_dma="0"
    hw.ata.ata_dma="0"
    hw.ata.wc="0"
    

    Steve



  • @stephenw10:

    That's not good. However I guess I might be caused by inconsistent dma settings. Are you seeing?:

    ad0: FAILURE - READ_DMA status=51 <ready,dsc,error>error=40<uncorrectable></uncorrectable></ready,dsc,error>
    

    Did you actually disable udma in the bios? If you look in /boot/loader.conf do you have these lines?

    
    hw.ata.atapi_dma="0"
    hw.ata.ata_dma="0"
    hw.ata.wc="0"
    

    Steve

    In the BIOS I didn't find any flag with udma setting but I'll google for that tonight. Are that reading errors such a big problem? Everything on the web interface seems to work correct and also saved correct when I do any changes.


  • Netgate Administrator

    If this was a normal HD it would probably imply a UD failure. But it isn't.

    @Hacom:

    We remount the root filesystem as read-only, sync, noatime. The default pfSense nanobsd mounts the filesystems as write-able, sync, noatime.
    This changes the "normal" behavior pf pfSense. Any write (update) operations require the root filesystem to be remounted as write-able by the shell command: "mount -u -ow /". After the changes, just reboot the system or execute the command: "sh /usr/local/etc/rc.d/hacom.sh" to mount the root filesystem back as read-only.
    This is a precaution since during early testing of pfSense 2.0: both BETA5 and RC1, we have experienced major flash corruptions.

    Do the changes you have made survive a reboot?

    Steve



  • @stephenw10:

    If this was a normal HD it would probably imply a UD failure. But it isn't.

    @Hacom:

    We remount the root filesystem as read-only, sync, noatime. The default pfSense nanobsd mounts the filesystems as write-able, sync, noatime.
    This changes the "normal" behavior pf pfSense. Any write (update) operations require the root filesystem to be remounted as write-able by the shell command: "mount -u -ow /". After the changes, just reboot the system or execute the command: "sh /usr/local/etc/rc.d/hacom.sh" to mount the root filesystem back as read-only.
    This is a precaution since during early testing of pfSense 2.0: both BETA5 and RC1, we have experienced major flash corruptions.

    Do the changes you have made survive a reboot?

    Steve

    Yes, the changes survive a reboot.



  • I've deactivated the UDMA settings on my BIOS but the error message is still there if I do any changes on the webinterface:
    ad0: failure - read status=51 error=10(nid_not_found)


  • Netgate Administrator

    What do you have in your /boot/loader.conf ?

    Can you try a standard pfSense image?



  • can you tell me, how I get access to the loader.conf please? Is this file in the root directory of pfhacom? Sorry, I am a unix dummy. I have choosen the pfhacom Image because I want VGA support.


  • Netgate Administrator

    Everyone starts some where.  :)
    From the command line:

    
    [2.0-RC2][root@pfsense.fire.box]/root(1): cat /boot/loader.conf
    hw.ata.atapi_dma="0"
    hw.ata.ata_dma="0"
    loader_color="NO"
    autoboot_delay="5"
    hw.ata.wc="0"
    kern.ipc.nmbclusters="0"
    beastie_disable="YES"
    vm.kmem_size="435544320"
    vm.kmem_size_max="535544320"
    
    

    Alternatively you can open it from the file editor in the GUI: Diagnostics -> Edit File
    Just don't go making random changes!

    Steve



  • I have exactly the same settings below!


  • Netgate Administrator

    Hmmm,
    I'm out of ideas at this point.  :(
    You could try reflashing the card. You could try a different CF card. You could try a different image.

    Steve


Log in to reply