Nanobsd on alix wont boot if usb flash drive attached at boot
-
i have a kingston 8GB USB flash drive, i created one partition and formatted with "newfs -U /dev/da0s1". now when i reboot the box, it always gets stuck on external config loader for ever and doesnt go ahead until the drive is removed
this was discussed here
https://redmine.pfsense.org/issues/2838i get this when i run the first command
[2.1-BETA1][root@firewall.xbipin]/root(8): dd if=/dev/zero of=/dev/da0 bs=1M cou
nt=1
dd: /dev/da0: Operation not supported -
i deleted all volumes and partitions from the disk and then ran the below commands and for some reason all worked but as soon as i reboot, still stuck on loading external config, is there any way to simply make it skip checking on the usb drive for a config and move on
dd if=/dev/zero of=/dev/da0 bs=1M count=1 gpart create -s mbr da0 gpart add -t freebsd da0 newfs -U /dev/da0s1 mount /dev/da0s1 /mnt
-
after this i edited the /etc/ecl.php file and under the get_disks function, made it ignore storing to array if the disk was reported as da0 so basically the config file isn't checked there at all and then rebooted and it worked just fine and then using shellcmd package made it mount as /var/squid and everything worked
main problem i see is running the below command which causes everything to freeze coz when i do the same once its booted and then insert the disk, the console just freezes, is it something to do with the filesystem being ufs and it trying to mount as msdosfs when checking for valid config file?
/sbin/mount -t msdosfs /dev/da0s1 /tmp/mnt/cf
-
further analysis
once alix is booted, i insert usb disk and mount with below command it freezes
/sbin/mount -t msdosfs /dev/da0s1 /tmp/mnt/cf
once alix is booted, i insert usb disk and mount with below command it all works
/sbin/mount -t ufs /dev/da0s1 /tmp/mnt/cf
i checked the php file and it seems there is code to mount with msdosfs first and then with ufs but it seems it gets stuck on msdosfs and never goes ahead because it doesnt get any reply or there is no failure message or result thats y everything freezes at that point. mayb swapping to first mount with ufs and then with msdosfs would bring some good results
-
i swapped the lines and it boots fine but i get a warning
Creating symlinks......done. External config loader 1.0 is now starting... da0s1WARNING: /tmp/mnt/cf was not properly dismounted ad0s3
-
i was searching the web and freebsd forums related to this and it seems to be a specific issue related to kingston datatraveler USB flash disks. probably some1 having same can try it out to prove its a bug.
i was never a fan of kingston crap anyways, lexar the best till date for me :)