You are not logged in.

#1 2021-04-15 10:32:26

DireWolf
Member
Registered: 2021-04-15
Posts: 28

[SOLVED]problem mounting raw disk image using loop

I have a raw disk image of 16GiB on my local hard drive
when I try to mount it using :
'sudo mount -o ro,noload,loop /run/media/path_to_file/rpi4bak.raw /run/media/path_to_mountpoint/root1'
it gives an error :
mount: /run/media/path_to_mountpoint/root1: failed to setup loop device for /run/media/path_to_file/rpi4bak.raw.
And I ran modprobe loop before doing these and it is running

also trying to manually create a loop device using losetup:
sudo losetup -f -P rpi4bak.raw
it gives an error :
losetup: rpi4bak.raw: failed to set up loop device: No such file or directory

Last edited by DireWolf (2021-05-01 08:58:52)

Offline

#2 2021-04-15 15:50:39

seth
Member
Registered: 2012-09-03
Posts: 50,970

Re: [SOLVED]problem mounting raw disk image using loop

sudo losetup -f -P /run/media/path_to_file/rpi4bak.raw

?

Offline

#3 2021-04-15 16:07:35

DireWolf
Member
Registered: 2021-04-15
Posts: 28

Re: [SOLVED]problem mounting raw disk image using loop

It worked after a reboot...

Offline

#4 2021-04-15 16:09:58

seth
Member
Registered: 2012-09-03
Posts: 50,970

Re: [SOLVED]problem mounting raw disk image using loop

Is the image vfat or so?
The typical explanation for #3 is that you updated the kernel and couldn't mount the partition because you didn't have access to the FS modules for the running kernel anymore.

Offline

#5 2021-05-01 08:54:40

DireWolf
Member
Registered: 2021-04-15
Posts: 28

Re: [SOLVED]problem mounting raw disk image using loop

Yes it was vfat... fat 32

Offline

#6 2021-05-01 08:55:24

DireWolf
Member
Registered: 2021-04-15
Posts: 28

Re: [SOLVED]problem mounting raw disk image using loop

Though i distinctly remember not updating the kernel....

Offline

Board footer

Powered by FluxBB