Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB NAND Drive Bricked x2 #4642

Closed
Fireman1224 opened this issue Aug 15, 2021 · 21 comments
Closed

USB NAND Drive Bricked x2 #4642

Fireman1224 opened this issue Aug 15, 2021 · 21 comments

Comments

@Fireman1224
Copy link

Here is the result of lsblk after booting from the microSD with the USB drive installed.

root@PiHole-2:~# lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0 14.9G  0 disk
├─mmcblk0p1 179:1    0 41.8M  0 part /boot
└─mmcblk0p2 179:2    0 14.8G  0 part /
root@PiHole-2:~#

The USB is not listed, only the 16gb microSD.

Should we move the conversation to a different thread?

Thanks
The USB drive is not listed, only the 16gb microSD.

Should we move the conversation to a different thread?

Thanks

Originally posted by @Fireman1224 in #3708 (comment)

@Fireman1224
Copy link
Author

Fireman1224 commented Aug 15, 2021

@MichaIng @Joulinar

Logfile attached. Click to expand!
root@PiHole-2:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.66-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1253 SMP Thu Aug 15 11:49:46 BST 2019
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x3dc00000
[    0.000000] On node 0 totalpages: 255488
[    0.000000]   Normal zone: 2246 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 255488 pages, LIFO batch:63
[    0.000000] random: get_random_bytes called from start_kernel+0xac/0x4b4 with crng_init=0
[    0.000000] percpu: Embedded 17 pages/cpu s39488 r8192 d21952 u69632
[    0.000000] pcpu-alloc: s39488 r8192 d21952 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 253242
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=720 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=PARTUUID=27504eef-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 989820K/1021952K available (8192K kernel code, 629K rwdata, 2176K rodata, 1024K init, 821K bss, 23940K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xbe800000 - 0xff800000   (1040 MB)
                   lowmem  : 0x80000000 - 0xbe600000   ( 998 MB)
                   modules : 0x7f000000 - 0x80000000   (  16 MB)
                     .text : 0x(ptrval) - 0x(ptrval)   (9184 kB)
                     .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
                     .data : 0x(ptrval) - 0x(ptrval)   ( 630 kB)
                      .bss : 0x(ptrval) - 0x(ptrval)   ( 822 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 26394 entries in 78 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000023] Switching to timer-based delay loop, resolution 52ns
[    0.000291] Console: colour dummy device 80x30
[    0.000916] console [tty1] enabled
[    0.000978] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001023] pid_max: default: 32768 minimum: 301
[    0.001379] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001415] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002348] CPU: Testing write buffer coherency: ok
[    0.002830] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003496] Setting up static identity map for 0x100000 - 0x10003c
[    0.003664] rcu: Hierarchical SRCU implementation.
[    0.004478] smp: Bringing up secondary CPUs ...
[    0.005338] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.006268] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.007130] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.007250] smp: Brought up 1 node, 4 CPUs
[    0.007331] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.007355] CPU: All CPU(s) started in HYP mode.
[    0.007375] CPU: Virtualization extensions available.
[    0.008374] devtmpfs: initialized
[    0.021429] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.021703] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.021752] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.022358] pinctrl core: initialized pinctrl subsystem
[    0.023225] NET: Registered protocol family 16
[    0.026190] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.031897] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.031933] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.032153] Serial: AMBA PL011 UART driver
[    0.034465] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.068846] bcm2835-dma 3f007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1
[    0.070562] SCSI subsystem initialized
[    0.070800] usbcore: registered new interface driver usbfs
[    0.070882] usbcore: registered new interface driver hub
[    0.070994] usbcore: registered new device driver usb
[    0.090118] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-08-15 12:07, variant start_cd
[    0.100386] raspberrypi-firmware soc:firmware: Firmware hash is 0e6daa5106dd4164474616408e0dc24f997ffcf3
[    0.111692] clocksource: Switched to clocksource arch_sys_counter
[    0.200933] VFS: Disk quotas dquot_6.6.0
[    0.201044] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.201219] FS-Cache: Loaded
[    0.201444] CacheFiles: Loaded
[    0.211420] NET: Registered protocol family 2
[    0.212238] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.212303] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.212434] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.212638] TCP: Hash tables configured (established 8192 bind 8192)
[    0.212791] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.212857] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.213195] NET: Registered protocol family 1
[    0.213765] RPC: Registered named UNIX socket transport module.
[    0.213792] RPC: Registered udp transport module.
[    0.213814] RPC: Registered tcp transport module.
[    0.213836] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.215536] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.218582] Initialise system trusted keyrings
[    0.218794] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.228777] FS-Cache: Netfs 'nfs' registered for caching
[    0.229387] NFS: Registering the id_resolver key type
[    0.229446] Key type id_resolver registered
[    0.229468] Key type id_legacy registered
[    0.229500] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.231837] Key type asymmetric registered
[    0.231867] Asymmetric key parser 'x509' registered
[    0.231935] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.232114] io scheduler noop registered
[    0.232138] io scheduler deadline registered (default)
[    0.232336] io scheduler cfq registered
[    0.232360] io scheduler mq-deadline registered (default)
[    0.232384] io scheduler kyber registered
[    0.234533] bcm2708_fb soc:fb: FB found 1 display(s)
[    0.261306] Console: switching to colour frame buffer device 160x45
[    0.275677] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1280x720
[    0.276930] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.278507] bcm2835-rng 3f104000.rng: hwrng registered
[    0.278932] vc-mem: phys_addr:0x00000000 mem_base=0x3f000000 mem_size:0x3f600000(1014 MiB)
[    0.279664] vc-sm: Videocore shared memory driver
[    0.280105] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    0.291120] brd: module loaded
[    0.301453] loop: module loaded
[    0.302211] Loading iSCSI transport class v2.0-870.
[    0.303035] libphy: Fixed MDIO Bus: probed
[    0.307963] usbcore: registered new interface driver lan78xx
[    0.312880] usbcore: registered new interface driver smsc95xx
[    0.317615] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.350204] dwc_otg 3f980000.usb: base=(ptrval)
[    0.555118] Core Release: 2.80a
[    0.559715] Setting default values for core params
[    0.564396] Finished setting default values for core params
[    0.769376] Using Buffer DMA mode
[    0.774109] Periodic Transfer Interrupt Enhancement - disabled
[    0.778918] Multiprocessor Interrupt Enhancement - disabled
[    0.783712] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.788415] Dedicated Tx FIFOs mode
[    0.793532] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = bdd14000 dma = 0xfdd14000 len=9024
[    0.798434] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.822305] dwc_otg: Microframe scheduler enabled
[    0.822366] WARN::hcd_init_fiq:457: FIQ on core 1
[    0.827126] WARN::hcd_init_fiq:458: FIQ ASM at 80654f4c length 36
[    0.831888] WARN::hcd_init_fiq:497: MPHI regs_base at be810000
[    0.836588] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.841238] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.845987] dwc_otg 3f980000.usb: irq 56, io mem 0x00000000
[    0.850716] Init: Port Power? op_state=1
[    0.855421] Init: Power Port (0)
[    0.860319] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.865224] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.870102] usb usb1: Product: DWC OTG Controller
[    0.874935] usb usb1: Manufacturer: Linux 4.19.66-v7+ dwc_otg_hcd
[    0.879746] usb usb1: SerialNumber: 3f980000.usb
[    0.885103] hub 1-0:1.0: USB hub found
[    0.889803] hub 1-0:1.0: 1 port detected
[    0.894929] dwc_otg: FIQ enabled
[    0.894935] dwc_otg: NAK holdoff enabled
[    0.894941] dwc_otg: FIQ split-transaction FSM enabled
[    0.894951] Module dwc_common_port init
[    0.895218] usbcore: registered new interface driver usb-storage
[    0.899934] mousedev: PS/2 mouse device common for all mice
[    0.905291] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.910004] bcm2835-cpufreq: min=600000 max=1400000
[    0.914978] sdhci: Secure Digital Host Controller Interface driver
[    0.919543] sdhci: Copyright(c) Pierre Ossman
[    0.924501] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    0.929258] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.935523] ledtrig-cpu: registered to indicate activity on CPUs
[    0.940389] hidraw: raw HID events driver (C) Jiri Kosina
[    0.945334] usbcore: registered new interface driver usbhid
[    0.950070] usbhid: USB HID core driver
[    0.955585] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[    0.961886] [vc_sm_connected_init]: start
[    0.966918] vc_vchi_sm_init: failed to open VCHI service (-1)
[    0.966927] [vc_sm_connected_init]: failed to initialize shared memory service
[    0.976622] [vc_sm_connected_init]: end - returning -1
[    0.982629] Initializing XFRM netlink socket
[    0.987443] NET: Registered protocol family 17
[    0.992248] Key type dns_resolver registered
[    0.997277] Registering SWP/SWPB emulation handler
[    1.002685] registered taskstats version 1
[    1.007291] Loading compiled-in X.509 certificates
[    1.020611] sdhost: log_buf @ (ptrval) (fdd13000)
[    1.073796] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.079667] of_cfs_init
[    1.084384] of_cfs_init: OK
[    1.089531] Waiting for root device PARTUUID=27504eef-02...
[    1.115096] Indeed it is in host mode hprt0 = 00021501
[    1.207386] random: fast init done
[    1.244497] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.252880] mmc0: new high speed SDHC card at address aaaa
[    1.258871] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.268766]  mmcblk0: p1 p2
[    1.314887] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.319798] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.321746] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.329621] Indeed it is in host mode hprt0 = 00001101
[    1.336736] devtmpfs: mounted
[    1.396357] Freeing unused kernel memory: 1024K
[    1.401664] Run /sbin/init as init process
[    1.572050] usb 1-1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[    1.577085] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.582744] hub 1-1:1.0: USB hub found
[    1.587748] hub 1-1:1.0: 4 ports detected
[    1.878821] systemd[1]: System time before build time, advancing clock.
[    1.911742] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.042150] usb 1-1.1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[    2.043229] NET: Registered protocol family 10
[    2.047157] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.053406] Segment Routing with IPv6
[    2.062678] hub 1-1.1:1.0: USB hub found
[    2.067741] hub 1-1.1:1.0: 3 ports detected
[    2.093041] random: systemd: uninitialized urandom read (16 bytes read)
[    2.102594] random: systemd: uninitialized urandom read (16 bytes read)
[    2.113830] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    2.124939] systemd[1]: Detected architecture arm.
[    2.154371] systemd[1]: Set hostname to <PiHole-2>.
[    2.229822] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
[    2.425746] dwc_otg_handle_wakeup_detected_intr lxstate = 2
[    2.589751] systemd[1]: apt-daily.timer: Cannot add dependency job, ignoring: Unit apt-daily.timer is masked.
[    2.595519] systemd[1]: apt-daily-upgrade.timer: Cannot add dependency job, ignoring: Unit apt-daily-upgrade.timer is masked.
[    2.601416] systemd[1]: systemd-logind.service: Cannot add dependency job, ignoring: Unit systemd-logind.service is masked.
[    2.607884] systemd[1]: getty-static.service: Cannot add dependency job, ignoring: Unit getty-static.service is masked.
[    2.640598] systemd[1]: Reached target Remote File Systems.
[    2.654168] systemd[1]: Listening on udev Control Socket.
[    2.667198] systemd[1]: Listening on Journal Socket (/dev/log).
[    2.831811] usb 1-1.1.1: new high-speed USB device number 4 using dwc_otg
[    2.962404] usb 1-1.1.1: New USB device found, idVendor=0424, idProduct=7800, bcdDevice= 3.00
[    2.962420] usb 1-1.1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.227408] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): No External EEPROM. Setting MAC Speed
[    3.228424] libphy: lan78xx-mdiobus: probed
[    3.252235] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): int urb period 64
[    3.417023] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.667042] systemd-journald[119]: Received request to flush runtime journal from PID 1
[    3.910608] Adding 1097724k swap on /var/swap.  Priority:-2 extents:7 across:1171452k SSFS
[    3.995107] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.003846] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    4.003860] [vc_sm_connected_init]: start
[    4.004076] vc_sm_cma_vchi_init: failed to open VCHI service (-1)
[    4.004086] [vc_sm_connected_init]: failed to initialize shared memory service
[    4.229104] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    4.590731] random: crng init done
[    4.590763] random: 7 urandom warning(s) missed due to ratelimiting
[    5.198041] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    6.214386] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.691719] usb 1-1.1.2: new high-speed USB device number 5 using dwc_otg
[    8.821973] usb 1-1.1.2: New USB device found, idVendor=ffff, idProduct=1201, bcdDevice= 0.00
[    8.821984] usb 1-1.1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    8.822430] usb-storage 1-1.1.2:1.0: USB Mass Storage device detected
[    8.828540] scsi host0: usb-storage 1-1.1.2:1.0
[    9.153651] usbcore: registered new interface driver uas
[    9.832209] scsi 0:0:0:0: Direct-Access     NAND     USB2DISK         0.00 PQ: 0 ANSI: 4
[    9.833976] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   10.196077] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  540.666822] systemd: 30 output lines suppressed due to ratelimiting
root@PiHole-2:~#

@Joulinar
Copy link
Collaborator

Looks like the NAND disk is detected as sda

[ 9.832209] scsi 0:0:0:0: Direct-Access NAND USB2DISK 0.00 PQ: 0 ANSI: 4
[ 9.833976] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 10.196077] sd 0:0:0:0: Attached scsi generic sg0 type 0

@Fireman1224
Copy link
Author

Fireman1224 commented Aug 15, 2021

I did see that, but on a rasbian no drive comes up nor on a Windows device...

It also does nothing when the microSD card is removed and the device is started up (only the power LED comes on, no blinking LED).

Any idea how to fix?

Thanks

@MichaIng
Copy link
Owner

MichaIng commented Aug 15, 2021

Strange that lsblk doesn't show it. Does fdisk do?

fdisk -l
[[ -b /dev/sda ]] && echo 'Block device is there'

Also:

[ 540.666822] systemd: 30 output lines suppressed due to ratelimiting

Would be interesting what these 30 lines are. Kernel message rate limiting can be disabled until reboot with:

echo 0 > /proc/sys/kernel/printk_ratelimit
echo 0 > /proc/sys/kernel/printk_ratelimit_burst

And:

vcgencmd get_throttled

@Fireman1224
Copy link
Author

Fireman1224 commented Aug 15, 2021

Logfile attached. Click to expand!
root@PiHole-2:~# fdisk -l
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mmcblk0: 14.9 GiB, 15931539456 bytes, 31116288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x27504eef

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk0p1       8192    93802    85611 41.8M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      98304 31116287 31017984 14.8G 83 Linux

root@PiHole-2:~# [[ -b /dev/sda ]] && echo 'Block device is there'
Block device is there

@Fireman1224
Copy link
Author

root@PiHole-2:~# echo 0 > /proc/sys/kernel/printk_ratelimit
root@PiHole-2:~# echo 0 > /proc/sys/kernel/printk_ratelimit_burst
root@PiHole-2:~# vcgencmd get_throttled
throttled=0x0

@MichaIng
Copy link
Owner

MichaIng commented Aug 15, 2021

Can you run these:

partprobe /dev/sda
partx -u /dev/sda
parted /dev/sda print

The device file is there, but if no tool is able to detect it as block device, then I cannot imagine the drive content being the issue, but the hardware/device/firmware itself. I mean the tools are not even able to format the drive. If you flashed the image from Windows, obviously Windows is able to detect it as drive. Does it detect the /boot FAT partition as well, else what does the Windows disk management show?

@Fireman1224
Copy link
Author

root@PiHole-2:~# partprobe /dev/sda
Error: Error opening /dev/sda: No medium found
root@PiHole-2:~# partx -u /dev/sda
partx: cannot open /dev/sda: No medium found
root@PiHole-2:~# parted /dev/sda print
Error: Error opening /dev/sda: No medium found
Retry/Cancel? Cancel
root@PiHole-2:~#

From Windows Device Manager:
image

From Windows Drive Manager:
image

@MichaIng
Copy link
Owner

I guess you attached it to a USB3 port, right? Could you try (with a fresh image) to use a USB2 port? Another idea I have is that UAS causes issues with that stick. It is a small USB stick, no 2.5" SSD, right?

@Fireman1224
Copy link
Author

Fireman1224 commented Aug 15, 2021 via email

@MichaIng
Copy link
Owner

Ah right, then also UAS is not a topic.

Not to mention I'm out of USB drives

You mean also on Windows you are unable to format that drives?

@Fireman1224
Copy link
Author

That's correct. It's like the partition info is lost and not recoverable.

@MichaIng
Copy link
Owner

Well the partition info is not required for being able to format the drive. Re-creating the partition table is a common task. But the problem on Linux is that even the tools which are there for creating partition tables do not detect the drive as accessible block device.

Here are similar cases:

But I cannot imagine that the RPi really broke the USB stick, as this must mean serious overvoltage on the USB port, or so.
The following does not work either, does it?

dd if=/dev/zero of=/dev/sda bs=8M

@Fireman1224
Copy link
Author

root@PiHole-2:~# dd if=/dev/zero of=/dev/sda bs=8M
dd: failed to open '/dev/sda': No medium found
root@PiHole-2:~#

@MichaIng
Copy link
Owner

So indeed it seems to be broken then. Were these known brands, probably some warranty on them, or very old ones? As said, I cannot really imagine that the RPi killed them, without them being close to dead already, but risky/expensive to really debug the case. Also strange that it worked exactly until reboot, without starting to get I/O errors earlier.

Always good to keep an eye on RPi repositories and forum, just in case someone had a similar issue, like if is something with the newest kernel/firmware release:

@Fireman1224
Copy link
Author

These were cheap amazon bulk purchases, but I've not had any issues in other applications with these drives. I'm not sure what to think. I was going to try a name brand 16gb, but I'm a little worried it may brick it too...

@MichaIng
Copy link
Owner

I'm not sure what to think. I was going to try a name brand 16gb, but I'm a little worried it may brick it too...

Understandable. Probably try it first with Raspberry Pi OS Lite, update all packages and kernel, and see ich that works stable. If it bricks again, it is an issue with the RPi and at least it's worth trying to contact the RPi support about it. Not sure if monitoring voltage on the port of some time would give any hint...

@Fireman1224
Copy link
Author

I don't think it's likely that it was an over voltage issue because I tried it with 2 separate RPi 3's. The likelyhood that 2 Pi's had over voltage on a USB is extremely unlikely...

@Fireman1224
Copy link
Author

@MichaIng

I decided to try the Sandisk 16gb thumb drive. I installed the Pi OS from their website and was able to install everything I needed and it worked properly. I then decided to wipe the drive and re-downloaded the DietPi image from your website and try it again, this time doing installations one at a time and rebooting between each. Basically I installed DietPi with no added software, then rebooted, installed Fail2Ban, rebooted, PiHole, rebooted, PiVPN, rebooted.

Everything seems to be working fine. I guess the cheap memory had issues.... I really don't have a clue what could have been different about them. I really appreciate your help with troubleshooting this!!

Thanks

@MichaIng
Copy link
Owner

Okay, I'm glad the new thumb drive was not toasted as well. Then indeed it seems the other two were too cheap, although still strange that both died to close after another, like with a self-destruction timer included 😄.

@Joulinar
Copy link
Collaborator

if they are still in warranty, try to return them 😃

Personally I'm using a SanDisk Ultra Fit 16Gb. It's small and thin USB stick but working quite well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants