uSD won't boot Jspot

General support for the Pi-Star System
AF6VN
Posts: 269
Joined: Fri Jul 20, 2018 1:15 am

Re: uSD won't boot Jspot

Post by AF6VN » Sat Jul 13, 2019 3:37 pm

KE7FNS wrote:
Sat Jul 13, 2019 9:03 am
Download http://sourceforge.net/projects/win32diskimager/

<SNIP>

That should make an exact duplicate of all the partitions on the SD card, then you can just repeat the writing step as many times as you want SD cards.
Caveat: the destination card must be identical or larger. Not just in size printed on the label, but in actual formatted block count. I once attempted such a procedure (forget if it was for an R-Pi or a BBB) but the destination card reported a few blocks fewer than the source card and the image could not be written to it. Win32DiskImager doesn't have the ability to "trim" an image down if the entire space is not being occupied. (If the destination is a much larger card, the partition written won't use the entire card, and a partition resize will have to be done later)

FYI: the BBB forums have deprecated Win32DiskImager in favor of Balena Etcher (which can even accept zipped/compressed image files without first unzipping them). However, Etcher only writes to memory cards, it does not create image files from cards.


I haven't tried but... If the Pi-Star image includes drivers for USB card readers and the rsync https://linux.die.net/man/1/rsync command (may need to apt-get install) it MIGHT be worth taking that new image (created with a version of pi-star that matches the running system), and rsync (as root) the entire running partition over the one in the card reader (look for options to force copy everything, not just "newer"). The contents of the FAT (boot) partition can be copied using Windows.

--
AF6VN
Dennis L Bieber

WH6ST
Posts: 7
Joined: Thu Jan 17, 2019 5:19 am

Re: uSD won't boot Jspot

Post by WH6ST » Sun Jul 14, 2019 5:20 am

IT'S ALIVE! IT'S ALIVE! Using win32diskimager did the trick for copying from the original 8GB uSD to the new 16GB card. Still wondering why the pistar img-to-etcher failed to allow wifi connection.....Thanks all for the help, I learned a lot. Aloha, Steve WH6ST

G4AON
Posts: 57
Joined: Tue Apr 24, 2018 5:34 pm

Re: uSD won't boot Jspot

Post by G4AON » Sun Jul 14, 2019 6:37 am

WH6ST wrote:
Sun Jul 14, 2019 5:20 am
IT'S ALIVE! IT'S ALIVE! Using win32diskimager did the trick for copying from the original 8GB uSD to the new 16GB card. Still wondering why the pistar img-to-etcher failed to allow wifi connection.....Thanks all for the help, I learned a lot. Aloha, Steve WH6ST
Surely the easier way is to back up the original setup, make a fresh install, copy (with Windows) the backup zip file to the root of the fresh install, pop it into your Pi and it will “just work”...

Glad it’s sorted.
73 Dave
ID51E plus 2
ID5100E
TYT MD-UV380
Chinese MMDVM on a Pi Zero W
DVAP on a Pi 3B
Shark OpenSPOT 2

AF6VN
Posts: 269
Joined: Fri Jul 20, 2018 1:15 am

Re: uSD won't boot Jspot

Post by AF6VN » Sun Jul 14, 2019 5:34 pm

WH6ST wrote:
Sun Jul 14, 2019 5:20 am
IT'S ALIVE! IT'S ALIVE! Using win32diskimager did the trick for copying from the original 8GB uSD to the new 16GB card. Still wondering why the pistar img-to-etcher failed to allow wifi connection.....Thanks all for the help, I learned a lot. Aloha, Steve WH6ST
It's probably also not using the entire new card, unless pi-star has something that runs on boot that resizes the partition. SSH into the board and type "df"

Code: Select all

[email protected](ro):~$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root       15213412 2490108  12069620  18% /
devtmpfs          492508       0    492508   0% /dev
tmpfs             497116       0    497116   0% /dev/shm
tmpfs              16384   13108      3276  81% /run
tmpfs               5120       4      5116   1% /run/lock
tmpfs             497116       0    497116   0% /sys/fs/cgroup
tmpfs               1024     464       560  46% /var/cache/samba
tmpfs               4096    2176      1920  54% /var/lib/samba/private
tmpfs                 64       0        64   0% /var/lib/php5/sessions
tmpfs               1024       0      1024   0% /var/lib/nginx/body
tmpfs                 16       4        12  25% /var/lib/logrotate
tmpfs                 16       0        16   0% /var/lib/dhcp
tmpfs                 16       4        12  25% /var/lib/ntp
tmpfs                 16       4        12  25% /var/lib/dhcpcd5
tmpfs                 16       0        16   0% /var/lib/sudo
tmpfs              65536   17020     48516  26% /var/log
tmpfs              16384       0     16384   0% /var/tmp
tmpfs              65536       8     65528   1% /tmp
/dev/mmcblk0p1     64456   22312     42144  35% /boot
[email protected](ro):~$
[email protected](ro):~$ sudo fdisk -l

Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
		<SNIP>
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa0e29a9d

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1        8192   137215   129024   63M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      137216 31116287 30979072 14.8G 83 Linux

[email protected](ro):~$
This is on a 16GB card, note the size of /dev/root (/dev/mmcblk0p2). You might want to compare the output of your 16GB card; I suspect you'll see something closer to 7.5GB.

--
AF6VN
Dennis L Bieber

KE7FNS
Posts: 406
Joined: Wed Apr 17, 2019 11:11 pm

Re: uSD won't boot Jspot

Post by KE7FNS » Sun Jul 14, 2019 7:57 pm

WH6ST wrote:
Sun Jul 14, 2019 5:20 am
IT'S ALIVE! IT'S ALIVE! Using win32diskimager did the trick for copying from the original 8GB uSD to the new 16GB card. Still wondering why the pistar img-to-etcher failed to allow wifi connection.....Thanks all for the help, I learned a lot. Aloha, Steve WH6ST
Imaging with etcher has nothing to do with the wifi settings, so if the RPi was booting up, then the imaging process was fine, most likely, you either configured the wpa_supplicant.conf file incorrectly, or you copied it to the wrong place.


If you plan on running multiple hotspots at the same time, make sure you set them to have different DMR ESSID's and of course different frequencies.

Also, just run "sudo pistar-expand" and "sudo reboot " in a SSH terminal to expand the disk partition to the full size of the card, you don't really need to though, cause even 8 gigs is overkill and you'll never run out of space.
All views, comments, posts and opinions shared are entirely my own.

Post Reply