-
Notifications
You must be signed in to change notification settings - Fork 10
Fresh SD Cards Not Read #9
Comments
Could try to list all the devices in "/dev" then capture only /dev/sd* listings. (/dev/sda, /dev/sdb, /dev/sdc). But then after that validate that they are sd cards somehow. Never ran into that issue before. let me see if I can replicate it. |
It's funny you should mention that. I started coding exactly what you
suggested and got really close to making it work on friday, but some other
things came up and I haven't had a chance to finish it. I'll see if I can
finish it this week. I'm also thinking about turning this into a snap if
you dont mind. Have you looked into snaps at all? I just converted code for
one of my devices at work into a snap and it makes things so much easier.
…On Mon, Sep 16, 2019, 7:26 PM Aaron Nguyen ***@***.***> wrote:
Could try to list all the devices in "/dev" then capture only /dev/sd*
listings. (/dev/sda, /dev/sdb, /dev/sdc). But then after that validate that
they are sd cards somehow.
Never ran into that issue before. let me see if I can replicate it.
And I'll test a few things out. Let me know if you come up with a solution
and if we can add it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AL56ETYPZML4OVUG2FVDUSDQKAI3DA5CNFSM4IVZPZJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62Z23Y#issuecomment-531996015>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL56ETZAHEQRQ7R2XCA6UVTQKAI3DANCNFSM4IVZPZJA>
.
|
listing all devices in /dev then looking for devices didn't seem very effective. on the snap side note, you can fork the code and port to whatever you want. I don't mind at all! |
Note: found a solution in this question https://codereview.stackexchange.com/questions/152486/parsing-the-lsblk-output using lsblk might be better, no root access needed. and can display just the disk names and size with the command "lsblk -d -o name,size -n". Will list the mmcblk0 (rpi disk) so will just have it ignore it. |
When using a fresh SD card, the software does not acknowledge them unless you first format them. Is there a way to set the software to image brand new SD cards? I started writing a python script to do this, but I'm having trouble.
The text was updated successfully, but these errors were encountered: