unihappytime
Member
Hi Gtech, I am trying to get a 32GB SD card to be formatted using a Raspberry Pi.Allright, here is my experience from this adventure. Last week I wanted to use my navigation but it kept loading and finally this error popped up:
View attachment 667561
So because of this topic I knew the time has come to replace the microSD. I never replaced the SD card for the update buffering before so I was going to replace that also (that's why I removed the whole motherboard instead of using just pliers for the microSD.)
View attachment 667570
Picture of the microSD card I used (14.83gb) next to the original card:
View attachment 667564
View attachment 667566
First I tried to bitcopy the old microSD but without zero success, I tried putting it in the freezer and then got stuck on 55% and with no partitions on the new microSD card so no luck for me this time...
Tried to run Loek his script on 'Ubuntu for windows' but not sure if it was my skills or the program but it didn't worked out so I tried a fresh install of Ubuntu on a laptop and after some assistance I got it running:
View attachment 667569
Leftovers are a fresh microSD and 2 Linux partitions so good to go!
Installed everything back and power on.
Tried to use the navigation while connected to wifi and after a few tries it started to download the maps:
View attachment 667572
So I'm happy that it worked out finally. Many thanks @LuckyLuke for sharing this info and creating this script.
The SD card is 29.18 GB FAT32 formatted in windows, I then tried to use the nav-sdcard-format.sh script in the raspberry pi with no luck.
Below is the steps and info, please kindly let me know what I am doing wrong?
1. Downloaded the nav-sdcard-format.sh on an win PC from the link given by lukylcuk. It downloaded as nav-sdcard-format.sh.txt
2. Removed the .txt extension in window and copied it to a USB drive.
3. Inserted the USB drive to the Pi, and copied it to the home/Pi directory
4. On the Pi using the GUI interface found the nav-sdcard-format.sh file and set it to be executable by everyone in the properties menu.
5. Opened the terminal and checked that I am in the home/Pi directory using the pwd command.
6. Using the ls command to check the file is in that directory.
7. Using the ls nav-sdcard-format.sh -l command to check the file is executable.
8. Using the sudo fdisk -l command to find the list of drive on the Pi.
9. the list is showing Disk /dev/sda: 29.8 Gib .... so I take it the SD card's location is /dev/sda
10. Using the ./nav-sdcard-format.sh /dev/sda to run the script, but I get the error bash: ./nav-sdcard-format.sh: /bin/bash^m: bad interpreter: no such file or directory.
11. I also tried ./nav-sdcard-format.sh -f /dev/sda but I still get the same error.
Any pointer would be really appropriated.