Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4104

Troubleshooting • Re: "dd" Command Won't Produce a Bootable SD card

$
0
0
Thanks, so much, for all of your responses, and I'm sorry that I've taken so long to respond. When I posted this question, I clicked the little box to receive an E-mail, once someone responded. I never received any E-mails, so I didn't know that anyone had responded.
Looks OK, more interesting would be what is inside that image and how did you make it. You can try "fdisk -l myfilename.img" to see if there is valid partition table.
The "fdisk" command renders the following.

Code:

evansste@Desktop:~$ /sbin/fdisk -l /media/evansste/bb0e7990-35c3-47f4-b4d6-e63da1ec2c41/RPi4_Raspbian_Stage_HDMI.imgDisk /media/evansste/bb0e7990-35c3-47f4-b4d6-e63da1ec2c41/RPi4_Raspbian_Stage_HDMI.img: 29.72 GiB, 31914983424 bytes, 62333952 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisklabel type: dosDisk identifier: 0x33e32905Device                                                                             Boot  Start      End  Sectors  Size Id Type/media/evansste/bb0e7990-35c3-47f4-b4d6-e63da1ec2c41/RPi4_Raspbian_Stage_HDMI.img1        8192   532479   524288  256M  c W95 /media/evansste/bb0e7990-35c3-47f4-b4d6-e63da1ec2c41/RPi4_Raspbian_Stage_HDMI.img2      532480 62333951 61801472 29.5G 83 Linu
Based on this result, it seems as if the card has a valid partition table. I'm certainly no expert. So, I hope someone will point out that I'm wrong if I am, in fact, mistaken.

I made this image because I've chosen to use the Raspberry Pi as a private Wi-Fi, video streaming network.

A long time ago, I installed the Raspberry Pi OS onto the Pi, and followed an online tutorial on how to make my own Wi-fi access point. I, then, decided to install Apache, and turn the Pi into a sort-of web server that allows me to watch my movies, by streaming them over the Wi-fi network that the Pi provides. It worked quite well. I could plug in the Pi and notice the Wi-fi network as being available on other devices. I could, then, connect to that network, using a different device, and watch my movies, which are stored on the Raspberry Pi. It's a nice, convenient way for me to have my own little private streaming network, with all of my shows and movies on it.

Because I didn't want to ever have to go through that process of setting it all up again, I decided to make an image of that micro SD card. Eventually, my little network stopped working; most likely due to an aging micro SD card. So, I decided to restore the backup onto a new card, and, now I'm running into this issue of it not working.

Before, I could plug in the Pi, and the network would show up, several minutes later, as being "available" on other devices. Now, the network never shows up, and, when I connect a monitor to the Pi, the screen shows nothing.
Was this done on a Pi while you were running on the "source" SD card or was the copy done on another system?

All .img file creation and backup procedures are being done on a separate system; which is my laptop. I created the backup image, a long time ago, after I was able to get my Pi set up the way that I want. I set up the Pi, popped the SD card into my laptop, and created an image onto an external hard drive; which is hooked up to my laptop. My laptop's hard drive isn't that big; which is why I've put these .img files onto an external hard drive. Now, I'm using the same laptop to write the image onto a new micro SD card.
A dd backup should boot as long as the SD card you restored the backup is OK. Do you have a monitor connected to the Raspberry and show the boot messages?

I have a monitor hooked up, and it shows nothing. It just shows the blue screen, with a familiar message stating that there is no HDMI input signal.
if you just want to retrieve files, there is no need to boot it, you can just mount the img in loopback mode

if you want help figuring out why it isnt booting, describe what the pi does when it doesnt boot, read the not booting sticky

My laptop is running Debian, which has a disk utility installed. I can pop in the micro SD card, and view all of the partitions, using that disk utility. Also, I can look at all of the files, using a file browser. So, everything looks just as good as the original micro SD card. The files appear to be fine, and the partition structure seems to look okay -- according to me (who is a novice).

After looking at some of the suggestions in the "My Raspberry Pi won't boot" sticky, I'm beginning to wonder if I should try using an external micro SD card reader/writer, instead of the native one, that's built into my laptop. I've already tried multiple micro SD cards. This last one is brand new, and is supposed to be the highest quality, and one of the most reputable brands.

https://www.amazon.com/dp/B07G3GMRYF?re ... tails&th=1

It's a 64 GB micro SD card, and the image was made from one that's only 32 GB. So, there's no danger of the image not being able to fit on the card.

My plan, now, is to go out and buy an external, micro SD card reader, and try using that to rewrite this image onto the card. Hopefully, that'll do the trick.

Thanks, so much, for all of these responses. They're very helpful!

Statistics: Posted by evansste — Sat Jul 20, 2024 4:23 pm



Viewing all articles
Browse latest Browse all 4104

Trending Articles