Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Non-embedded microdrive install issues

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    24 Posts 8 Posters 10.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      thinair
      last edited by

      Well, here is a potential solution, I just don't know how to do it.  Like I've previously stated, I can get pfSense installed to the microdrive when it's connected via USB.  Does anyone know how I can get it to boot off a floppy drive with a bootloader that points to the USB microdrive?

      I know it's sort of offtopic, but it's a temporary fix.  My mobo won't boot from USB :(

      Nelson Papel

      1 Reply Last reply Reply Quote 0
      • jahonixJ
        jahonix
        last edited by

        Have you tried installing an image via PhyDiskwrite (available at http://m0n0.ch/wall/downloads.php )?
        If you can access the CF from windows or even DOS then you could try this.

        Well, to my knowledge there are only embedded images available which are a bit restricted compared to the full version. But it might be a start at least.

        1 Reply Last reply Reply Quote 0
        • T
          thinair
          last edited by

          I don't see how PhyDiskwrite is going to help me.  I can already install the image to the microdrive via USB.  Via IDE freeBSD isn't recognizing the drive.

          Nelson Papel

          1 Reply Last reply Reply Quote 0
          • jahonixJ
            jahonix
            last edited by

            I thought the references from an USB install were misleading when booting as IDE device.
            This way the install is IDE only.

            It doesn't help if the system/BIOS doesn't recognise your CF.

            Ignore this if I am getting it completely wrong  ::)

            1 Reply Last reply Reply Quote 0
            • T
              thinair
              last edited by

              hmmm, I'll try it later this week and report back, thanks :)

              Nelson Papel

              1 Reply Last reply Reply Quote 0
              • J
                j0emv
                last edited by

                Physdiskwrite wont work because once the kernel gets to the point where its looking for the filesystem, it will fail.  FreeBSD simply fails accessing filesystems on these drives.  Your idea about booting from a floppy and then dropping to the Microdrive via usb for the filesystem is exactly what I did.  Instead of using a floppy, I used CF cards to boot the kernel and then changed the fstab entry to point to the microdrive at /dev/sdwhatever it was and that worked via USB.  Here are the steps I took to hack mine to work:

                1)  Wrote the embedded image via physdiskwrite to a 128MB CF card I had laying around
                2)  Connect both the CF card (cf->ide adapter) and the microdrive via USB
                3)  Boot the livecd then install the full pfsense to the microdrive via USB
                4)  Exit the installer or boot the livecd again
                5)  Dropped to the shell and created folders in /tmp called 128CF for the CF card and MD for the microdrive
                6)  Mounted both filesystems to their respective folders I created
                7)  I dont remember if I had to or not but here you may need to change the embedded filesystem to read/write as its default is read only.  There's a script in /etc to do that although I think thats unecessary in this instance.
                7)  Copy the entire /boot/ folder to the /tmp/128CF/boot/ folder (This should overwrite everything and I only did this because i'm not using WRAP hardware and needed the vga/keyboard support, you can keep the embedded kernel if you like I think)
                8)  Edit /etc/ttys using vi and uncomment the line (basically take out the #):

                console none unknown off secure

                9)  Save and exit that (this gives you console support I believe).
                10)  Edit /boot/loader.conf and add/modify the following:

                autoboot_delay="1"
                hw.ata.atapi_dma="0"
                hw.ata.ata_dma="0"
                loader_color="NO"
                hw.pci.allow_unsupported_io_range="1"
                autoboot_delay=1
                hint.sio.0.flags="0x30"
                debug.acpi.disable="thermal"

                Again, this is all for non WRAP hardware.  If you're on the WRAP platform, then most of this stuff you shouldnt change.

                11)  Now, edit /etc/fstab using vi and change it to the following so that it points to the USB microdrive, using whatever device name your system assigned it.  da0s1a/s1b are what my system used, yours may be the same or they may be different:

                Device Mountpoint FStype Options Dump Pass#

                /dev/da0s1a / ufs rw 1 1
                /dev/da0s1b none swap sw 0 0

                12)  Unmount both filesystems (umount command I think)
                13)  Exit the shell and reboot

                You should notice it boots from the CF, or floppy or whatever you choose, and then drops to the USB microdrive for the rest of the filesystem so it in theory uses the CF as a boot floppy and the microdrive for the filesystem for packages and everything else as all it needs from the CF is the kernel.  I think these instructions could be similar if you wanted to boot from a floppy although its easier from another CF card which i'm sure you probably have laying around somewhere.  You just need one big enough to write the embedded image to (128MB).

                Good luck!

                1 Reply Last reply Reply Quote 0
                • J
                  j0emv
                  last edited by

                  I just got my hands on an Hitachi 4GB microdrive.  I happened to have bought an ipod mini and a seagate 8gb hard drive recently… So I upgraded the drive in the ipod mini and salvaged the Hitachi 4GB from that unit.  I'm going to test this Hitachi drive with pfsense.  If its able to boot from this drive then its simply an issue of FreeBSD not liking the Seagate drives.  If the Hitachi does indeed work then I have another Seagate 8GB coming in and another ipod to upgrade so i'll swap out both drives from our carp systems to Hitachi's and get rid of all the hacking I had to do to make the system work.

                  1 Reply Last reply Reply Quote 0
                  • M
                    matt518000
                    last edited by

                    To find more better IDE-CF Adapter , you can visit http://www.soarland.com , the menufactory has low price and good quality.
                    support 8G CF .

                    1 Reply Last reply Reply Quote 0
                    • J
                      joebarnhart
                      last edited by

                      @matt518000:

                      To find more better IDE-CF Adapter , you can visit http://www.soarland.com , the menufactory has low price and good quality.
                      support 8G CF .

                      Thanks for the advertisement, but the IDE-CF adapter has nothing whatever to do with the problem.  The BSD kernel fails to recognize the Seagate CF microdrive after the BIOS bootloader is finished.  (And I did try four different brands of IDE-CF adapter with identical results.)

                      1 Reply Last reply Reply Quote 0
                      • J
                        j0emv
                        last edited by

                        so I was right, it was the Seagate drives all along.  I just tested the Hitachi 4GB microdrive I pulled from an ipod mini and it boots in my device fine.  FreeBSD recognizes it, although I have to turn off DMA for it to load successfully but it works fine in PIO mode.  So if you really want to go the microdrive route, your best bet is to stay away from Seagate drives and go with Hitachi.

                        1 Reply Last reply Reply Quote 0
                        • J
                          joebarnhart
                          last edited by

                          I guess I don't see how it is the "fault" of the Seagate drive, which works perfectly with every other OS, including version 4 of FreeBSD.  It's only version 5 and 6 where the driver is borked for the Seagate.  Yes, it would be nice if everyone could wave a magic wand and their Seagate drives would magically become Hitachi.  But some folks (even folks writing this very message) already HAVE a number of Seagate drives and would dearly love to task them running pfSense walls.

                          This is really at the feet of the FreeBSD team.  Unfortunately I don't see anyone busting it to get this bug fixed.  Maybe you should have put a higher priority on the bug when you reported it.  I don't quite understand why it was assigned with "low" priority.  It's pretty damned high priority if you can't get your firewall running, to my way of thinking.

                          1 Reply Last reply Reply Quote 0
                          • J
                            j0emv
                            last edited by

                            Unfortunately at the time I submitted that message I figured that it wasnt that big of a deal and they would get to it eventually.. I didnt know that it would be completely ignored.  Is there a way I can change the priority or is it too late now?  I myself had 2 seagate microdrives and luckily I was able to swap out one with an hitachi at no cost but I have to eat the cost on the 2nd because I dont work for the company I deployed this at anymore.  I  want it to be as easy as possible for my old boss and replacement to maintain and upgrade.  I ordered another hitachi today and will go back in to swap the drive next week.

                            Thanks

                            1 Reply Last reply Reply Quote 0
                            • Cry HavokC
                              Cry Havok
                              last edited by

                              Well, you could probably help by working with them, probably on the freebsd-stable mailing list.  I'm pretty sure that the use of CF microdrives are an edge case and, as a result, not likely to receive any attention otherwise.

                              1 Reply Last reply Reply Quote 0
                              • M
                                matt518000
                                last edited by

                                @joebarnhart:

                                @matt518000:

                                To find more better IDE-CF Adapter , you can visit http://www.soarland.com , the menufactory has low price and good quality.
                                support 8G CF .

                                Thanks for the advertisement, but the IDE-CF adapter has nothing whatever to do with the problem.  The BSD kernel fails to recognize the Seagate CF microdrive after the BIOS bootloader is finished.  (And I did try four different brands of IDE-CF adapter with identical results.)

                                I think you must embed an Seagate IC , I use FreeBSD boot from CF too , It works well

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.