Re: live-USB on SanDisk Cruzer Glide (was: Re: USB hubs/controllers detached before umass devices)
I've tested on a few different machines I have at my disposal and in all cases, NetBSD/{amd64,i386} (-10 or current) booted from a SanDisk Cruzer Glide (16GB) and mounting a filesystem read/write will report an HBA error and write errors on shutdown. I've now moved my NetBSD-10 live-USB installations to USB flash drives by PNY and they have no issues upon system shutdown. The SanDisk devices do work, I just can't use one as a bootable device with NetBSD. -- |/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X |\ / jdbaker[snail]consolidated[flyspeck]net OpenBSDFreeBSD | X No HTML/proprietary data in email. BSD just sits there and works! |/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
live-USB on SanDisk Cruzer Glide (was: Re: USB hubs/controllers detached before umass devices)
On Sat, 16 Mar 2024, John D. Baker wrote: > On Sat, 16 Mar 2024, John D. Baker wrote: > > > The only difference is that the USB devices with netbsd-10 are > > branded SanDisk and the ones with -current are branded PNY. I've just completed a dump/restore to swap the i386 live images so that 10.0_RC6 is on the PNY flash drive and -current (10.99.10) is on the SanDisk flash drive. The problem follows the SanDisk drive. Anything that causes the filesystem to be altered provokes the "Generic HBA error" (and if the disk was actually mounted, further "error writing fsbn " messages). Hitting reset to skip the 40-minute wait for all the retries to time out, rebooting the live image single-user and running 'fsck' to repair the filesystem, then immediately issuing 'halt', the system again reports the "Generic HBA error" but continues with the remaining steps to halt the system. Has anyone else had issues using a SanDisk USB flash drive for a NetBSD live image for NetBSD 9.99.*, -10, -current? These exact same SanDisk USB flash drives (Cruzer Glide 16GB) have been used with netbsd-8 and netbsd-9 in the past and did not exhibit this problem. (By "used", I mean installed/updated/tested. They've never seen any active use beyond that.) When used as a non-boot disk, it doesn't seem to have any problem even if left mounted at system halt/reboot. -- |/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X |\ / jdbaker[snail]consolidated[flyspeck]net OpenBSDFreeBSD | X No HTML/proprietary data in email. BSD just sits there and works! |/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Re: USB hubs/controllers detached before umass devices
On Sat, 16 Mar 2024, John D. Baker wrote: > The only difference is that the USB devices with netbsd-10 are > branded SanDisk and the ones with -current are branded PNY. > > Still updating/checking the netbsd-10/i386 live-USB setup. Same as my netbsd-10/amd64 live-USB setup. Seems anything that modifies the filesystem, even something relatively harmless like a forced 'fsck' on an already-clean file system from single-user mode will trigger the problem when the machine is then halted or rebooted. Below is an example of simply allowing the system to go multi-user, logging in and rebooting: $ shutdown -r now ; exit Shutdown NOW! shutdown: [pid 1223] wall: You have write permission turned off; no reply possible Mar 16 20:16:44 nblive10_i386 shutdown: reboot by live: NetBSD/i386 (nblive10_i386) (constty) login: Mar 16 20:16:52 nblive10_i386 syslogd[442]: Exiting on signal 15 [ 75.2656479] syncing disks... done [ 75.3859144] wd5: detached [ 75.4236845] wd4: detached [ 75.4460055] wd3: detached [ 75.4860049] wd2: detached [ 75.5160043] wd1: detached [ 75.5460050] wd0: detached [ 75.5760051] uhub3: detached [ 75.6060050] uhub2: detached [ 75.6460050] uhub1: detached [ 75.6760039] uhub0: detached [ 75.7060038] inphy0: detached [ 75.7460049] fxp0: detached [ 75.7760043] audio0: detached [ 75.8060036] makphy0: detached [ 75.8460037] wm0: detached [ 75.8760037] iic0: detached [ 75.9060045] atabus2: detached [ 75.9460035] atabus1: detached [ 75.9760037] atabus0: detached [ 76.0183341] usb3: detached [ 76.0505600] usb2: detached [ 76.0827866] usb1: detached [ 76.1150118] usb0: detached [ 76.1460037] pci4: detached [ 76.1760030] pci3: detached [ 76.2060036] pci2: detached [ 76.2360028] pci1: detached [ 76.2761541] sysbeep0: detached [ 76.3060036] midi0: detached [ 76.3458067] ichsmb0: detached [ 76.3760032] uhci3: detached [ 76.4060036] uhci2: detached [ 76.4460030] uhci1: detached [ 76.4760022] uhci0: detached [ 76.5060030] ppb3: detached [ 76.5460024] ppb2: detached [ 76.5760030] ppb1: detached [ 76.6109196] ppb0: detached [ 76.6360021] sd0(umass0:0:0:0): generic HBA error [ 77.6097832] sd0a: error writing fsbn 13207857 (sd0 bn 13207858; cn 13103 tn 0 sn 34) [ 79.5273860] sd0a: error writing fsbn 13207857 (sd0 bn 13207858; cn 13103 tn 0 sn 34) [ 80.561] sd0a: error writing fsbn 13207858 (sd0 bn 13207859; cn 13103 tn 0 sn 35) [ 81.4949480] sd0a: error writing fsbn 13207859 of 13207859-13207868 (sd0 bn 13207860; cn 13103 tn 0 sn 36) [ 82.4786168] sd0a: error writing fsbn 13207869 of 13207869-13207872 (sd0 bn 13207870; cn 13103 tn 0 sn 46) [ 343.7188423] sd0a: error writing fsbn 13207873 (sd0 bn 13207874; cn 13103 tn 0 sn 50) [ 670.1236467] sd0a: error writing fsbn 13207858 (sd0 bn 13207859; cn 13103 tn 0 sn 35) [ 996.5184079] sd0a: error writing fsbn 13207859 of 13207859-13207868 (sd0 bn 13207860; cn 13103 tn 0 sn 36) [ 1322.9532457] sd0a: error writing fsbn 13207869 of 13207869-13207872 (sd0 bn 13207870; cn 13103 tn 0 sn 46) [ 1649.3679973] sd0a: error writing fsbn 13207873 (sd0 bn 13207874; cn 13103 tn 0 sn 50) [ 2176.5780366] sd0: cache synchronization failed [ 2226.8017161] sd0: detached [ 2226.8351744] scsibus0: detached [ 2226.8726040] rebooting... -- |/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X |\ / jdbaker[snail]consolidated[flyspeck]net OpenBSDFreeBSD | X No HTML/proprietary data in email. BSD just sits there and works! |/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Re: USB hubs/controllers detached before umass devices
On Sat, 16 Mar 2024, John D. Baker wrote: > I will try again on my live-USB drive which has -current on it. My -current live-USB drives shutdown cleanly (amd64 and i386). The only difference is that the USB devices with netbsd-10 are branded SanDisk and the ones with -current are branded PNY. Still updating/checking the netbsd-10/i386 live-USB setup. -- |/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X |\ / jdbaker[snail]consolidated[flyspeck]net OpenBSDFreeBSD | X No HTML/proprietary data in email. BSD just sits there and works! |/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645