Code Monkey home page Code Monkey logo

Comments (22)

gitbls avatar gitbls commented on September 7, 2024 1

Please try the sdm-cparse in the attached zip file:

  • Unzip it
  • cd /usr/local/sdm
  • sudo mv sdm-cparse sdm-save-cparse
  • sudo cp /path/to/new/sdm-cparse sdm-cparse

Try the --mount command that previously failed. Please capture and provide all console output if it fails.

sdm-cparse.zip

Yes, I know this can be done with a github branch

from sdm.

gitbls avatar gitbls commented on September 7, 2024 1

Great! I will make the "odpojenf" and the "Delete dangling loop devices" messages go away, so it will be pretty seamless.

This will be in the next release, coming soon. I'll update this thread when it's available.

from sdm.

gitbls avatar gitbls commented on September 7, 2024 1

Could I convince you to try this updated version just to make sure I didn't duff it?

sdm-cparse.zip

Thx!

from sdm.

gitbls avatar gitbls commented on September 7, 2024 1

This is all fixed 🤞in V11.5. Please test/verify. Thx!

from sdm.

ondrejhajek avatar ondrejhajek commented on September 7, 2024

i have found error in linux dmesg:

EXT4-fs (loop40): VFS: Can't find ext4 filesystem

from sdm.

gitbls avatar gitbls commented on September 7, 2024

As I mentioned previously, I installed Mint 20.2 and am unable to repro this.

I do have one idea for what the issue might be, but I'd really like a repro to test it. Any thoughts on how you could create a reliable repro for me?

from sdm.

gitbls avatar gitbls commented on September 7, 2024

One thought: Can you burn an ssd or sd card and then try to mount it with sudo sdm --mount ...?

If this works on the mint system that mounting the IMG is failing, then I have a good idea as to how to fix.

from sdm.

ondrejhajek avatar ondrejhajek commented on September 7, 2024

@gitbls done, i successfully burnt with sdm img to medium and i was able sdm --mount this medium

image

from sdm.

gitbls avatar gitbls commented on September 7, 2024

Thx. That confirms for me that it's a bug in old Ubuntu and Mint releases, and will work around it.

from sdm.

ondrejhajek avatar ondrejhajek commented on September 7, 2024

sudo sdm --customize --plugin apps:"apps=@myapps" 2023-12-11-raspios-bookworm-armhf-lite.img

i get this error:

* Mount IMG '2023-12-11-raspios-bookworm-armhf-lite.img'
mount: /mnt/sdm: wrong fs type, bad option, bad superblock on /dev/loop40, missing codepage or helper program, or other error
? IMG '' already attached to a loop device

from sdm.

gitbls avatar gitbls commented on September 7, 2024

OK, thx. Will instrument up more logging to see what's going on.

from sdm.

gitbls avatar gitbls commented on September 7, 2024

This one should put out some logging (so i can see where it's erroring out). Same "install" as before, but you don't need to save the one I previously sent you.

sdm-cparse.zip

from sdm.

ondrejhajek avatar ondrejhajek commented on September 7, 2024

here is output:

* Mount IMG '2023-12-11-raspios-bookworm-armhf-lite.img'
Before 'new' mount
mount: /mnt/sdm: wrong fs type, bad option, bad superblock on /dev/loop40, missing codepage or helper program, or other error
Before 'old' mount
? IMG '' already attached to a loop device

from sdm.

gitbls avatar gitbls commented on September 7, 2024

Strange. Investigating...

from sdm.

gitbls avatar gitbls commented on September 7, 2024

Please try this version.
sdm-cparse.zip

from sdm.

ondrejhajek avatar ondrejhajek commented on September 7, 2024

there are some errors, but i think it works:)

in output, there are czech words, translation:

odpojení selhalo: Takové zařízení nebo adresa neexistuje - unmount failed: this device or address does not exists
připojeno do - mounted to
odpojeno, odpojen - unmounted

* Mount IMG '2023-12-11-raspios-bookworm-armhf-lite.img'
Before 'new' mount
Before 'old' mount
% Delete dangling loop device '/dev/loop40'
  /dev/loop40 1996488704      0         1  0 /home/ondicz/sdm/2023-12-11-raspios-bookworm-armhf-lite.img   0     512
losetup: /dev/loop40: odpojení selhalo: Takové zařízení nebo adresa neexistuje
mount: /dev/loop40p2 připojeno do /mnt/sdm.
mount: /dev/loop40p1 připojeno do /mnt/sdm/boot/firmware.
After 'old' mount
* Start Configuration
> Command Line: /usr/local/bin/sdm --customize --plugin apps:apps=@myapps 
  2023-12-11-raspios-bookworm-armhf-lite.img
* Host Information
   Hostname: rimmer
   uname: Linux rimmer 5.4.0-172-generic #190-Ubuntu SMP Fri Feb 2 23:24:22 UTC 2024 x86_64 
  x86_64 x86_64 GNU/Linux
   os-release Name: Linux Mint 20.3
   Version: 20.3 (Una) (una)
   Like OS: ubuntu
   sdm Version: V11.4
* IMG Information
   Name: 2023-12-11-raspios-bookworm-armhf-lite.img
   Date: 2023-12-11
   RasPiOS Version: 12
   RasPiOS Architecture: 32-bit armhf
   os-release Version: 12 (bookworm)
% sdm will use systemd-nspawn on this 'x86-64' host
  Retry the command with --chroot if this fails
* Plugins selected:
   * apps
       Args: apps=@myapps
> IMG '2023-12-11-raspios-bookworm-armhf-lite.img' has 299532 1K-blocks (0,3GB, 0,3GiB) free 
> Copy sdm to /usr/local/sdm in the IMG
* Start Phase 0 image customization
> Run Plugins Phase '0'
> Run Plugin 'apps' (/mnt/sdm/usr/local/sdm/plugins/apps) Phase 0 with arguments: 'apps=@myapps'
* Plugin apps: Start Phase 0
> Plugin apps: Keys/values found:
   apps: @myapps
?  file '/home/ondicz/sdm/myapps' not found
? Plugin 'apps' exited with failure
umount: /mnt/sdm/boot/firmware odpojen
umount: /mnt/sdm odpojen

from sdm.

gitbls avatar gitbls commented on September 7, 2024

one more thing. Could you check and see if there are any unexpected, sdm-ish looking loop devices hanging around after you run sdm?

sudo losetup -a

Thx

from sdm.

ondrejhajek avatar ondrejhajek commented on September 7, 2024

one more thing. Could you check and see if there are any unexpected, sdm-ish looking loop devices hanging around after you run sdm?

sudo losetup -a

Thx

i see only my snap applications

from sdm.

ondrejhajek avatar ondrejhajek commented on September 7, 2024

sure, here it is:

* Mount IMG '2023-12-11-raspios-bookworm-armhf-lite.img'
mount: /dev/loop40p2 připojeno do /mnt/sdm.
mount: /dev/loop40p1 připojeno do /mnt/sdm/boot/firmware.
* Start Configuration
> Command Line: /usr/local/bin/sdm --customize --plugin apps:apps=@myapps 
  2023-12-11-raspios-bookworm-armhf-lite.img
* Host Information
   Hostname: rimmer
   uname: Linux rimmer 5.4.0-172-generic #190-Ubuntu SMP Fri Feb 2 23:24:22 UTC 2024 x86_64 
  x86_64 x86_64 GNU/Linux
   os-release Name: Linux Mint 20.3
   Version: 20.3 (Una) (una)
   Like OS: ubuntu
   sdm Version: V11.4
* IMG Information
   Name: 2023-12-11-raspios-bookworm-armhf-lite.img
   Date: 2023-12-11
   RasPiOS Version: 12
   RasPiOS Architecture: 32-bit armhf
   os-release Version: 12 (bookworm)
% sdm will use systemd-nspawn on this 32-bit x86-64 host
  Retry the command with --chroot if this fails
* Plugins selected:
   * apps
       Args: apps=@myapps
> IMG '2023-12-11-raspios-bookworm-armhf-lite.img' has 299512 1K-blocks (0,3GB, 0,3GiB) free 
> Copy sdm to /usr/local/sdm in the IMG
* Start Phase 0 image customization
> Run Plugins Phase '0'
> Run Plugin 'apps' (/mnt/sdm/usr/local/sdm/plugins/apps) Phase 0 with arguments: 'apps=@myapps'
* Plugin apps: Start Phase 0
> Plugin apps: Keys/values found:
   apps: @myapps
?  file '/home/ondicz/sdm/myapps' not found
? Plugin 'apps' exited with failure
umount: /mnt/sdm/boot/firmware odpojen
umount: /mnt/sdm odpojen

from sdm.

gitbls avatar gitbls commented on September 7, 2024

Thanks!

from sdm.

ondrejhajek avatar ondrejhajek commented on September 7, 2024

v11.5 is ok

from sdm.

gitbls avatar gitbls commented on September 7, 2024

Excellent. Thanks for helping me sort this out. Still strange that I coudn't repro it here on Mint 20.2 😵

from sdm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.