pfSense Support Subscription

Author Topic: Doc edit request: Booting from USB  (Read 7320 times)

0 Members and 1 Guest are viewing this topic.

Offline Javik

  • Jr. Member
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Doc edit request: Booting from USB
« on: November 23, 2012, 07:30:42 pm »
On the page:
http://doc.pfsense.org/index.php/Boot_Troubleshooting

In section:
Booting from USB

Changes:
Revise lead to discuss CD/DVD drives, and USB flash media.

There are two additional boot options that should be included, discussed in this thread:
http://forum.pfsense.org/index.php/topic,32017.15.html

Also, flash memory USB devices need the filesystem set to read/write to make changes, so add a link to that article.

I don't know how much linux experts think should be documented in articles. The learning curve of CLI linux is very steep. How much is the end-user expected to know, to accomplish what an article recommends?

(It doesn't look like nano/pico is available so there's "echo foo >> bar" or vi.  Ack, thppt.)


Revised text:

If the boot stops with a mountroot error while booting off the live CD (usually with USB CD/DVD drives) or when using a USB flash memory device, escape to the loader prompt and run the following:

  set hw.mca.enabled=0
  set hw.bce.tso_enable=0
  set kern.cam.boot_delay=10000
  boot

  • On version 2.0 this is on the boot menu - option #3 to boot from USB devices.

At which point the boot will continue normally and you can proceed with normal installation. These settings are not saved.

 
If running permanently from a writable USB device that requires this delay, edit /boot/loader.conf.local and insert the following lines:
  hw.mca.enabled=0
  hw.bce.tso_enable=0
  kern.cam.boot_delay=10000


The settings in /boot/loader.conf.local will be retained during an upgrade.

The boot options of CD/DVD media cannot be modified live in this manner. A revised ISO would need to be created with these changes added, and a new CD/DVD created.



Offline Javik

  • Jr. Member
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Doc edit request: Booting from USB
« Reply #1 on: November 26, 2012, 08:36:59 am »
Hmm, what to make of this? 80 forum article views, no one disagrees that this should NOT be included, but no wiki changes have been made.

Who do I need to ask to get wiki edit permission to do it myself?

Offline johnpoz

  • Hero Member
  • *****
  • Posts: 2893
  • Karma: +0/-0
    • View Profile
Re: Doc edit request: Booting from USB
« Reply #2 on: November 26, 2012, 10:14:18 am »
You can contact jimp with PM to request access to docs for edits/additions - I got my access like same day requested.

If was simple typo fix or correction to url or something like that I would be happy to make the change for you, but since I don't have a lot of exp in in this topic your discussing.  Be better if you make the changes so sure correct, etc.

here is thread about requesting access to wiki
http://forum.pfsense.org/index.php/topic,25358.0.html

« Last Edit: November 26, 2012, 10:15:53 am by johnpoz »
- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- Have I helped you, want to say thanks?  Donate to pfsense the cost of a beer http://pfsense.org/donate.html

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14990
  • Karma: +4/-0
    • View Profile
Re: Doc edit request: Booting from USB
« Reply #3 on: November 26, 2012, 02:46:43 pm »
Only the cam delay is needed for that. And it's already mentioned on the page. The memstick images are not meant to run long-term in place, they're meant to be install media, so making them read/write isn't really a good idea.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline Javik

  • Jr. Member
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Doc edit request: Booting from USB
« Reply #4 on: November 30, 2012, 08:48:36 pm »
What flash based storage are you proposing people should be using, if not a USB flash drive?

SD cards are apparently really slow, and SSD's are way overkill. CompactFlash is a weird old ATA format that is ultra-niche and uncommon at this point.

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14990
  • Karma: +4/-0
    • View Profile
Re: Doc edit request: Booting from USB
« Reply #5 on: November 30, 2012, 08:50:50 pm »
NanoBSD images are made for CF and other flash media.

CF is not all that uncommon in embedded router gear, which pfSense sees a lot of use in. And it's hardly "weird", it's a common standard.

The memstick is meant to be an installer to install onto HDD, SSD, etc. The full install will perform lots of writes on a disk so it's not good for flash.

NanoBSD minimizes writes to the disk to only when absolutely necessary to preserve the media as long as possible.

Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline Javik

  • Jr. Member
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Doc edit request: Booting from USB
« Reply #6 on: November 30, 2012, 09:00:21 pm »
It's pretty clear your mind is made up on the issue, but I will keep talking some more anyway.



Okay, so I will get a CF to USB reader and then my system should work fine then, eh? Maybe one of those 4-way CF/SD/MMC/MS readers that goes in a floppy bay?

(Oh wait, the same USB boot problem will strike all over again.)


Are you proposing that people should be using some non-USB interfacing to the system? Maybe a direct CF to PCI-Express slot interface? Now that is really getting to be ridiculously obscure and unusual.

Since many computers built in the last 3 years now don't even include an IDE interface anymore, only SATA, it's getting really hard to direct-connect CF to motherboards without USB.


For these reasons, USB boot support from flash media should just be enabled by default in the flash filesystem images.

(It's amazing the devs can be so grouchy about having a (gasp) 10-second boot delay by default for flash-based storage.)

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14990
  • Karma: +4/-0
    • View Profile
Re: Doc edit request: Booting from USB
« Reply #7 on: November 30, 2012, 09:28:10 pm »
It's enough that it shouldn't be in by default. It's easy to add, and that fact is already documented on the wiki.

Most people using CF do so via some form of direct socket, ATA adapter, or SATA adapter, not USB.

And I'm not particularly grouchy, it's just not necessary for the majority of users of that platform, and it's documented for the ones that do need it.

Keep in mind we see a _lot_ of different platforms out there on a daily basis as a part of not just development but also commercial support. We have a pretty good grasp on what is in common use and what isn't. If the majority of people start to complain about it not working, we'll move it over. It's just not to that point yet.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline Mats

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Doc edit request: Booting from USB
« Reply #8 on: April 28, 2013, 02:05:22 pm »
Thanks Javik for trying to update the Wiki page.
Your version works and solved my problem.
The official page still doesn't contain any links to how to remount RW so that the error can be fixed