You are not logged in.

#1 2024-12-17 14:13:01

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 38

[SOLVED]I can't to mount manually USB drive

I need to mount manually my USB drive in a live Arch ISO to create a image of my system. But I can't to mount it manually in the live ISO, and neither in my Arch system.

mount /dev/sdb1 /mnt/ 
mount: /mnt: fsconfig system call failed: /dev/sdb1: Can't lookup blockdev.                                                                       
       dmesg(1) may have more information after failed mount system call.

dmesg:

[ 1498.945992] sd 1:0:0:0: [sdb] 122880000 512-byte logical blocks: (62.9 GB/58.6 GiB)
[ 1498.946261] sd 1:0:0:0: [sdb] Write Protect is off
[ 1498.946265] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 1498.946385] sd 1:0:0:0: [sdb] No Caching mode page found
[ 1498.946389] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 1498.961895]  sdb: sdb1 sdb2
[ 1498.962365] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 1504.467826] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 1506.890457] sdb: detected capacity change from 122880000 to 0
[ 1883.536908] perf: interrupt took too long (3211 > 3170), lowering kernel.perf_event_max_sample_rate to 62100
[ 2004.809979] usb 1-6: USB disconnect, device number 6

Last edited by FrancisArcher_60 (2024-12-18 19:44:22)

Offline

#2 2024-12-17 14:18:20

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 914
Website

Re: [SOLVED]I can't to mount manually USB drive

Is there any useful output in the "dmesg" output?

Also whats the disk/partition layout do you have? post the "lsblk --fs" output for example

Offline

#3 2024-12-17 14:19:17

constellation
Member
Registered: 2024-08-16
Posts: 5

Re: [SOLVED]I can't to mount manually USB drive

Maybe your USB drive is corrupted? Try running fsck:

sudo fsck /dev/sdb1

Offline

#4 2024-12-17 14:45:13

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 38

Re: [SOLVED]I can't to mount manually USB drive

sudo fsck /dev/sdb1 output:

fsck from util-linux 2.40.2

Offline

#5 2024-12-17 15:18:14

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 38

Re: [SOLVED]I can't to mount manually USB drive

lsblk --fs:

NAME FSTYPE FSVER LABEL   UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                           
├─sda1
│    vfat   FAT32         32DA-FF19                             510.7M     0% /boot/efi
├─sda2
│    swap   1             2620434f-7050-4efb-998f-c365824e5224                [SWAP]
└─sda3
     ext4   1.0           b5ccdb72-554b-4765-a2c9-3aae6530710e  165.3G    23% /
sdb                                                                           
├─sdb1
│    vfat   FAT32 VENTOY  4E21-0000                                           
└─sdb2
     vfat   FAT16 VTOYEFI 223C-F3F8  

Offline

#6 2024-12-17 15:19:53

seth
Member
Registered: 2012-09-03
Posts: 60,819

Re: [SOLVED]I can't to mount manually USB drive

type -a fsck

But

[ 1506.890457] sdb: detected capacity change from 122880000 to 0
[ 1883.536908] perf: interrupt took too long (3211 > 3170), lowering kernel.perf_event_max_sample_rate to 62100
[ 2004.809979] usb 1-6: USB disconnect, device number 6

isn't the FS, there's a problem w/ the USB.
Can you mount the key on other hosts?

Is it vfat?
file /dev/sdb1

fsck.vfat /dev/sdb1

Last edited by seth (2024-12-17 15:22:33)

Online

#7 2024-12-17 15:27:55

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 38

Re: [SOLVED]I can't to mount manually USB drive

The USB is mounted automatically in my installed Arch, I can't to mount it manually. And in others machines the USB works, the problem its when I try to mount it manually,

bash: fsck.vfat: command not found   

Last edited by FrancisArcher_60 (2024-12-17 15:34:05)

Offline

#8 2024-12-17 15:35:18

seth
Member
Registered: 2012-09-03
Posts: 60,819

Re: [SOLVED]I can't to mount manually USB drive

And can you access the automouted filesystem? Can you umount it? What happens if you don't automount it?

This here

[ 1498.962365] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 1504.467826] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 1506.890457] sdb: detected capacity change from 122880000 to 0

is bad: you attached the key, 6 seconds later somebody or thing tries to mount it and complains about the unclean state and 2 seconds later you're essentially losing the USB key.

Online

#9 2024-12-17 15:41:52

seth
Member
Registered: 2012-09-03
Posts: 60,819

Re: [SOLVED]I can't to mount manually USB drive

bash: fsck.vfat: command not found

https://archlinux.org/packages/core/x86_64/dosfstools/

Online

#10 2024-12-17 15:46:39

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 38

Re: [SOLVED]I can't to mount manually USB drive

seth wrote:

And can you access the automouted filesystem? Can you umount it? What happens if you don't automount it?

This here

[ 1498.962365] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 1504.467826] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 1506.890457] sdb: detected capacity change from 122880000 to 0

is bad: you attached the key, 6 seconds later somebody or thing tries to mount it and complains about the unclean state and 2 seconds later you're essentially losing the USB key.

Auotomonted works normally, I can access it, I can unmout it. Always is automonted.

Offline

#11 2024-12-17 16:24:12

seth
Member
Registered: 2012-09-03
Posts: 60,819

Re: [SOLVED]I can't to mount manually USB drive

So are you trying to explicitly mount the drive while it's already auto-mounted?
What's the context/plan here?

Online

#12 2024-12-17 16:30:48

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 38

Re: [SOLVED]I can't to mount manually USB drive

seth wrote:

So are you trying to explicitly mount the drive while it's already auto-mounted?
What's the context/plan here?

I'm trying to mount the drive in a live Arch ISO, to make a image of my system. Is booted from the same USB drive.

Last edited by FrancisArcher_60 (2024-12-17 16:32:22)

Offline

#13 2024-12-17 17:49:29

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 38

Re: [SOLVED]I can't to mount manually USB drive

Now I tried booting the Arch ISO with the USB and try to mount a second USB key, being /sdc/sdc1, but trows the same errors.

Offline

#14 2024-12-17 20:11:05

seth
Member
Registered: 2012-09-03
Posts: 60,819

Re: [SOLVED]I can't to mount manually USB drive

You're booting the iso from usb, right?
Have you tried to switch around the involved usb ports?

Also to be clear, your OP says you cannot manually mount the key on the installed system - is that just because it's automounted?
Can you disable the automount there and mount it manually?

Online

#15 2024-12-18 10:23:08

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 38

Re: [SOLVED]I can't to mount manually USB drive

seth wrote:

You're booting the iso from usb, right?
Have you tried to switch around the involved usb ports?

Also to be clear, your OP says you cannot manually mount the key on the installed system - is that just because it's automounted?
Can you disable the automount there and mount it manually?

I can't mount in both installed and live booted Arch from USB, I swictched the ports but doesn't matter.

Offline

#16 2024-12-18 13:50:37

seth
Member
Registered: 2012-09-03
Posts: 60,819

Re: [SOLVED]I can't to mount manually USB drive

Automounted works normally, I can access it, I can unmout it. Always is automounted.

Disable the automount, resp. umount the drive and mount it manually from the installed system and then post the system journal for that boot as well as the actual mount output.

sudo journalctl -b | curl -F 'file=@-' 0x0.st

It's rather weird that the usb key would drop from the bus on explicit mount attempts but "automounts" fine.

Online

#17 2024-12-18 15:25:03

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 38

Re: [SOLVED]I can't to mount manually USB drive

seth wrote:

Automounted works normally, I can access it, I can unmout it. Always is automounted.

Disable the automount, resp. umount the drive and mount it manually from the installed system and then post the system journal for that boot as well as the actual mount output.

sudo journalctl -b | curl -F 'file=@-' 0x0.st

It's rather weird that the usb key would drop from the bus on explicit mount attempts but "automounts" fine.

Oh my, I disabled the automont and I mounted it with commands. Now I'll try it in the live boot.

Last edited by FrancisArcher_60 (2024-12-18 15:27:04)

Offline

#18 2024-12-18 19:47:29

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 38

Re: [SOLVED]I can't to mount manually USB drive

Fine, I made my image from my system, I could mount both USB drives, the issue was my command usage. Thank you, everyone.

Offline

Board footer

Powered by FluxBB