The officially official Devuan Forum!

You are not logged in.

#1 2021-06-10 14:14:26

DevuanUser345
Member
Registered: 2021-06-09
Posts: 13  

Runlevel 1 - external usb harddrive found but no letter

Hi Guys,

When I use runlevel 1 (good for backups) and plug in my external USB hard drive, I see on dmesg that it is recognized. But the problem is, I don't see a "letter" assigned. Therefore im not able to mount it. Checking lsusb i see the device.

Usually when I plug in the external USB drive I see in dmesg the detection and underneath it sda or sdb. This is not the case with runlevel 1.

Do I have to start eudev? Eudev usually gets not started in single mode. Does anyone know what the problem is?

thanks

Offline

#2 2021-06-10 17:56:02

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,617  
Website

Re: Runlevel 1 - external usb harddrive found but no letter

DevuanUser345 wrote:

Checking lsusb i see the device.

Please share that output along with the relevant portion of the kernel ring buffer.

DevuanUser345 wrote:

Do I have to start eudev? Eudev usually gets not started in single mode.

The init script specifies runlevel "S" so it should be started. Have you checked if it is running?

pgrep -a udev

Black Lives Matter

Offline

#3 2021-06-10 19:29:29

DevuanUser345
Member
Registered: 2021-06-09
Posts: 13  

Re: Runlevel 1 - external usb harddrive found but no letter

Yes it is marked as S:

ls -lah /etc/rcS*:
drwxr-xr-x 132 root root  12K 10. Jun 21:15 ..
lrwxrwxrwx   1 root root   35 24. Apr 11:41 README -> /usr/share/doc/sysv-rc/rcS.d-README
lrwxrwxrwx   1 root root   24  8. Jun 19:26 S01mountkernfs.sh -> ../init.d/mountkernfs.sh
lrwxrwxrwx   1 root root   15  8. Jun 19:27 S02eudev -> ../init.d/eudev
lrwxrwxrwx   1 root root   26  8. Jun 19:27 S03mountdevsubfs.sh -> ../init.d/mountdevsubfs.sh
lrwxrwxrwx   1 root root   27  8. Jun 19:27 S04keyboard-setup.sh -> ../init.d/keyboard
 service      1       2       3       4       5       0       6       S       
│ ----------------------------------------------------------------------------│
│ alsa-utils  [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ anacron     [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ apparmor    [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ bootlogd    [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ bootlogs    [X]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ brightness  [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ cron        [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ cryptdisks  [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ cryptdisk$  [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ cups        [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ dbus        [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ elogind     [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ eudev       [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ halt        [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     │
│ hddtemp     [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ killprocs   [X]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     │
│ kmod        [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ lightdm     [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ lm-sensors  [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ lvm2        [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ lvm2-lvmp$  [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ mariadb     [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ mount-con$  [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ network-m$  [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ networking  [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ nginx       [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ php7.4-fpm  [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ preload     [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ procps      [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ pulseaudi$  [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ rc.local    [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ reboot      [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     │
│ rmnologin   [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ rsync       [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ rsyslog     [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ saned       [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     │
│ screen-cl$  [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ sendsigs    [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     │
│ single      [X]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     │
│ slim        [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     │
│ speech-di$  [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     │
│ ssh         [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     │
│ stop-boot$  [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ stop-boot$  [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ sudo        [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ tuned       [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ umountfs    [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     │
│ umountroot  [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     │
│ urandom     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]     │
│ uuidd       [ ]     [X]     [X]     [X]     [X]     [ ]     [ ]     [ ]     │
│ x11-common  [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [ ]     [X]    

ps aux | grep eudev:

root      1531  0.0  0.0   3180   724 tty1     S+   21:13   0:00 grep eudev

After starting eudev manually with

/etc/init.d/eudev start

and plug the usb connector again, it got found a letter got assigned.

   19.263729] audit: type=1400 audit(1623352165.532:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=1321 comm="apparmor_parser"
[   21.305085] Not activating Mandatory Access Control as /sbin/tomoyo-init does not exist.
[  200.569916] usb 2-1.1.1: new SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[  200.590958] usb 2-1.1.1: New USB device found, idVendor=152d, idProduct=1561, bcdDevice= 2.04
[  200.590964] usb 2-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  200.590967] usb 2-1.1.1: Product: SABRENT
[  200.590969] usb 2-1.1.1: Manufacturer: SABRENT
[  200.590970] usb 2-1.1.1: SerialNumber: DB9876543214E
[  290.771648] usb 2-1.1.1: USB disconnect, device number 6
[  300.456739] udevd[1545]: starting version 3.2.9
[  300.470258] udevd[1546]: starting eudev-3.2.9
[  300.684098] btintel: Unknown symbol hci_cmd_sync (err -2)
[  300.684122] btintel: Unknown symbol bt_info (err -2)
[  300.684128] btintel: Unknown symbol bt_to_errno (err -2)
[  300.684135] btintel: Unknown symbol bt_err (err -2)
[  300.684147] btintel: Unknown symbol __hci_cmd_sync (err -2)
[  300.737742] btintel: Unknown symbol hci_cmd_sync (err -2)
[  300.737816] btintel: Unknown symbol bt_info (err -2)
[  300.737886] btintel: Unknown symbol bt_to_errno (err -2)
[  300.737901] btintel: Unknown symbol bt_err (err -2)
[  300.737924] btintel: Unknown symbol __hci_cmd_sync (err -2)
[  300.778593] btintel: Unknown symbol hci_cmd_sync (err -2)
[  300.778620] btintel: Unknown symbol bt_info (err -2)
[  300.778628] btintel: Unknown symbol bt_to_errno (err -2)
[  300.778635] btintel: Unknown symbol bt_err (err -2)
[  300.778649] btintel: Unknown symbol __hci_cmd_sync (err -2)
[  300.818802] btintel: Unknown symbol hci_cmd_sync (err -2)
[  300.818849] btintel: Unknown symbol bt_info (err -2)
[  300.818863] btintel: Unknown symbol bt_to_errno (err -2)
[  300.818878] btintel: Unknown symbol bt_err (err -2)
[  300.818905] btintel: Unknown symbol __hci_cmd_sync (err -2)
[  300.889765] EDAC amd64: F17h_M60h detected (node 0).
[  300.889804] EDAC amd64: Node 0: DRAM ECC disabled.
[  300.959216] EDAC amd64: F17h_M60h detected (node 0).
[  300.959281] EDAC amd64: Node 0: DRAM ECC disabled.
[  301.022840] EDAC amd64: F17h_M60h detected (node 0).
[  301.022920] EDAC amd64: Node 0: DRAM ECC disabled.
[  301.091210] EDAC amd64: F17h_M60h detected (node 0).
[  301.091291] EDAC amd64: Node 0: DRAM ECC disabled.
[  301.170413] EDAC amd64: F17h_M60h detected (node 0).
[  301.170472] EDAC amd64: Node 0: DRAM ECC disabled.
[  301.306772] EDAC amd64: F17h_M60h detected (node 0).
[  301.306846] EDAC amd64: Node 0: DRAM ECC disabled.
[  301.363302] EDAC amd64: F17h_M60h detected (node 0).
[  301.363365] EDAC amd64: Node 0: DRAM ECC disabled.
[  301.411645] EDAC amd64: F17h_M60h detected (node 0).
[  301.411706] EDAC amd64: Node 0: DRAM ECC disabled.
[  307.661969] usb 2-1.1.1: new SuperSpeed Gen 1 USB device number 7 using xhci_hcd
[  307.683005] usb 2-1.1.1: New USB device found, idVendor=152d, idProduct=1561, bcdDevice= 2.04
[  307.683011] usb 2-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  307.683013] usb 2-1.1.1: Product: SABRENT
[  307.683015] usb 2-1.1.1: Manufacturer: SABRENT
[  307.683017] usb 2-1.1.1: SerialNumber: DB9876543214E
[  307.710707] usbcore: registered new interface driver usb-storage
[  307.715831] scsi host2: uas
[  307.715892] usbcore: registered new interface driver uas
[  307.716523] scsi 2:0:0:0: Direct-Access     SABRENT                   0204 PQ: 0 ANSI: 6
[  311.667448] sd 2:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[  311.667452] sd 2:0:0:0: [sda] 4096-byte physical blocks
[  311.667603] sd 2:0:0:0: [sda] Write Protect is off
[  311.667606] sd 2:0:0:0: [sda] Mode Sense: 53 00 00 08
[  311.667837] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  311.668168] sd 2:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[  311.684209] sd 2:0:0:0: [sda] Attached SCSI disk
[  311.694733] sd 2:0:0:0: Attached scsi generic sg0 type 0

Last edited by DevuanUser345 (2021-06-10 19:35:39)

Offline

#4 2021-06-11 13:56:12

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,617  
Website

Re: Runlevel 1 - external usb harddrive found but no letter

How do you select runlevel 1? Perhaps check the logs for any clues.


Black Lives Matter

Offline

#5 2021-06-11 14:53:42

DevuanUser345
Member
Registered: 2021-06-09
Posts: 13  

Re: Runlevel 1 - external usb harddrive found but no letter

I select runlevel 1 by adding

1

at the end of the

linux /vmlinuz-5.10.0-7.....

line in the grub. I checked the logs several time but could not find anything that gives me a hint

Offline

#6 2021-06-11 15:32:35

DevuanUser345
Member
Registered: 2021-06-09
Posts: 13  

Re: Runlevel 1 - external usb harddrive found but no letter

  Volume group "username-vg" not found
  Cannot process volume group username-vg
Please unlock disk nvme0n1p3_crypt:
cryptsetup: nvme0n1p3_crypt: set up successfully
/dev/mapper/username--vg-root: clean, 752755/29728768 files, 15777769/118906880 b1
INIT: version 2.96 booting
Using makefile-style concurrent boot in runlevel S.
Starting standalone dev nodes setup service: opentmpfiles-setup-devOpentmpfiles:
.
Starting hot-plug events dispatche: udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...^@done.
Waiting for /dev to be fully populated...done.
Starting boot logger: bootlogd.
Setting up keyboard layout...done.
Cleaning up temporary files... /tmp.
Starting early crypto disk...nvme0n1p3_crypt (running)...done.
Loading kernel module lp.
Loading kernel module ppdev.
Loading kernel module parport_pc.
modprobe: ERROR: could not insert 'parport_pc': Unknown symbol in module, or unknown parameter (see dmesg)
Setting up LVM Volume Groups...done.
Starting remaining crypto disks...nvme0n1p3_crypt (running)...done.
Checking file systems...fsck.fat 4.2 (2021-01-31)
/dev/nvme0n1p1: 26 files, 3731/130812 clusters
/dev/nvme0n1p2: clean, 339/124928 files, 73931/499712 blocks
done.
Mounting local filesystems...done.
Activating swapfile swap, if any...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Configuring network interfaces...done.
Cleaning up temporary files....
Setting up X scoket directories... /tmp/.X11-unix /tmp/.ICE-unix.
Starting standalone tmpfiles cleanup service: opentmpfiles-cleanopentmpfiles-tmpfiles clean mode is not implemented
Opentmpfiles: cleanup failed ... failed!
.
Setting up ALSA...done.
Starting: AppArmorLoading AppArmor profiles...Skipping profile in /etc/apparmor.d/disable: usr.bin.thunderbird
done.
.
Starting standalone tmpfiles setup service: opentmpfiles-setupOpentmpfiles: setup complete.
.
Setting sensors limits...done.
INIT: Entering runlevel 1
Using makefile-style concurrent boot in runlevel 1.
Asking all remaining processes to terminate...done.
All processes ended within 2 seconds....done.
Will no switch to single-user mode.
INIT: Going single user
INIT: Sending processes configured via /etc/inittab the TERM signal
Give root password for maintenance
(or press Control-D to continue):

I had to type it because its not in the bootlog. DMESG does not show any unexpected.

Offline

#7 2021-06-15 21:28:50

DevuanUser345
Member
Registered: 2021-06-09
Posts: 13  

Re: Runlevel 1 - external usb harddrive found but no letter

I checked the init scripts and did some experiments. Unfortunately i still could not find the reason for the problem.

Basically /etc/init.d/eudev gets executed/loaded on init S:

Starting hot-plug events dispatche: udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...^@done.
Waiting for /dev to be fully populated...done.

Only interesting thing i found out is in dmesg:

there is udevd starting... on the start at 0.882583

[    0.797713] Write protecting the kernel read-only data: 22528k
[    0.799620] Freeing unused kernel image (text/rodata gap) memory: 2040K
[    0.800150] Freeing unused kernel image (rodata/data gap) memory: 644K
[    0.835593] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[    0.835602] Run /init as init process
[    0.835604]   with arguments:
[    0.835605]     /init
[    0.835605]   with environment:
[    0.835606]     HOME=/
[    0.835606]     TERM=linux
[    0.835606]     BOOT_IMAGE=/vmlinuz-5.10.0-7-amd64
[    0.882583] udevd[130]: starting version 3.2.9
[    0.883634] udevd[131]: starting eudev-3.2.9
[    0.895820] acpi PNP0C14:01: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
[    0.895858] acpi PNP0C14:02: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
[    0.897035] ACPI: Video Device [VGA] (multi-head: yes  rom: no  post: no)
[    0.897263] acpi device:06: registered as cooling_device8

and there is another udevd starting at 7.749667

[    7.418262] PM: Image not found (code -22)
[    7.503250] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
[    7.563012] Not activating Mandatory Access Control as /sbin/tomoyo-init does not exist.
[    7.749667] udevd[589]: starting version 3.2.9
[    7.772563] udevd[590]: starting eudev-3.2.9
[    7.790207] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input8
[    7.790233] ACPI: Lid Switch [LID]

I grep'd the init folder to find out where the second udevd is coming from, but udevd is only found in /etc/init.d/eudevd.

Edit: The first udevd in the dmesg is not logged in the bootlog as it occurres so early that its not catched by bootlogd.
The second udevd is the udevd Starting hot-plug events dispatche: udevd ...

So basically my knowledge did not changed.

Last edited by DevuanUser345 (2021-06-15 21:31:55)

Offline

Board footer