You are not logged in.

#1 2023-10-19 07:53:52

tara23
Member
Registered: 2023-10-10
Posts: 7

Cannot mount img produced by mkfs.ext4

I think it should be a simple job, but there are some strange problems occurred.

Step to reproduce:

$dd if=/dev/zero of=test.img bs=1M count=3
$mkfs.ext4 test.img
$mount test.img /mnt
mount: /mnt: mount failed: No such file or directory.

I tested the above commands in ubuntu in a virtual machine, it works as expected.

I did "sudo pacman -Syu" and reboot my computer, and the problem still exist.

Here is some info that maybe useful:

$uname -a
Linux vmhost 6.1.58-1-lts #1 SMP PREEMPT_DYNAMIC Sun, 15 Oct 2023 18:38:43 +0000 x86_64 GNU/Linux

$pacman -Qi linux-lts
Name            : linux-lts
Version         : 6.1.58-1
...

$ls /
bin  boot  dev  etc  home  lib  lib64  lost+found  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
$ ls -l /   
total 52
...
drwxr-xr-x   2 root root  4096 Feb  1  2023 mnt
...

Last edited by tara23 (2023-10-19 08:40:12)

Offline

#2 2023-10-19 08:22:31

tara23
Member
Registered: 2023-10-10
Posts: 7

Re: Cannot mount img produced by mkfs.ext4

I try to mount with sudo:

$ sudo mount test.img /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.

$ sudo dmesg
...
[   61.466746] loop0: detected capacity change from 0 to 6144
[   61.470564] EXT4-fs (loop0): VFS: Can't find ext4 filesystem
[   61.471151] EXT4-fs (loop0): VFS: Can't find ext4 filesystem
[   61.471213] EXT4-fs (loop0): VFS: Can't find ext4 filesystem
[   61.471359] FAT-fs (loop0): bogus number of reserved sectors
[   61.471365] FAT-fs (loop0): Can't find a valid FAT filesystem
...

I googled and found this:
https://superuser.com/questions/1518165 … superblock

After "pacman -S multipath-tools" and rebooting, problem still exists. sad

Is there any idea?

Last edited by tara23 (2023-10-19 08:26:17)

Offline

#3 2023-10-19 12:30:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,082

Re: Cannot mount img produced by mkfs.ext4

cat test.img | curl -F 'file=@-' 0x0.st

Offline

Board footer

Powered by FluxBB