nomadbsd / NomadBSD

Livesystem based on FreeBSD
http://nomadbsd.org
BSD 2-Clause "Simplified" License
348 stars 41 forks source link

Very slowly response while using on USB stick #7

Open Ygarr opened 5 years ago

Ygarr commented 5 years ago

Upgrading, saving, and other appeal to usb file system take very long time - so make using impossible. Kingston Datatraveler USB 3.1

dsalychev commented 5 years ago

Could you post an output of the camcontrol devlist and usbconfig commands? This is the first guess of mine.

Ygarr commented 5 years ago

Sorry, last time after some full freezes while trying boot on different PC`s pulled out USB - now got smth like: : Can't open input file: No such device or address USB flash disappears even from lsblk after trying to read data from it.

ghost commented 5 years ago

Sorry, last time after some full freezes while trying boot on different PC`s pulled out USB - now got smth like: : Can't open input file: No such device or address USB flash disappears even from lsblk after trying to read data from it.

I have the same problem that Ygarr on ACER ASPIRE 3 A315 with boot on usb key Patriot "Rage" of 32GB Finally install hangup

ghost commented 5 years ago

Test on LEXAR USB same thing https://photos.app.goo.gl/C55WjhyKBRKy4icH7 img_20190121_090333

dsalychev commented 5 years ago

Test on LEXAR USB same thing

GEOM: da0: the secondary GPT header is not in the last LBA. looks fine from my pov. What is a capacity of your USB stick? Are you sure that it's 4 GB or above?

However, CAM status: CCB request completed with an error probably means that your device does not conform to the SCSI specification and there is no easy solution from the user's prospective: https://wiki.freebsd.org/USB (the last Q and A).

dsalychev commented 5 years ago

Sorry, last time after some full freezes while trying boot on different PC`s pulled out USB - now got smth like: : Can't open input file: No such device or address USB flash disappears even from lsblk after trying to read data from it.

That's generally not a good idea to pull USB storages this way. Have you checked this stick with another computer? Can it be recognized at all?

ghost commented 5 years ago

Test on LEXAR USB same thing

GEOM: da0: the secondary GPT header is not in the last LBA. looks fine from my pov. What is a capacity of your USB stick? Are you sure that it's 4 GB or above?

I use 2 differents usb stick : Patriot & LEXAR for my Linux install
It works very well and the key capacities are correct on two computer ACER & HP 6005 PRO

dsalychev commented 5 years ago

I have the same problem that Ygarr on ACER ASPIRE 3 A315 with boot on usb key Patriot "Rage" of 32GB

Uh, I'm sorry. I've just realized that you mentioned the USB stick. And it looks like my guess regarding violation of the SCSI specification was a correct one because "Supersonic Rage USB 3.0" could do this easily.

If you have another FreeBSD, you could help with posting an output of the usbconfig this way (I'm posting output of the commands from my FreeBSD desktop to give an example, select a unit -u and address -a of your USB stick):

# usbconfig
ugen1.1: <Intel EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen2.1: <Intel EHCI root HUB> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <vendor 0x045b product 0x0209> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen2.2: <vendor 0x8087 product 0x8000> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.2: <vendor 0x8087 product 0x8008> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.3: <COMPANY USB Device> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen0.4: <vendor 0x045b product 0x0209> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.5: <Ultimate Gadget Laboratories Ultimate Hacking Keyboard> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen0.6: <vendor 0x045b product 0x0210> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.7: <vendor 0x045b product 0x0210> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)

and dump of the USB device you're interested in:

# usbconfig -u 0 -a 5 dump_device_desc
ugen0.5: <Ultimate Gadget Laboratories Ultimate Hacking Keyboard> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000 
  bDeviceProtocol = 0x0000 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x1d50 
  idProduct = 0x6122 
  bcdDevice = 0x0101 
  iManufacturer = 0x0001  <Ultimate Gadget Laboratories>
  iProduct = 0x0002  <Ultimate Hacking Keyboard>
  iSerialNumber = 0x0000  <no string>
  bNumConfigurations = 0x0001
ghost commented 5 years ago

img_20190121_110916 img_20190121_111453

dsalychev commented 5 years ago

It looks like vendor (idVendor = 0x05dc) is known on my FreeBSD 12.0, but product itself is not:

$ uname -a
FreeBSD ds-pc 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC  amd64

and vendor is:

$ cat /sys/dev/usb/usbdevs | grep 0x05dc
vendor LEXAR        0x05dc  Lexar Media

but no product with idProduct = 0x0803:

$ cat /sys/dev/usb/usbdevs | grep 0x0803
vendor ZOOM     0x0803  Zoom Telephonics

Note that the latest NomadBSD 1.1 is based on FreeBSD 11.2-RELEASE which means that it may not contain a record with the Lexar Media vendor. You could probably try NomadBSD 1.2-RC1.

ghost commented 5 years ago

NomadBSD started

How: I must unplug plug usb key during the stress phase after load kernel so it starts ==>> Action not very Catholic. I think the usb key is again recognized with this manipulation.


See I get the dmesg after boot : 
[dmesg.txt](https://github.com/mrclksr/NomadBSD/files/2778825/dmesg.txt)

Another question :  
how can I setup the wifi interface (dhcp) ?
how can I install NomadBSD on hdd ?
mrclksr commented 5 years ago

Test on LEXAR USB same thing https://photos.app.goo.gl/C55WjhyKBRKy4icH7 img_20190121_090333

Hi @trassiorf,

it looks like FreeBSD takes to long to recognize the storage device. It appears after mountroot. Boot NomadBSD, and enter the loader prompt (menu option 3). Type:

set kern.cam.scsi_delay=60000
boot

If that works, you can later change the value of kern.cam.scsi_delay in /boot/loader.conf to make it permanent.

mrclksr commented 5 years ago

@trassiorf

Another question :
how can I setup the wifi interface (dhcp) ?

Ethernet connection using DHCP is set up automatically. For Wifi start wifimgr (Openbox menu -> Internet).

how can I install NomadBSD on hdd ?

A chapter on that topic will appear soon in the NomadBSD handbooklet.

ghost commented 5 years ago

The wifi card is not recognized on ACER INSPIRE


Attached to help some trace files for HP Compaq PRO 6000 SFF
The NVIDIA card is well recognized
The webcam hangs with the blue led on.
The wifi card in PCI-e is not recognized (ifconfig -a)

[dmesg_HP6000_PRO_SFF.txt](https://github.com/mrclksr/NomadBSD/files/2781780/dmesg_HP6000_PRO_SFF.txt)
[dsbdriverd_log_HP6000_PRO_SFF.txt](https://github.com/mrclksr/NomadBSD/files/2781781/dsbdriverd_log_HP6000_PRO_SFF.txt)
[df_h_HP6000_PRO_SFF.txt](https://github.com/mrclksr/NomadBSD/files/2781782/df_h_HP6000_PRO_SFF.txt)
[usbconfig_HP6000_PRO_SFF.txt](https://github.com/mrclksr/NomadBSD/files/2781783/usbconfig_HP6000_PRO_SFF.txt)
Ygarr commented 5 years ago

For Example while using "FRUGAL live USB mode" in MX Linux we have also slowly response with Live Persistent USB stick. Because of constant direct access to the drive But there is is another "FAST mode" with "to ram" functionality in MX Linux and saving and writing data e.g. before reboot. Hope such or like cases can be realized in NomadOS

Ygarr commented 5 years ago

It Is OFFTOPIC: trassiorf To enable wificard need to get its name: pciconf -lv Then to /etc/rc.conf add: kld_list=" iwm3168fw"
wlans_iwm0="wlan0"' ifconfig_wlan0="WPA DHCP"

P.S change iwm... to YOUR card

mrclksr commented 5 years ago

It Is OFFTOPIC: trassiorf To enable wificard need to get its name: pciconf -lv Then to /etc/rc.conf add: kld_list=" iwm3168fw" wlans_iwm0="wlan0"' ifconfig_wlan0="WPA DHCP"

P.S change iwm... to YOUR card

@Ygarr:

Wasn't NomadBSD able to set up your wifi device automatically? If not, could you please provide the vendor and device ID? See also: #8

Ygarr commented 5 years ago

please provide the vendor and device ID It was

Card-2: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi 
v: kernel bus ID: 02:00.0 chip ID: 8086:24fb 
IF: wlp2s0 state: up mac: 10:f0:05:bb:xx:xx 

As I understand it in a recent NomadBSD release, the support of this equipment already exists, to some extent. But cannot connect via GUI tool - wifimgr

mrclksr commented 5 years ago

please provide the vendor and device ID It was

Card-2: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi 
  v: kernel bus ID: 02:00.0 chip ID: 8086:24fb 
  IF: wlp2s0 state: up mac: 10:f0:05:bb:xx:xx 

As I understand it in a recent NomadBSD release, the support of this equipment already exists, to some extent. But cannot connect via GUI tool - wifimgr

Wifimgr requires a configured wlan device to work with. Because of missing entries in dsbdriverd's driver database, your device wasn't detected, and hence couldn't be setup automatically. The database has been updated. The next RC should be able to auto-detect and configure your wifi.

f-andrey commented 5 years ago

Why does not load the system into memory? as, time ago, it did http://frenzy.org.ua/eng/ (dead now), now with the possibility of remount root it should be easier

NitroNils commented 5 years ago

@ygarr "Then to /etc/rc.conf add: kld_list=" iwm3168fw" wlans_iwm0="wlan0"' ifconfig_wlan0="WPA DHCP"

P.S change iwm... to YOUR card" (sorry, couldn't format properly)

This in my config broke my NomadBSD - Couldn't boot because of that "Unterminated quoted string"! ´# mount -uo rw / Made the filesystem writable in single user mode so I could fix the typo.

bsdlme commented 5 years ago

Best is you use "sysrc" to edit /etc/rc.conf:

sysrc kld_list+=iwm3168fw
sysrc wlans_iwm0=wlan0
sysrc ifconfig_wlan0="WPA DHCP"
grahamperrin commented 3 years ago

Is this still as much of an issue as it was in January 2019?

I have NomadBSD 1.3.2 with FreeBSD 12.1-RELEASE-p11 on a 64 GB Kingston Digital DataTraveler SE9, experimenting with a circa 2008 Ergo Vista 631 notebook. It's somewhat slow (given the constraints of the hardware) but not unacceptably so.