-
|
I have been trying to use sdm in order to see if it would be as useful as it appears. I am stumbling when trying to burn my first pretty standard image. Receive the error message: I am running sdm on a laptop running Linux Mint (20.3 based on Ubuntu 20.04). I was able to perform a couple of basic, initial configurations successfully. In the course of trying to sort things out, I moved the .img file from the sub-directory I had it in originally to my home directory and shortened the name. Attempting to burn this image fails. Is there something blindingly obvious that I have missed? |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 10 replies
-
|
No, you're doing everything correct, as far as I can tell. The first thing to sort out is the 'tr: read error'. Does your system have /dev/random on it? that's used to generate the new disk id. As far as the dd error, I'm mystified. Probably not it, but what is the result of using a full path, as in /home/user/bullseye.img? |
Beta Was this translation helpful? Give feedback.
-
|
Did a bit more looking around, and I'm wondering if 'iflag=direct' is causing this. Since I don't have an easy way to replicate it, can you try running sdm --burn again and adding the switch |
Beta Was this translation helpful? Give feedback.
-
|
If the disk is in use, it sounds like there's a dangling mount or loop device hanging around. Easiest would be to reboot your Mint system to clean up anything dangling, or look for any /mnt/sdm* mounts and dismount them, and clean up the associated loop devices (either Let me know how it goes. |
Beta Was this translation helpful? Give feedback.
-
|
Was thinking about this last night, and wondering if the dd invalid argument error is due to the fact that you have a In either case, a clean reboot and then trying your On the 'tr' error, what is the result of the following command (this is what sdm does with the |
Beta Was this translation helpful? Give feedback.
-
|
Wow, the tr issue is very strange. That line of code is right from sdm. I'm baffled as to why it would fail on Mint in a script but work from the command line. I've been looking into some tr-less replacement code, but haven't implemented anything yet. As far as the other issue, I'm thinking that your disk automounter is the culprit. Please have a look at the system logs and see if there's anything useful there in terms of automounter log entries. I'd expect to see some about the time you're doing the burn. Not sure what does that on Mint (something in file explorer?), but if you can figure it out, stop it from automounting and try it again from the top, that would be VERY helpful in chasing this down. |
Beta Was this translation helpful? Give feedback.
-
|
Ah, perfect. It's all working now, except for the tr command, which is causing the sfdisk command to fail. sudo edit /usr/local/sdm/sdm-cmdsubs, and find the line: Replace it with Save the file, and try your burn command again (try it without the |
Beta Was this translation helpful? Give feedback.
-
|
Can't help you with the boot issues/questions on your laptop. I don't have Mint here, so can't look at the logs to see what's going on and offer suggestions. Sounds like you have a scenario that works? Generally, it's best to disable ALL automatic disk handling so the system doesn't do something unexpected behind your back. I see that there's still an issue (rereading partition table failed: device or resource is busy). You didn't say which boot scenario this is, but there should be NO resources like that in a good burn. I do observe that there is still an sfdisk issue (sfdisk unrecognized option --diskid). sfdisk on RasPiOS is "sfdisk from util-linux 2.36.1". Please let me know what |
Beta Was this translation helpful? Give feedback.
-
|
I've nailed the sfdisk issue. Looks like Ubuntu 20.04 had an sfdisk that didn't have By my tally, the remaining problem you're having is overly aggressive automatic disk mounting. Not sure what I can do about that, so I'm going to leave that with you to resolve. Let me know if I'm missing something. I'm planning to check in these updates Tuesday morning. I'm going to be more-or-less tied up 10/19-10/27 with not much time to work on this. So, find bugs quickly, especially if you need them fixed before my upcoming constrained time. |
Beta Was this translation helpful? Give feedback.
-
|
As I suggested, update checked in this morning that will handle down-rev sfdisk. Please let me know how it goes. |
Beta Was this translation helpful? Give feedback.
-
|
Great that we've made some progress! You said "dd: invalid argument --ddsw bs=16M switch on burn command needed". I'm not sure how to interpret that. Can you please expand on this a bit? As far as the disk in use problem, in case it's not clear, those messages are coming from system utilities such as parted and/or sfdisk, not from sdm itself. Also, one other thing to try: edit sdm-cmdsubs, and in the expandpartition function, uncomment the two lines #parted and #errifrc, and comment out the two lines following those (echo ",+" and errifrc). If that doesn't resolve the issue, what is the result if you don't use the |
Beta Was this translation helpful? Give feedback.
-
|
Hi, Wondering if you've had an opportunity to try not using --expand-partition or doing the edit to sdm-cmdsubs? |
Beta Was this translation helpful? Give feedback.
-
|
The best way to figure out what's happening is to look at the system logs (/var/log/syslog). That can provide a fair amount of detail as to what is happening when your Pi2w boots. You can mount the SD card on another Linux system and pull off the syslog file for a good look at it. If you are unable to sort out what's going on, please post the entire file here so I can have a look at it. Trying to resolve this without the logs is likely to be quite unsuccessful. |
Beta Was this translation helpful? Give feedback.
-
|
We've determined that your version of dd isn't too old, but in one of your other threads you mentioned the kernel version on your Linux Mint, and it's pretty old. My current suspicion is that your Linux Mint OS doesn't like Also, there's no way to close a discussion topic. Issues can be closed, of course. |
Beta Was this translation helpful? Give feedback.
We've determined that your version of dd isn't too old, but in one of your other threads you mentioned the kernel version on your Linux Mint, and it's pretty old. My current suspicion is that your Linux Mint OS doesn't like
iflag=directon disk files for some reason.Also, there's no way to close a discussion topic. Issues can be closed, of course.