You are not logged in.
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
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
Maybe your USB drive is corrupted? Try running fsck:
sudo fsck /dev/sdb1
Offline
sudo fsck /dev/sdb1 output:
fsck from util-linux 2.40.2
Offline
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
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
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
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
bash: fsck.vfat: command not found
Online
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
So are you trying to explicitly mount the drive while it's already auto-mounted?
What's the context/plan here?
Online
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
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
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
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
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
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
Fine, I made my image from my system, I could mount both USB drives, the issue was my command usage. Thank you, everyone.
Offline