openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
820 stars 251 forks source link

System root not on SD card #1204

Closed HinrichF closed 3 years ago

HinrichF commented 4 years ago

Issue information:

Installed Raspberry Pi OS Lite from the latest openHabian SD card image copied to SD with Etcher. When attempting to move /root to USB3 attached SSD I get the following error:

Debug information:

############################################################################### ############### Openhabian ################################################## ###############################################################################

Ip = Unable to parse ip . Please debug.

Release = Raspbian GNU/Linux 10 (buster)

Kernel = Linux 5.4.72-v7l+

Platform = Raspberry Pi 4 Model B Rev 1.1

Uptime = 0 day(s). 0:5:17

CPU Usage = 0% avg over 4 cpu(s) (4 core(s) x 1 socket(s))

CPU Load = 1m: 0.11, 5m: 0.38, 15m: 0.22

Memory = Free: 3.13GB (83%), Used: 0.65GB (17%), Total: 3.78GB

Swap = Free: 1.99GB (100%), Used: 0.00GB (0%), Total: 1.99GB

Root = Free: 15.51GB (56%), Used: 12.07GB (44%), Total: 28.79GB

Updates = 0 apt updates available.

Sessions = 1 session(s)

Processes = 117 running processes of 32768 maximum processes

###############################################################################

          Welcome to            __  _____    ____  _
        ____  ____  ___  ____  / / / /   |  / __ )(_)___ _____
       / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  / / __ `/ __ \
      / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ / / /_/ / / / /
      \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/_/\__,_/_/ /_/
          /_/
              openHAB 2.5.9-1 (Release Build)

using sudo openhaban-config:

┌─────────────────────┤ Move system root to '/dev/sda1'? ├─────────────────────┐ │ │ │ DANGEROUS OPERATION, USE WITH PRECAUTION! │ │ │ │ This will move your system root from your SD card to a USB device like an │ │ SSD or a USB stick. │ │ ATTENTION: this is NOT the recommended method to reduce wearout and failure │ │ of the SD card. If that is your intention, stop here and go for ZRAM (menu │ │ option 38). │ │ │ │ If you still want to proceed, │ │ 1.) Ensure your RPi model can boot from a device other than the internal SD │ │ card reader. │ │ 2.) Make a backup of your SD card │ │ 3.) Remove all USB mass storage devices from your Pi │ │ 4.) Insert the USB device to be used for the new system root. │ │ │ │ THIS DEVICE WILL BE COMPLETELY DELETED! │ │ │ │ Do you want to continue at your own risk? │ │ │ │ │ │ │ └──────────────────────────────────────────────────────────────────────────────┘

┌───────────────────────┤ System root not on SD card! ├────────────────────────┐ │ │ │ It seems that your system root is not on the SD card. │ │ │ │ Aborting, process cannot be started! │ │ │ │ │ │ │ └──────────────────────────────────────────────────────────────────────────────┘

This happens with either versions of /boot/cmdline.txt original /boot/cmdline.txt console=serial0,115200 console=tty1 root=PARTUUID=3ae5f026-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

modified /boot/cmdline.txt substituting UUID with /dev/mmcblk0p2: console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

uname -m armv7l

lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 111.8G 0 disk mmcblk0 179:0 0 29.5G 0 disk ├─mmcblk0p1 179:1 0 256M 0 part /boot └─mmcblk0p2 179:2 0 29.3G 0 part /

sudo dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.4.72-v7l+ (dom@buildbot) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #1354 SMP Mon Oct 19 13:39:01 BST 2020 [ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.1 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] Reserved memory: created CMA memory pool at 0x000000001ec00000, size 256 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] On node 0 totalpages: 1025536 [ 0.000000] DMA zone: 2304 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 196608 pages, LIFO batch:63 [ 0.000000] HighMem zone: 828928 pages, LIFO batch:63 [ 0.000000] percpu: Embedded 20 pages/cpu s49804 r8192 d23924 u81920 [ 0.000000] pcpu-alloc: s49804 r8192 d23924 u81920 alloc=20*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1023232 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 smsc95xx.macaddr=DC:A6:32:1C:23:83 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0x17cc0000-0x1bcc0000] (64MB) [ 0.000000] Memory: 3706172K/4102144K available (10240K kernel code, 745K rwdata, 2836K rodata, 2048K init, 856K bss, 133828K reserved, 262144K cma-reserved, 3315712K highmem) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 31086 entries in 61 pages [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] random: get_random_bytes called from start_kernel+0x338/0x520 with crng_init=0 [ 0.000008] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns [ 0.000032] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns [ 0.000112] bcm2835: system timer (irq = 17) [ 0.000757] arch_timer: cp15 timer(s) running at 54.00MHz (phys). [ 0.000777] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns [ 0.000798] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns [ 0.000814] Switching to timer-based delay loop, resolution 18ns [ 0.001051] Console: colour dummy device 80x30 [ 0.001556] printk: console [tty1] enabled [ 0.001620] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000) [ 0.001662] pid_max: default: 32768 minimum: 301 [ 0.001821] LSM: Security Framework initializing [ 0.002025] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.002067] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.003340] Disabling memory control group subsystem [ 0.003478] CPU: Testing write buffer coherency: ok [ 0.004000] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.004932] Setting up static identity map for 0x200000 - 0x20003c [ 0.005156] rcu: Hierarchical SRCU implementation. [ 0.005847] smp: Bringing up secondary CPUs ... [ 0.007051] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.008370] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.009628] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.009785] smp: Brought up 1 node, 4 CPUs [ 0.009857] SMP: Total of 4 processors activated (432.00 BogoMIPS). [ 0.009884] CPU: All CPU(s) started in HYP mode. [ 0.009908] CPU: Virtualization extensions available. [ 0.010753] devtmpfs: initialized [ 0.024138] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0 [ 0.024412] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.024463] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.031192] pinctrl core: initialized pinctrl subsystem [ 0.032213] NET: Registered protocol family 16 [ 0.036080] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.036672] audit: initializing netlink subsys (disabled) [ 0.036939] audit: type=2000 audit(0.030:1): state=initialized audit_enabled=0 res=1 [ 0.038024] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.038060] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.038395] Serial: AMBA PL011 UART driver [ 0.041932] bcm2835-mbox fe00b880.mailbox: mailbox enabled [ 0.060835] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-10-15 12:55, variant start_cd [ 0.070851] raspberrypi-firmware soc:firmware: Firmware hash is 7a06d62ff1c0c6bd72d4b9a91b6e38eaf68aeb70 [ 0.126097] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1 [ 0.131213] vgaarb: loaded [ 0.131693] SCSI subsystem initialized [ 0.131930] usbcore: registered new interface driver usbfs [ 0.132003] usbcore: registered new interface driver hub [ 0.132149] usbcore: registered new device driver usb [ 0.132500] usb_phy_generic phy: phy supply vcc not found, using dummy regulator [ 0.134301] clocksource: Switched to clocksource arch_sys_counter [ 0.840704] VFS: Disk quotas dquot_6.6.0 [ 0.840830] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.841010] FS-Cache: Loaded [ 0.841229] CacheFiles: Loaded [ 0.851498] thermal_sys: Registered thermal governor 'step_wise' [ 0.851861] NET: Registered protocol family 2 [ 0.852631] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 0.852685] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 0.852761] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.852844] TCP: Hash tables configured (established 8192 bind 8192) [ 0.853008] UDP hash table entries: 512 (order: 2, 16384 bytes, linear) [ 0.853059] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear) [ 0.853329] NET: Registered protocol family 1 [ 0.854076] RPC: Registered named UNIX socket transport module. [ 0.854107] RPC: Registered udp transport module. [ 0.854132] RPC: Registered tcp transport module. [ 0.854157] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.854192] PCI: CLS 0 bytes, default 64 [ 0.856267] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available [ 0.858464] Initialise system trusted keyrings [ 0.858738] workingset: timestamp_bits=14 max_order=20 bucket_order=6 [ 0.869659] FS-Cache: Netfs 'nfs' registered for caching [ 0.870411] NFS: Registering the id_resolver key type [ 0.870471] Key type id_resolver registered [ 0.870498] Key type id_legacy registered [ 0.870534] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.871633] Key type asymmetric registered [ 0.871662] Asymmetric key parser 'x509' registered [ 0.871869] bounce: pool size: 64 pages [ 0.871922] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 0.872176] io scheduler mq-deadline registered [ 0.872205] io scheduler kyber registered [ 0.876252] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges: [ 0.876295] brcm-pcie fd500000.pcie: No bus range found for /scb/pcie@7d500000, using [bus 00-ff] [ 0.876400] brcm-pcie fd500000.pcie: MEM 0x0600000000..0x0603ffffff -> 0x00f8000000 [ 0.876492] brcm-pcie fd500000.pcie: IB MEM 0x0000000000..0x00bfffffff -> 0x0000000000 [ 0.936424] brcm-pcie fd500000.pcie: link up, 5 GT/s x1 (SSC) [ 0.936760] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00 [ 0.936795] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.936829] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff]) [ 0.936909] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400 [ 0.937193] pci 0000:00:00.0: PME# supported from D0 D3hot [ 0.940470] PCI: bus0: Fast back to back transfers disabled [ 0.940720] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330 [ 0.940883] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit] [ 0.941331] pci 0000:01:00.0: PME# supported from D0 D3cold [ 0.944641] PCI: bus1: Fast back to back transfers disabled [ 0.944716] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff] [ 0.944754] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit] [ 0.944855] pci 0000:00:00.0: PCI bridge to [bus 01] [ 0.944892] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff] [ 0.945221] pcieport 0000:00:00.0: enabling device (0140 -> 0142) [ 0.945482] pcieport 0000:00:00.0: PME: Signaling with IRQ 55 [ 0.945901] pcieport 0000:00:00.0: AER: enabled with IRQ 55 [ 0.946261] pci 0000:01:00.0: enabling device (0140 -> 0142) [ 0.953215] iproc-rng200 fe104000.rng: hwrng registered [ 0.953565] vc-mem: phys_addr:0x00000000 mem_base=0x3f000000 mem_size:0x3f600000(1014 MiB) [ 0.954230] vc-sm: Videocore shared memory driver [ 0.954880] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000 [ 0.967059] brd: module loaded [ 0.979382] loop: module loaded [ 0.980813] Loading iSCSI transport class v2.0-870. [ 0.982771] libphy: Fixed MDIO Bus: probed [ 0.983416] bcmgenet fd580000.ethernet: failed to get enet clock [ 0.983452] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000 [ 0.983489] bcmgenet fd580000.ethernet: failed to get enet-wol clock [ 0.983525] bcmgenet fd580000.ethernet: failed to get enet-eee clock [ 0.983567] bcmgenet: Skipping UMAC reset [ 0.994342] libphy: bcmgenet MII bus: probed [ 1.074421] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus [ 1.075466] usbcore: registered new interface driver r8152 [ 1.075546] usbcore: registered new interface driver lan78xx [ 1.075619] usbcore: registered new interface driver smsc95xx [ 1.076080] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 1.076129] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1 [ 1.078748] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890 [ 1.080079] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04 [ 1.080119] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.080154] usb usb1: Product: xHCI Host Controller [ 1.080182] usb usb1: Manufacturer: Linux 5.4.72-v7l+ xhci-hcd [ 1.080211] usb usb1: SerialNumber: 0000:01:00.0 [ 1.080829] hub 1-0:1.0: USB hub found [ 1.080952] hub 1-0:1.0: 1 port detected [ 1.081553] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 1.081594] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2 [ 1.081636] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed [ 1.082183] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04 [ 1.082223] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.082256] usb usb2: Product: xHCI Host Controller [ 1.082284] usb usb2: Manufacturer: Linux 5.4.72-v7l+ xhci-hcd [ 1.082313] usb usb2: SerialNumber: 0000:01:00.0 [ 1.082910] hub 2-0:1.0: USB hub found [ 1.083025] hub 2-0:1.0: 4 ports detected [ 1.084563] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 1.084872] dwc_otg: FIQ enabled [ 1.084885] dwc_otg: NAK holdoff enabled [ 1.084898] dwc_otg: FIQ split-transaction FSM enabled [ 1.084913] Module dwc_common_port init [ 1.085356] usbcore: registered new interface driver uas [ 1.085480] usbcore: registered new interface driver usb-storage [ 1.085689] mousedev: PS/2 mouse device common for all mice [ 1.087573] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 1.091300] sdhci: Secure Digital Host Controller Interface driver [ 1.091332] sdhci: Copyright(c) Pierre Ossman [ 1.091957] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe [ 1.092544] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.096431] ledtrig-cpu: registered to indicate activity on CPUs [ 1.096760] hidraw: raw HID events driver (C) Jiri Kosina [ 1.096974] usbcore: registered new interface driver usbhid [ 1.097002] usbhid: USB HID core driver [ 1.098046] vchiq: vchiq_init_state: slot_zero = (ptrval)

[ 1.104495] vc_vchi_sm_init: failed to open VCHI service (-1) [ 1.104502] [vc_sm_connected_init]: failed to initialize shared memory service [ 1.104553] [vc_sm_connected_init]: end - returning -1 [ 1.106839] Initializing XFRM netlink socket [ 1.106893] NET: Registered protocol family 17 [ 1.107010] Key type dns_resolver registered [ 1.107393] Registering SWP/SWPB emulation handler [ 1.107726] registered taskstats version 1 [ 1.107759] Loading compiled-in X.509 certificates [ 1.108311] Key type ._fscrypt registered [ 1.108339] Key type .fscrypt registered [ 1.118979] uart-pl011 fe201000.serial: cts_event_workaround enabled [ 1.119074] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 29, base_baud = 0) is a PL011 rev2 [ 1.125296] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 1.126306] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0 [ 1.126339] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated [ 1.177079] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 1.178755] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 1.180590] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 1.183575] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 1.185291] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 1.192456] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA [ 1.195672] of_cfs_init [ 1.195807] of_cfs_init: OK [ 1.197159] Waiting for root device /dev/mmcblk0p2... [ 1.236487] random: fast init done [ 1.259578] mmc1: new high speed SDIO card at address 0001 [ 1.304443] mmc0: new ultra high speed DDR50 SDHC card at address 0001 [ 1.305349] mmcblk0: mmc0:0001 SD16G 29.5 GiB [ 1.307757] mmcblk0: p1 p2 [ 1.324427] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 1.324517] VFS: Mounted root (ext4 filesystem) readonly on device 179:2. [ 1.330094] devtmpfs: mounted [ 1.338810] Freeing unused kernel memory: 2048K [ 1.364616] Run /sbin/init as init process [ 1.444730] usb 2-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd [ 1.476023] usb 2-2: New USB device found, idVendor=152d, idProduct=0578, bcdDevice= 2.04 [ 1.476065] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1.476096] usb 2-2: Product: External USB 3.0 [ 1.476124] usb 2-2: Manufacturer: JMicron [ 1.476152] usb 2-2: SerialNumber: 201703310007F [ 1.502125] scsi host0: uas [ 1.503708] scsi 0:0:0:0: Direct-Access External USB3.0 0204 PQ: 0 ANSI: 6 [ 1.505859] sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/112 GiB) [ 1.505902] sd 0:0:0:0: [sda] 4096-byte physical blocks [ 1.506135] sd 0:0:0:0: [sda] Write Protect is off [ 1.506169] sd 0:0:0:0: [sda] Mode Sense: 53 00 00 08 [ 1.506570] sd 0:0:0:0: [sda] Disabling FUA [ 1.506604] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 1.507330] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes) [ 1.569991] sd 0:0:0:0: [sda] Attached SCSI disk [ 1.624369] usb 1-1: new high-speed USB device number 2 using xhci_hcd [ 1.816573] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21 [ 1.816617] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 1.816649] usb 1-1: Product: USB2.0 Hub [ 1.818654] hub 1-1:1.0: USB hub found [ 1.818962] hub 1-1:1.0: 4 ports detected [ 1.832845] systemd[1]: System time before build time, advancing clock. [ 1.921377] NET: Registered protocol family 10 [ 1.922769] Segment Routing with IPv6 [ 1.953671] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid) [ 1.954580] systemd[1]: Detected architecture arm. [ 2.048352] systemd[1]: Set hostname to . [ 2.715221] systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid → /run/samba/nmbd.pid; please update the unit file accordingly. [ 2.810235] random: systemd: uninitialized urandom read (16 bytes read) [ 2.825715] random: systemd: uninitialized urandom read (16 bytes read) [ 2.829063] systemd[1]: Created slice system-systemd\x2dfsck.slice. [ 2.829826] random: systemd: uninitialized urandom read (16 bytes read) [ 2.830191] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 2.831743] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ 2.837631] systemd[1]: Listening on Syslog Socket. [ 2.838949] systemd[1]: Listening on Journal Socket. [ 2.839538] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped. [ 3.592159] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 3.690218] systemd-journald[125]: Received request to flush runtime journal from PID 1 [ 3.703830] systemd-journald[125]: File /var/log/journal/3f05fc5726a34ad7bb6c91736bfdd273/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 4.337952] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000 [ 4.338649] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000 [ 4.342676] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000 [ 4.353199] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000 [ 4.415018] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned. [ 4.418527] bcm2835_vc_sm_cma_probe: Videocore shared memory driver

[ 4.419598] vc_sm_cma_vchi_init: failed to open VCHI service (-1) [ 4.419608] [vc_sm_connected_init]: failed to initialize shared memory service [ 4.434160] mc: Linux media interface: v0.10 [ 4.499054] videodev: Linux video capture interface: v2.00 [ 4.518489] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 4.537192] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 4.553418] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned. [ 4.571972] bcm2835_audio bcm2835_audio: card created with 8 channels [ 4.575962] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1) [ 4.588552] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned. [ 4.614355] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1) [ 4.677329] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned. [ 4.686996] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1) [ 4.740682] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0 [ 4.836388] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 4.843243] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 4.912575] [drm] No displays found. Consider forcing hotplug if HDMI is attached [ 4.912696] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4]) [ 4.912720] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 4.912732] [drm] No driver support for vblank timestamp query. [ 4.912745] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL [ 4.913316] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1 [ 4.956495] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 5.006448] brcmfmac: F1 signature read @0x18000000=0x15264345 [ 5.025175] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6 [ 5.025998] usbcore: registered new interface driver brcmfmac [ 5.048595] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2 [ 5.290094] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6 [ 5.307259] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 23 2020 02:19:54 version 7.45.206 (r725000 CY) FWID 01-88ee44ea [ 7.196397] random: crng init done [ 7.196419] random: 7 urandom warning(s) missed due to ratelimiting [ 7.255646] uart-pl011 fe201000.serial: no DMA platform data [ 7.332906] 8021q: 802.1Q VLAN Support v1.8 [ 8.246691] bcmgenet: Skipping UMAC reset [ 8.249190] bcmgenet fd580000.ethernet: configuring instance for external RGMII [ 8.249577] bcmgenet fd580000.ethernet eth0: Link is Down [ 8.294462] Adding 2097148k swap on /var/swap. Priority:-2 extents:31 across:3850240k SSFS [ 13.434529] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off [ 13.434580] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 14.082244] Bluetooth: Core ver 2.22 [ 14.082335] NET: Registered protocol family 31 [ 14.082349] Bluetooth: HCI device and connection manager initialized [ 14.082375] Bluetooth: HCI socket layer initialized [ 14.082395] Bluetooth: L2CAP socket layer initialized [ 14.082430] Bluetooth: SCO socket layer initialized [ 14.103582] Bluetooth: HCI UART driver ver 2.3 [ 14.103602] Bluetooth: HCI UART protocol H4 registered [ 14.103686] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 14.104001] Bluetooth: HCI UART protocol Broadcom registered [ 14.498517] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 14.498533] Bluetooth: BNEP filters: protocol multicast [ 14.498567] Bluetooth: BNEP socket layer initialized

Please provide all of the output provided by utilizing the debugmode=maximum parameter in the /etc/openhabian.conf file. For more information on how to accomplish this, please see openhabian-DEBUG.md.

System information:

Please tell us what OS you are running (Raspberry Pi OS, Debian, Ubuntu), what HW you are running on (Raspberry Pi, amd64). Also include the output of

mstormi commented 4 years ago

As you can read a couple of lines up we need the debug output debugmode=maximum. And use code fences please.

I'll take a look if you provide that but speaking in general, the code is there as-is but we do not support moving root off SD as that is not a good idea anyway, let alone on a RPI4.

HinrichF commented 4 years ago

Thanks Markus! If it is not supported, I do not want to take your time. Maybe that option should be removed from the openhabian-config menu. Do you have a reference why it is not a good idea to move /root to usb attached ssd drive on a RPI4? I planned to do it not for speed gain but for the fact of permanently failing ssd cards.

thanks again for offering your help.

mstormi commented 4 years ago

please provide the debug nonetheless. It might be a generic problem.

SSD mean deviation from the mainstream in terms of boot parameters, handling, drivers, devices names etc. Some people don't understand that that is an issue unless they want someone on the forum to solve their problems and fail to understand that others cannot - and don't want to - because they cannot reproduce their specific setup. YBe aware you will be on your own when there's problems (which are already there BTW). Use ZRAM to mitigate SD wearout, it's default in new openHABian installations anyway.

HinrichF commented 4 years ago

Hi Markus! Thanks for still wanting to look into this. Just changed to debugmode=maxiumum in /etc/openhabian.config and restarted. Cant see any change to first-boot.log. deleted file created empty file. Reboot does not add content to the log file Probably missing something here.

mstormi commented 4 years ago

debugmode=maxiumum

if that's what you entered ....

HinrichF commented 4 years ago

sorry typo above but entered correctly in etc/openhabian.conf:

debug verbosity mode

off, on (verbose output in log) or maximum (show every command)

debugmode=maximum

mstormi commented 4 years ago

it'll work you'll see debug output in shell window if you configure it correctly

Feel free to reopen if you have news but without debug output (input to us) we cannot do anything about it

mstormi commented 4 years ago

get the latest openhabian update (master branch) and try again

Harveg commented 3 years ago

Hi I do have the same issue on my setup when I try to move root to USB, which is in my case mendatory due to the influx db size I'm working with. I updated to the latest master branch today and then tried again to switch the root to usb. As HinrichF already mentioned the system output is as follow: It seems that your system root is not on the SD card Can you please advice, with the openhabian 1.5 setup it worked out the last time.

lsblk: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 223.6G 0 disk └─sda1 8:1 0 223.6G 0 part mmcblk0 179:0 0 29.5G 0 disk ├─mmcblk0p1 179:1 0 256M 0 part /boot └─mmcblk0p2 179:2 0 29.2G 0 part /

  • choice2='37 | Move root to USB'
  • '[' 0 -eq 1 ']'
  • '[' 1 -eq 255 ']'
  • wait_for_apt_to_finishupdate ++ timestamp ++ date +%F%T_%Z
  • echo -n '2020-11-22_17:09:42_CET [openHABian] Updating Linux package information... ' 2020-11-22_17:09:42_CET [openHABian] Updating Linux package information... + [[ -z 2464 ]]
  • tail --pid=2464 -f /dev/null
  • echo OK OK
  • case "$choice2" in
  • move_root2usb
  • [[ -z 1 ]]
  • is_pi
  • is_pizero
  • [[ '' == \p\i\0 ]]
  • grep -q '^Revision\s:\s[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo
  • return 1
  • is_pizerow
  • [[ '' == \p\i\0\w ]]
  • grep -q '^Revision\s:\s[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo
  • return 1
  • is_pione
  • [[ '' == \p\i\1 ]]
  • grep -q '^Revision\s:\s00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo
  • grep -q '^Revision\s:\s[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo
  • return 1
  • is_cmone
  • [[ '' == \c\m\1 ]]
  • grep -q '^Revision\s:\s[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]06[0-9a-fA-F]$' /proc/cpuinfo
  • return 1
  • is_pitwo
  • [[ '' == \p\i\2 ]]
  • grep -q '^Revision\s:\s[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]04[0-9a-fA-F]$' /proc/cpuinfo
  • return 1
  • is_pithree
  • [[ '' == \p\i\3 ]]
  • grep -q '^Revision\s:\s[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]08[0-9a-fA-F]$' /proc/cpuinfo
  • return 1
  • is_cmthree
  • [[ '' == \c\m\3 ]]
  • grep -q '^Revision\s:\s[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
  • return 1
  • is_pithreeplus
  • [[ '' == \p\i\3+ ]]
  • grep -q '^Revision\s:\s[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
  • return 1
  • is_cmthreeplus
  • [[ '' == \c\m\3+ ]]
  • grep -q '^Revision\s:\s[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo
  • return 1
  • is_pifour
  • [[ '' == \p\i\4 ]]
  • grep -q '^Revision\s:\s[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
  • return 0
  • return 0
  • [[ -f /etc/ztab ]]
  • local newRootDev=/dev/sda
  • local newRootPart=/dev/sda1
  • local 'introText=DANGEROUS OPERATION, USE WITH PRECAUTION!\n\nThis will move your system root from your SD card to a USB device like an SSD or a USB stick.\nATTENTION: this is NOT the recommended method to reduce wearout and failure of the SD card. If that is your intention, stop here and go for ZRAM (menu option 38).\n\nIf you still want to proceed,\n1.) Ensure your RPi model can boot from a device other than the internal SD card reader.\n2.) Make a backup of your SD card\n3.) Remove all USB mass storage devices from your Pi\n4.) Insert the USB device to be used for the new system root.\n\nTHIS DEVICE WILL BE COMPLETELY DELETED!\n\nDo you want to continue at your own risk?'
  • local rootOnSD
  • local rootPart
  • local srcSize
  • local destSize ++ awk -F ' ' '{ print $4 }' /boot/cmdline.txt ++ sed -e 's|root=||g'
  • rootPart=rootfstype=ext4 ++ blockdev --getsize64 /dev/mmcblk0
  • srcSize=31666995200 ++ blockdev --getsize64 /dev/sda
  • destSize=240057409536
  • whiptail --title 'Move system root to '\''/dev/sda1'\''?' --yes-button Continue --no-button Cancel --yesno 'DANGEROUS OPERATION, USE WITH PRECAUTION!\n\nThis will move your system root from your SD card to a USB device like an SSD or a USB stick.\nATTENTION: this is NOT the recommended method to reduce wearout and failure of the SD card. If that is your intention, stop here and go for ZRAM (menu option 38).\n\nIf you still want to proceed,\n1.) Ensure your RPi model can boot from a device other than the internal SD card reader.\n2.) Make a backup of your SD card\n3.) Remove all USB mass storage devices from your Pi\n4.) Insert the USB device to be used for the new system root.\n\nTHIS DEVICE WILL BE COMPLETELY DELETED!\n\nDo you want to continue at your own risk?' 24 80
  • [[ rootfstype=ext4 == \P\A\R\T\U\U\I\D\=* ]]
  • [[ rootfstype=ext4 == \P\A\R\T\U\U\I\D\=* ]]
  • [[ rootfstype=ext4 == \/\d\e\v\/\m\m\c\b\l\k\0\p\2 ]]
  • [[ '' != \t\r\u\e ]]
  • whiptail --title 'System root not on SD card!' --msgbox 'It seems that your system root is not on the SD card.\n\nAborting, process cannot be started!' 9 80
  • return 0
ecdye commented 3 years ago

You are correct, this is an issue and I will work on a fix.

Harveg commented 3 years ago

@ecdye thx for the quick fix. Great job it worked out for my case!