gitbls / sdm

Raspberry Pi SD Card Image Manager
MIT License
462 stars 48 forks source link

Error when mounting img #176

Closed pierreCAMANALYTICS closed 8 months ago

pierreCAMANALYTICS commented 8 months ago

Hello Benn,

First of all, thank you very much for your work, it's just awesome !

I just got a new laptop and when I tried my usual routine on sdm I get this error:

sudo sdm --mount 2023-05-03-raspios-bullseye-arm64-lite.img and ->

mount: /mnt/sdm: wrong fs type, bad option, bad superblock on /dev/loop13, missing codepage or helper program, or other error.

Could you help me on this topic please ?

gitbls commented 8 months ago

That's a curious error, for sure. A couple of questions:

pierreCAMANALYTICS commented 8 months ago

What OS and version running on your laptop? Ubuntu 20.04 and sdm V11.4

Was the IMG a fresh download from the RasPiOS site, or modified in some way? If modified, how? The image was a fresh download, not modified, I tested with 2022-09-22-raspios-bullseye-arm64-lite.img and 2023-05-03-raspios-bullseye-arm64-lite.img

I tried to manually mount the image with the Ubuntu Disk GUI and it worked (I don't know if that can help you)

Thank you for your support !

gitbls commented 8 months ago

OK, nothing odd there except a pantload of loop devices. Doubt that's the issue, just noting for now. Please try this:

Number Start End Size Type File system Flags 1 4194304B 541065215B 536870912B primary fat32 lba 2 541065216B 2738880511B 2197815296B primary ext4

pierreCAMANALYTICS commented 8 months ago

I got the expected output : image

pierreCAMANALYTICS commented 8 months ago

Ok Benn, I don't know what solved the problem but after many hard reboots, it actually works !! Thank you for your support, again you're doing an amazing work ! Greetings from france

hajekPBH commented 8 months ago

hi, same problem here, 2 different machines (both Linux Mint 20.2 based on Ubuntu 20.04) and i get error:

mount: /mnt/sdm: wrong fs type, bad option, bad superblock on /dev/loop26, missing codepage or helper program, or other error mount: /mnt/sdm/boot: mount point does not exist ? Error mounting IMG '2023-12-11-raspios-bookworm-armhf-lite.img'

i run command from documentation: sudo sdm --customize --plugin user:"adduser=bls|password=mypassword" --plugin L10n:host --plugin disables:piwiz --regen-ssh-host-keys --restart 2023-12-11-raspios-bookworm-armhf-lite.img

sdm v11.4

mini-nspawn output is ok without errors

i work with freshly downloaded latest 2023-12-11-raspios-bookworm-armhf-lite.img image

thank you

gitbls commented 8 months ago

hi, same problem here, 2 different machines (both Linux Mint 20.2 based on Ubuntu 20.04) and i get error:

mount: /mnt/sdm: wrong fs type, bad option, bad superblock on /dev/loop26, missing codepage or helper program, or other error mount: /mnt/sdm/boot: mount point does not exist ? Error mounting IMG '2023-12-11-raspios-bookworm-armhf-lite.img'

i run command from documentation: sudo sdm --customize --plugin user:"adduser=bls|password=mypassword" --plugin L10n:host --plugin disables:piwiz --regen-ssh-host-keys --restart 2023-12-11-raspios-bookworm-armhf-lite.img

sdm v11.4

mini-nspawn output is ok without errors

i work with freshly downloaded latest 2023-12-11-raspios-bookworm-armhf-lite.img image

thank you

And are your Linux and Ubuntu systems running on X64 or aarch64?

hajekPBH commented 8 months ago

hi, same problem here, 2 different machines (both Linux Mint 20.2 based on Ubuntu 20.04) and i get error: mount: /mnt/sdm: wrong fs type, bad option, bad superblock on /dev/loop26, missing codepage or helper program, or other error mount: /mnt/sdm/boot: mount point does not exist ? Error mounting IMG '2023-12-11-raspios-bookworm-armhf-lite.img' i run command from documentation: sudo sdm --customize --plugin user:"adduser=bls|password=mypassword" --plugin L10n:host --plugin disables:piwiz --regen-ssh-host-keys --restart 2023-12-11-raspios-bookworm-armhf-lite.img sdm v11.4 mini-nspawn output is ok without errors i work with freshly downloaded latest 2023-12-11-raspios-bookworm-armhf-lite.img image thank you

And are your Linux and Ubuntu systems running on X64 or aarch64?

thank you for your response, i am running on "x86_64"

gitbls commented 8 months ago

hi, same problem here, 2 different machines (both Linux Mint 20.2 based on Ubuntu 20.04) and i get error: mount: /mnt/sdm: wrong fs type, bad option, bad superblock on /dev/loop26, missing codepage or helper program, or other error mount: /mnt/sdm/boot: mount point does not exist ? Error mounting IMG '2023-12-11-raspios-bookworm-armhf-lite.img' i run command from documentation: sudo sdm --customize --plugin user:"adduser=bls|password=mypassword" --plugin L10n:host --plugin disables:piwiz --regen-ssh-host-keys --restart 2023-12-11-raspios-bookworm-armhf-lite.img sdm v11.4 mini-nspawn output is ok without errors i work with freshly downloaded latest 2023-12-11-raspios-bookworm-armhf-lite.img image thank you

And are your Linux and Ubuntu systems running on X64 or aarch64?

thank you for your response, i am running on "x86_64"

I just installed Mint 20.2, fully updated it, and am unable to replicate this issue using sdm V11.4.

You'll have to provide me with a reliable repro in order for me to investigate further.

Thx

Also, in the future, please start a new Issue (referencing an existing issue if relevant) rather than piggy-backing on an existing issue, especially one that's already closed. Thx!

ondrejhajek commented 8 months ago

hi, same problem here, 2 different machines (both Linux Mint 20.2 based on Ubuntu 20.04) and i get error: mount: /mnt/sdm: wrong fs type, bad option, bad superblock on /dev/loop26, missing codepage or helper program, or other error mount: /mnt/sdm/boot: mount point does not exist ? Error mounting IMG '2023-12-11-raspios-bookworm-armhf-lite.img' i run command from documentation: sudo sdm --customize --plugin user:"adduser=bls|password=mypassword" --plugin L10n:host --plugin disables:piwiz --regen-ssh-host-keys --restart 2023-12-11-raspios-bookworm-armhf-lite.img sdm v11.4 mini-nspawn output is ok without errors i work with freshly downloaded latest 2023-12-11-raspios-bookworm-armhf-lite.img image thank you

And are your Linux and Ubuntu systems running on X64 or aarch64?

thank you for your response, i am running on "x86_64"

I just installed Mint 20.2, fully updated it, and am unable to replicate this issue using sdm V11.4.

You'll have to provide me with a reliable repro in order for me to investigate further.

Thx

Also, in the future, please start a new Issue (referencing an existing issue if relevant) rather than piggy-backing on an existing issue, especially one that's already closed. Thx!

ok, sorry, i started new issue #182 (there is a error that i have found in dmesg)