Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to restore dead SD card used to boot a HDD? #195

Closed
procount opened this issue Nov 3, 2018 · 102 comments

Comments

@procount
Copy link
Owner

commented Nov 3, 2018

Pro count uh I need help. So basically last night I shutdown my raspberry pi 3B+, turned it on this morning and nothing happens. I plugged the SD card into a reader on my Mac and the card could not be initialised. I am thinking the card is dead. Basically I had the boot on the SD card, and installed the OS on a HDD. The HDD still works. How can I get the Raspberry pi working again?

Thanks
DarkPlatinim

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

Ok I'll get a 64 GB sad card from tesco, will a SanDisk ultra be ok? It's £17 compared to the extreme edition which is £28

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 3, 2018

Sandisk ultra is ok.
Sizewise is up to you.
What size was your bad one?
If you are only going to use it to boot your hard disk then 64gb would be a waste, ultimately. But you do need something big enough temporarily to store the 2 raspbians and retorpie onto (not incl. Game roms). 16gb might be ok. 32 would definitely be big enough.
If you bought a 64gb card, I would use it temporarily to install the oses and create your boot disk. Then copy the boot disk to a smaller 8gb card to boot the hard drive and use the 64gb card for something else.

If all 3 oses can install to a 16gb card, then I might just use one of those and then keep it as a boot card aswell.

Depends on how big your pockets are and what you're going to use them for afterwards.

Sorry, but I don't have time to test how big a card you need at the moment (busy weekend) but I'll write some instructions as soon as possible.
Step 1 is get sd card.
Step 2 install Raspbian on sd card so you can access your hard disk and get some info off it.
Step3 remove hdd
Step4 install pinn on new sd card
Step 5 install 2x raspbian and retropie as before but onto sd card
Step 6 edit sd card to boot OSes off hdd.
Step 7 (optional) remove rootfs from sd card and just leave boot partitions. Then you can copy it to a smaller boot only sd card.

Let me know when you have done step 2

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

My previous one was 8 GB. I'll get a 32 GB SD card. Do I have to start a fresh installation of Raspbian? I can't just use the OS on the HDD?

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 3, 2018

It has no boot partition.
Actually you could just install pinn to 32gb card. Then install 2 raspbian & retropie to 32gb card. Then you can use one of those raspbians to probe your hdd. That would save a step.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

So basically what you mean is 1. Download PINN on SD card, 2. Install 2 raspbian and 1 retro pie to SD card from online... Then? Also my HDD has multiple OS on it, i just use 2 raspbian and retropie mainly. The others are extra. I have several project spaces as well.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

I have downloaded: 2x Raspbian, 1x RetroPi, 1x LibreELEC And 7x project spaces on SD card.

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 3, 2018

What you need to do is to install on the SD card EXACTLY what you installed on your HDD.
More OSes would not be a problem, but you need to at least install what you had on the HDD.

When you've done that we will examine your HDD to find out which partitions have which OSes installed on them, then we will rebuild the data files for PINN so that it knows about them.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

The thing is I've forgotten EXACTLY what OS I have downloaded on my SD card. Looking at the filesystem on the HDD I can see what exactly is retropie, and the raspbians. Would it be possible to delete some of the filesystems that I don't really need and add it to the free space that is automatically put in the filesystem?

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 3, 2018

No matter. Will find out and adjust if necessary.
Have you now installed PINN and at least Raspbian?
When you have done that, boot PINN and select one of the Raspbians and boot into that.
In Raspbian open a terminal.
Enter the following commands and cut&paste the output of each command here.

mount
sudo fdisk -l

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

Here is mount WITHOUT HDD plugged in:
pi@raspberrypi:~ $ mount /dev/mmcblk0p9 on / type ext4 (rw,noatime,data=ordered) devtmpfs on /dev type devtmpfs (rw,relatime,size=470116k,nr_inodes=117529,mode=755) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct) mqueue on /dev/mqueue type mqueue (rw,relatime) sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime) debugfs on /sys/kernel/debug type debugfs (rw,relatime) configfs on /sys/kernel/config type configfs (rw,relatime) /dev/mmcblk0p8 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=94944k,mode=700,uid=1000,gid=1000) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) /dev/mmcblk0p7 on /media/pi/root_rp44 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p6 on /media/pi/boot_rp44 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p5 on /media/pi/SETTINGS type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p21 on /media/pi/prjroot3 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p20 on /media/pi/prjboot3 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p19 on /media/pi/prjroot2 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p18 on /media/pi/prjboot2 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p17 on /media/pi/prjroot1 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p16 on /media/pi/prjboot1 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p15 on /media/pi/prjroot0 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p14 on /media/pi/prjboot0 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p13 on /media/pi/prjroot type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p12 on /media/pi/prjboot type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p11 on /media/pi/Storage type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p10 on /media/pi/System type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)

fdisk -l:
`pi@raspberrypi:~ $ sudo fdisk -l
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x07189166

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 137215 129024 63M e W95 FAT16 (LBA)
/dev/mmcblk0p2 137216 62333951 62196736 29.7G 5 Extended
/dev/mmcblk0p5 139264 204797 65534 32M 83 Linux
/dev/mmcblk0p6 204800 321535 116736 57M c W95 FAT32 (LBA)
/dev/mmcblk0p7 327680 9936893 9609214 4.6G 83 Linux
/dev/mmcblk0p8 9936896 10084349 147454 72M c W95 FAT32 (LBA)
/dev/mmcblk0p9 10084352 22732797 12648446 6G 83 Linux
/dev/mmcblk0p10 22732800 23781373 1048574 512M c W95 FAT32 (LBA)
/dev/mmcblk0p11 23781376 30048253 6266878 3G 83 Linux
/dev/mmcblk0p12 30048256 30253053 204798 100M c W95 FAT32 (LBA)
/dev/mmcblk0p13 30253056 36495357 6242302 3G 83 Linux
/dev/mmcblk0p14 36495360 36700157 204798 100M c W95 FAT32 (LBA)
/dev/mmcblk0p15 36700160 42942461 6242302 3G 83 Linux
/dev/mmcblk0p16 42942464 43147261 204798 100M c W95 FAT32 (LBA)
/dev/mmcblk0p17 43147264 49389565 6242302 3G 83 Linux
/dev/mmcblk0p18 49389568 49594365 204798 100M c W95 FAT32 (LBA)
/dev/mmcblk0p19 49594368 55836669 6242302 3G 83 Linux
/dev/mmcblk0p20 55836672 56041469 204798 100M c W95 FAT32 (LBA)
/dev/mmcblk0p21 56041472 62333951 6292480 3G 83 Linux
pi@raspberrypi:~ $
`

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 3, 2018

Sorry. I should have said to plug your hdd in because that is what I need to look at.

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 3, 2018

I may be a bit slow in responding as I'm busy, but don't worry. We'll get there.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

Not a problem.

mount:
pi@raspberrypi:~ $ mount /dev/mmcblk0p9 on / type ext4 (rw,noatime,data=ordered) devtmpfs on /dev type devtmpfs (rw,relatime,size=470116k,nr_inodes=117529,mode=755) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct) mqueue on /dev/mqueue type mqueue (rw,relatime) sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime) debugfs on /sys/kernel/debug type debugfs (rw,relatime) configfs on /sys/kernel/config type configfs (rw,relatime) /dev/mmcblk0p8 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=94944k,mode=700,uid=1000,gid=1000) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) /dev/mmcblk0p7 on /media/pi/root_rp44 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p6 on /media/pi/boot_rp44 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p5 on /media/pi/SETTINGS type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p21 on /media/pi/prjroot3 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p20 on /media/pi/prjboot3 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p19 on /media/pi/prjroot2 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p18 on /media/pi/prjboot2 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p17 on /media/pi/prjroot1 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p16 on /media/pi/prjboot1 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p15 on /media/pi/prjroot0 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p14 on /media/pi/prjboot0 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p13 on /media/pi/prjroot type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p12 on /media/pi/prjboot type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p11 on /media/pi/Storage type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/mmcblk0p10 on /media/pi/System type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/sdb10 on /media/pi/Storage1 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb6 on /media/pi/root type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb9 on /media/pi/root_raspx type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb11 on /media/pi/root-rbp2 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb8 on /media/pi/root0 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb13 on /media/pi/prjroot01 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb12 on /media/pi/prjroot4 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb18 on /media/pi/prjroot5 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb14 on /media/pi/prjroot11 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb16 on /media/pi/prjroot31 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb17 on /media/pi/prjroot41 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb19 on /media/pi/prjroot6 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb15 on /media/pi/prjroot21 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) /dev/sdb7 on /media/pi/root_gen type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)

fdisk -l (left out the /dev/ram to prevent spam):
`Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x07189166

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 137215 129024 63M e W95 FAT16 (LBA)
/dev/mmcblk0p2 137216 62333951 62196736 29.7G 5 Extended
/dev/mmcblk0p5 139264 204797 65534 32M 83 Linux
/dev/mmcblk0p6 204800 321535 116736 57M c W95 FAT32 (LBA)
/dev/mmcblk0p7 327680 9936893 9609214 4.6G 83 Linux
/dev/mmcblk0p8 9936896 10084349 147454 72M c W95 FAT32 (LBA)
/dev/mmcblk0p9 10084352 22732797 12648446 6G 83 Linux
/dev/mmcblk0p10 22732800 23781373 1048574 512M c W95 FAT32 (LBA)
/dev/mmcblk0p11 23781376 30048253 6266878 3G 83 Linux
/dev/mmcblk0p12 30048256 30253053 204798 100M c W95 FAT32 (LBA)
/dev/mmcblk0p13 30253056 36495357 6242302 3G 83 Linux
/dev/mmcblk0p14 36495360 36700157 204798 100M c W95 FAT32 (LBA)
/dev/mmcblk0p15 36700160 42942461 6242302 3G 83 Linux
/dev/mmcblk0p16 42942464 43147261 204798 100M c W95 FAT32 (LBA)
/dev/mmcblk0p17 43147264 49389565 6242302 3G 83 Linux
/dev/mmcblk0p18 49389568 49594365 204798 100M c W95 FAT32 (LBA)
/dev/mmcblk0p19 49594368 55836669 6242302 3G 83 Linux
/dev/mmcblk0p20 55836672 56041469 204798 100M c W95 FAT32 (LBA)
/dev/mmcblk0p21 56041472 62333951 6292480 3G 83 Linux

Disk /dev/sdb: 931.5 GiB, 1000204885504 bytes, 1953525167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2b2efe32

Device Boot Start End Sectors Size Id Type
/dev/sdb1 8192 137215 129024 63M e W95 FAT16 (LBA)
/dev/sdb2 137216 1953525166 1953387951 931.5G 5 Extended
/dev/sdb5 139264 204797 65534 32M 83 Linux
/dev/sdb6 204800 146096125 145891326 69.6G 83 Linux
/dev/sdb7 146096128 294264829 148168702 70.7G 83 Linux
/dev/sdb8 294264832 453754877 159490046 76.1G 83 Linux
/dev/sdb9 453754880 595910653 142155774 67.8G 83 Linux
/dev/sdb10 595910656 731004925 135094270 64.4G 83 Linux
/dev/sdb11 731004928 869244925 138239998 65.9G 83 Linux
/dev/sdb12 869244928 1004314621 135069694 64.4G 83 Linux
/dev/sdb13 1004314624 1139384317 135069694 64.4G 83 Linux
/dev/sdb14 1139384320 1274454013 135069694 64.4G 83 Linux
/dev/sdb15 1274454016 1409523709 135069694 64.4G 83 Linux
/dev/sdb16 1409523712 1544593405 135069694 64.4G 83 Linux
/dev/sdb17 1544593408 1679663101 135069694 64.4G 83 Linux
/dev/sdb18 1679663104 1814732797 135069694 64.4G 83 Linux
/dev/sdb19 1814732800 1953525166 138792367 66.2G 83 Linux
pi@raspberrypi:~ $
`

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 3, 2018

Can you post the contents of /media/pi/SETTINGS/installed_os.json plesae?

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

[
{
"bootable" : true,
"description" : "Retropie2 v4.4 gaming distro using Emulation Station for RPi2/3",
"folder" : "/settings/os/Retropie2",
"group" : "Games",
"icon" : "/settings/os/Retropie2/icon.png",
"name" : "Retropie2",
"partitions" : [
"/dev/mmcblk0p6",
"/dev/mmcblk0p7"
],
"password" : "raspberry",
"release_date" : "2018-04-14",
"supported_models" : [
"Pi 2",
"Pi 3"
],
"url" : "https://retropie.org.uk/",
"username" : "pi"
},
{
"bootable" : true,
"description" : "A port of Debian Stretch for the Raspberry Pi (full desktop version)",
"folder" : "/settings/os/Raspbian",
"group" : "",
"icon" : "/settings/os/Raspbian/icon.png",
"name" : "Raspbian",
"partitions" : [
"/dev/mmcblk0p8",
"/dev/mmcblk0p9"
],
"password" : "raspberry",
"release_date" : "2018-10-09",
"supported_models" : [
"Pi Model",
"Pi 2",
"Pi Zero",
"Pi 3",
"Pi Compute Module 3"
],
"url" : "http://www.raspbian.org/",
"username" : "pi"
},
{
"bootable" : true,
"description" : "LibreELEC is a fast and user-friendly Kodi Entertainment Center distribution.",
"folder" : "/settings/os/LibreELEC_RPi2",
"group" : "",
"icon" : "/settings/os/LibreELEC_RPi2/icon.png",
"name" : "LibreELEC_RPi2",
"partitions" : [
"/dev/mmcblk0p10",
"/dev/mmcblk0p11"
],
"password" : "libreelec",
"release_date" : "2018-04-13",
"supported_models" : [
"Pi 2",
"Pi 3"
],
"url" : "",
"username" : "root"
},
{
"bootable" : false,
"description" : "A Project Space to partition the SD card equally",
"folder" : "/mnt/os/ProjectSpace",
"group" : "Utility",
"icon" : "/mnt/os/ProjectSpace/ProjectSpace_-1.png",
"name" : "ProjectSpace - 1",
"partitions" : [
"/dev/mmcblk0p12",
"/dev/mmcblk0p13"
],
"password" : "?",
"release_date" : "2018-05-14",
"supported_models" : [
"Pi Zero",
"Pi Model",
"Pi Compute Module",
"Pi 2",
"Pi 3"
],
"url" : "https://",
"username" : "?"
},
{
"bootable" : false,
"description" : "A Project Space to partition the SD card equally",
"folder" : "/mnt/os/ProjectSpace",
"group" : "Utility",
"icon" : "/mnt/os/ProjectSpace/ProjectSpace
-2.png",
"name" : "ProjectSpace - 2",
"partitions" : [
"/dev/mmcblk0p14",
"/dev/mmcblk0p15"
],
"password" : "?",
"release_date" : "2018-05-14",
"supported_models" : [
"Pi Zero",
"Pi Model",
"Pi Compute Module",
"Pi 2",
"Pi 3"
],
"url" : "https://",
"username" : "?"
},
{
"bootable" : false,
"description" : "A Project Space to partition the SD card equally",
"folder" : "/mnt/os/ProjectSpace",
"group" : "Utility",
"icon" : "/mnt/os/ProjectSpace/ProjectSpace
-3.png",
"name" : "ProjectSpace - 3",
"partitions" : [
"/dev/mmcblk0p16",
"/dev/mmcblk0p17"
],
"password" : "?",
"release_date" : "2018-05-14",
"supported_models" : [
"Pi Zero",
"Pi Model",
"Pi Compute Module",
"Pi 2",
"Pi 3"
],
"url" : "https://",
"username" : "?"
},
{
"bootable" : false,
"description" : "A Project Space to partition the SD card equally",
"folder" : "/mnt/os/ProjectSpace",
"group" : "Utility",
"icon" : "/mnt/os/ProjectSpace/ProjectSpace
-4.png",
"name" : "ProjectSpace - 4",
"partitions" : [
"/dev/mmcblk0p18",
"/dev/mmcblk0p19"
],
"password" : "?",
"release_date" : "2018-05-14",
"supported_models" : [
"Pi Zero",
"Pi Model",
"Pi Compute Module",
"Pi 2",
"Pi 3"
],
"url" : "https://",
"username" : "?"
},
{
"bootable" : false,
"description" : "A Project Space to partition the SD card equally",
"folder" : "/mnt/os/ProjectSpace",
"group" : "Utility",
"icon" : "/mnt/os/ProjectSpace/ProjectSpace
-_5.png",
"name" : "ProjectSpace - 5",
"partitions" : [
"/dev/mmcblk0p20",
"/dev/mmcblk0p21"
],
"password" : "?",
"release_date" : "2018-05-14",
"supported_models" : [
"Pi Zero",
"Pi Model",
"Pi Compute Module",
"Pi 2",
"Pi 3"
],
"url" : "https://",
"username" : "?"
}
]

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 3, 2018

My first guess is that you had the following installed on your HDD:
Raspbian
Gentoo64
Raspbian
Raspex
OpenELEC or LibreELEC?
rbp2?
8 project spaces

I can't remember what rb2 is - I'll have to look it up, but does that sound right? PLesae correct any Ihave got wrong.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

2 x raspbian yes, Gentoo pretty sure raspex think so... LibreELEC yes, rbp2 pretty sure remebering downloading another OS but not sure what it was. I know it was one of the desktop versions though, not CLI.

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 3, 2018

We'll need to go through them in turn to make sure what they are.
Can you post the contents of /media/pi/root/etc/fstab?

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

proc /proc proc defaults 0 0
PARTUUID=c27920ee-06 /boot vfat defaults 0 2
PARTUUID=2b2efe32-06 / ext4 defaults,noatime 0 1

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 3, 2018

I'm going to keep looking to see what rbp2 is, but meanwhile, maybe you can have a browse in /media/pi/root-rbp2 and see if you can identify what it is.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

Sure.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

/media/pi/root is retropie, /media/pi/root0 is Raspbian 1, /media/pi/root-rbp2 is Raspbian 2.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

Going to turn in for the night. Will be on tommorow.

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 3, 2018

Really? you sure? That's not what I expected.
But Raspbian might be renaming the mountpoints to avoid having 2 mountpoints called the same name.

How did you get 2 versions of Raspbian on there anyway? Is one full Raspbian and the other Raspbian-Lite?

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 3, 2018

OK. tomorrow.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 3, 2018

Yes I am sure, the second raspbian had some windows 98 QEMU files. Found them in there.They are both full Raspbians as well. Maybe something to do with having 2 of exactly the same images?

Goodnight

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 4, 2018

So I this is what you need to do.
Remove HDD (to avoid making mistakes)
Boot PINN on your SD card and install the following OSes on to it (to match what is on your HDD and removing the previous ones you put on the SD card)

Retropie
Gentoo64
Raspbian
Raspex
LibreELEC
PiTop (just temporarily)
ProjectSpace1
ProjectSpace2
ProjectSpace3
ProjectSpace4
ProjectSpace5
ProjectSpace6
ProjectSpace7
ProjectSpace8

Once installed, replace PiTop with another copy of Raspbian (so you have 2 Raspbians)

Then boot into one of the Raspbians and paste a new copy of /media/pi/SETTINGS/installed_os.json here.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 4, 2018

[ { "bootable" : true, "description" : "A port of Debian Stretch for the Raspberry Pi (full desktop version)", "folder" : "/settings/os/Raspbian", "group" : "", "icon" : "/settings/os/Raspbian/icon.png", "name" : "Raspbian", "partitions" : [ "/dev/mmcblk0p6", "/dev/mmcblk0p7" ], "password" : "raspberry", "release_date" : "2018-10-09", "supported_models" : [ "Pi Model", "Pi 2", "Pi Zero", "Pi 3", "Pi Compute Module 3" ], "url" : "http://www.raspbian.org/", "username" : "pi" }, { "bootable" : true, "description" : "Retropie2 v4.4 gaming distro using Emulation Station for RPi2/3", "folder" : "/settings/os/Retropie2", "group" : "Games", "icon" : "/settings/os/Retropie2/icon.png", "name" : "Retropie2", "partitions" : [ "/dev/mmcblk0p8", "/dev/mmcblk0p9" ], "password" : "raspberry", "release_date" : "2018-04-14", "supported_models" : [ "Pi 2", "Pi 3" ], "url" : "https://retropie.org.uk/", "username" : "pi" }, { "bootable" : true, "description" : "A port of Debian Stretch for the Raspberry Pi (full desktop version)", "folder" : "/settings/os/Raspbian", "group" : "", "icon" : "/settings/os/Raspbian/icon.png", "name" : "Raspbian", "partitions" : [ "/dev/mmcblk0p10", "/dev/mmcblk0p11" ], "password" : "raspberry", "release_date" : "2018-10-09", "supported_models" : [ "Pi Model", "Pi 2", "Pi Zero", "Pi 3", "Pi Compute Module 3" ], "url" : "http://www.raspbian.org/", "username" : "pi" }, { "bootable" : true, "description" : "64-bit Gentoo Linux for the RPi3, with Xfce4 desktop", "folder" : "/settings/os/gentoo64", "group" : "General", "icon" : "/settings/os/gentoo64/icon.png", "name" : "gentoo64", "partitions" : [ "/dev/mmcblk0p12", "/dev/mmcblk0p13" ], "password" : "raspberrypi64", "release_date" : "2018-09-26", "supported_models" : [ "Pi 3" ], "url" : "https://github.com/sakaki-/gentoo-on-rpi3-64bit", "username" : "demouser" }, { "bootable" : true, "description" : "Raspex with LXDE based on Ubuntu 18.04 LTS", "folder" : "/settings/os/Raspex", "group" : "", "icon" : "/settings/os/Raspex/icon.png", "name" : "Raspex", "partitions" : [ "/dev/mmcblk0p14", "/dev/mmcblk0p15" ], "password" : "raspex", "release_date" : "2018-03-28", "supported_models" : [ "Pi 2", "Pi 3" ], "url" : "http://raspex.exton.se/?p=843", "username" : "raspex" }, { "bootable" : true, "description" : "LibreELEC is a fast and user-friendly Kodi Entertainment Center distribution.", "folder" : "/settings/os/LibreELEC_RPi2", "group" : "", "icon" : "/settings/os/LibreELEC_RPi2/icon.png", "name" : "LibreELEC_RPi2", "partitions" : [ "/dev/mmcblk0p16", "/dev/mmcblk0p17" ], "password" : "libreelec", "release_date" : "2018-04-13", "supported_models" : [ "Pi 2", "Pi 3" ], "url" : "", "username" : "root" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_1.png", "name" : "ProjectSpace - 1", "partitions" : [ "/dev/mmcblk0p18", "/dev/mmcblk0p19" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_2.png", "name" : "ProjectSpace - 2", "partitions" : [ "/dev/mmcblk0p20", "/dev/mmcblk0p21" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_3.png", "name" : "ProjectSpace - 3", "partitions" : [ "/dev/mmcblk0p22", "/dev/mmcblk0p23" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_4.png", "name" : "ProjectSpace - 4", "partitions" : [ "/dev/mmcblk0p24", "/dev/mmcblk0p25" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_5.png", "name" : "ProjectSpace - 5", "partitions" : [ "/dev/mmcblk0p26", "/dev/mmcblk0p27" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_6.png", "name" : "ProjectSpace - 6", "partitions" : [ "/dev/mmcblk0p28", "/dev/mmcblk0p29" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_7.png", "name" : "ProjectSpace - 7", "partitions" : [ "/dev/mmcblk0p30", "/dev/mmcblk0p31" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_8.png", "name" : "ProjectSpace - 8", "partitions" : [ "/dev/mmcblk0p32", "/dev/mmcblk0p33" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" } ]​

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 4, 2018

The next step is to match up the existing partitions on your HDD with the new OSes you've just installed on your SD card.

Your previous posts had the HDD mounted as /dev/sdb, but I didn't see a /dev/sda - maybe that was just the way it happened.

I will assume though that if you start PINN with the HDD as the only USB device, that it will be mounted as /dev/sda. So I used that notation below.

I have replaced the device for the root partition for each OS with what I THINK is the correct mapping, according to your posts and what you told me about what was on various partitions. YOU SHOULD CHECK THESE BELOW TO MAKE SURE THEY ARE OK.

I only mapped the main OSes and stopped after the first project space, so you will need to fill in the remainder, but I think that should be straight forward for you to do.

Once you have checked and edited the content below, you need to replace the /media/pi/SETTINGS/installed_os.json file with that.

Once you have done that, reboot PINN with your HDD connected and go to the maintenance menu.
Select (tick) the first Raspbian OS and click the FIX UP button. In the list, you can uncheck the first File System Check option, and check the Re-Run parition setup script option. Then execute it.

Now go to the main menu, click on Exit and select the first Raspbian OS to boot. Check it does actually boot off your Hard Disk and you have your previous files.

If that works, you need to fix up each of your other OSes in the same way and check they each boot. Check your HDD lights flash to indicate it is loading off your HDD rather than the SD card.

Hopefully that should get all your previous OSes working and accessible again.
There is some more tidying up you could do on the SD card, but that's for another time.

Will be out for most of the afternoon, but post any progress./questions as you go and I may be able to answer them sporadically.

new Installed_os.json (partial - to be edited & checked):

[ 
  { "bootable" : true, 
	"description" : "A port of Debian Stretch for the Raspberry Pi (full desktop version)", 
	"folder" : "/settings/os/Raspbian", 
	"group" : "", 
	"icon" : "/settings/os/Raspbian/icon.png", 
	"name" : "Raspbian", 
	"partitions" : [ 
		"/dev/mmcblk0p6", 
		"/dev/sda8" 
	], 
	"password" : "raspberry", 
	"release_date" : "2018-10-09", 
	"supported_models" : [ "Pi Model", "Pi 2", "Pi Zero", "Pi 3", "Pi Compute Module 3" ], 
	"url" : "http://www.raspbian.org/", 
	"username" : "pi" 
}, 
{ 	"bootable" : true, 
	"description" : "Retropie2 v4.4 gaming distro using Emulation Station for RPi2/3", 
	"folder" : "/settings/os/Retropie2", 
	"group" : "Games", 
	"icon" : "/settings/os/Retropie2/icon.png", 
	"name" : "Retropie2", 
	"partitions" : [ 
		"/dev/mmcblk0p8", 
		"/dev/sda6" 
	], 
	"password" : "raspberry", 
	"release_date" : "2018-04-14", 
	"supported_models" : [ "Pi 2", "Pi 3" ], 
	"url" : "https://retropie.org.uk/", 
	"username" : "pi" 
}, 
{ 	"bootable" : true, 
	"description" : "A port of Debian Stretch for the Raspberry Pi (full desktop version)", 
	"folder" : "/settings/os/Raspbian", 
	"group" : "", 
	"icon" : "/settings/os/Raspbian/icon.png", 
	"name" : "Raspbian", 
	"partitions" : [ 
		"/dev/mmcblk0p10", 
		"/dev/sda11" 
	], 
	"password" : "raspberry", 
	"release_date" : "2018-10-09", 
	"supported_models" : [ "Pi Model", "Pi 2", "Pi Zero", "Pi 3", "Pi Compute Module 3" ], 
	"url" : "http://www.raspbian.org/", 
	"username" : "pi" 
}, 
{ 	"bootable" : true, 
	"description" : "64-bit Gentoo Linux for the RPi3, with Xfce4 desktop", 
	"folder" : "/settings/os/gentoo64", 
	"group" : "General", 
	"icon" : "/settings/os/gentoo64/icon.png", 
	"name" : "gentoo64", 
	"partitions" : [ 
		"/dev/mmcblk0p12", 
		"/dev/sda7" 
	], 
	"password" : "raspberrypi64", 
	"release_date" : "2018-09-26", 
	"supported_models" : [ "Pi 3" ], 
	"url" : "https://github.com/sakaki-/gentoo-on-rpi3-64bit", 
	"username" : "demouser" 
}, 
{ 	"bootable" : true, 
	"description" : "Raspex with LXDE based on Ubuntu 18.04 LTS",
	"folder" : "/settings/os/Raspex", 
	"group" : "", 
	"icon" : "/settings/os/Raspex/icon.png", 
	"name" : "Raspex", 
	"partitions" : [ 
		"/dev/mmcblk0p14", 
		"/dev/sda9" 
	], 
	"password" : "raspex", 
	"release_date" : "2018-03-28", 
	"supported_models" : [ "Pi 2", "Pi 3" ], 
	"url" : "http://raspex.exton.se/?p=843", 
	"username" : "raspex" 
}, 
{ 	"bootable" : true, 
	"description" : "LibreELEC is a fast and user-friendly Kodi Entertainment Center distribution.", 
	"folder" : "/settings/os/LibreELEC_RPi2", 
	"group" : "", 
	"icon" : "/settings/os/LibreELEC_RPi2/icon.png", 
	"name" : "LibreELEC_RPi2", 
	"partitions" : [ 
		"/dev/mmcblk0p16", 
		"/dev/sda10" 
	], 
	"password" : "libreelec", 
	"release_date" : "2018-04-13", 
	"supported_models" : [ "Pi 2", "Pi 3" ], 
	"url" : "", 
	"username" : "root" 
}, 
{ 	"bootable" : false, 
	"description" : "A Project Space to partition the SD card equally", 
	"folder" : "/mnt/os/ProjectSpace", 
	"group" : "Utility", 
	"icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_1.png", 
	"name" : "ProjectSpace - 1", 
	"partitions" : [ 
		"/dev/mmcblk0p18", 
		"/dev/sda12" 
	], 
	"password" : "?", 
	"release_date" : "2018-05-14", 
	"supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], 
	"url" : "https://", 
	"username" : "?" 
}, 
{ 	"bootable" : false, 
"description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_2.png", "name" : "ProjectSpace - 2", "partitions" : [ "/dev/mmcblk0p20", "/dev/mmcblk0p21" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_3.png", "name" : "ProjectSpace - 3", "partitions" : [ "/dev/mmcblk0p22", "/dev/mmcblk0p23" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_4.png", "name" : "ProjectSpace - 4", "partitions" : [ "/dev/mmcblk0p24", "/dev/mmcblk0p25" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_5.png", "name" : "ProjectSpace - 5", "partitions" : [ "/dev/mmcblk0p26", "/dev/mmcblk0p27" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_6.png", "name" : "ProjectSpace - 6", "partitions" : [ "/dev/mmcblk0p28", "/dev/mmcblk0p29" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_7.png", "name" : "ProjectSpace - 7", "partitions" : [ "/dev/mmcblk0p30", "/dev/mmcblk0p31" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" }, { "bootable" : false, "description" : "A Project Space to partition the SD card equally", "folder" : "/mnt/os/ProjectSpace", "group" : "Utility", "icon" : "/mnt/os/ProjectSpace/ProjectSpace_-_8.png", "name" : "ProjectSpace - 8", "partitions" : [ "/dev/mmcblk0p32", "/dev/mmcblk0p33" ], "password" : "?", "release_date" : "2018-05-14", "supported_models" : [ "Pi Zero", "Pi Model", "Pi Compute Module", "Pi 2", "Pi 3" ], "url" : "https://", "username" : "?" } ]​
@darkplatinum

This comment has been minimized.

Copy link

commented Nov 4, 2018

Does it matter what order the project spaces are in? here is df -h:

`/dev/sda6 69G 18G 47G 28% /media/pi/root1

/dev/sda13 64G 52M 60G 1% /media/pi/prjroot01

/dev/sda7 70G 6.2G 60G 10% /media/pi/root_gen1

/dev/sda8 75G 15G 57G 21% /media/pi/root0

/dev/sda10 64G 84M 60G 1% /media/pi/Storage1

/dev/sda12 64G 4.1G 56G 7% /media/pi/prjroot7

/dev/sda11 65G 25G 37G 41% /media/pi/root-rbp2

/dev/sda14 64G 52M 60G 1% /media/pi/prjroot11

/dev/sda15 64G 52M 60G 1% /media/pi/prjroot21

/dev/sda16 64G 52M 60G 1% /media/pi/prjroot31

/dev/sda17 64G 52M 60G 1% /media/pi/prjroot41

/dev/sda18 64G 52M 60G 1% /media/pi/prjroot51

/dev/sda19 66G 52M 62G 1% /media/pi/prjroot61

/dev/sda9 67G 2.9G 61G 5% /media/pi/root_raspx1
`

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 5, 2018

If you have installed programs, best to just reinstall them on the new version rather than trying to copy them, because the files get spread over lots of different folders.
Most data files will be stored in /home/pi (don't forget hidden files aswell)

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 5, 2018

So for best results just transfer /home/Pi? What do you recommend?

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 5, 2018

Open a terminal.
Make sure the 2 partitions are mounted.
Assuming your old HDD raspbian root is mounted at /media/pi/source and your new root partition is mounted at destination (change as appropriate) try:

cp -r /media/pi/source/home/pi/. /media/pi/destination/home/pi

(https://superuser.com/questions/61611/how-to-copy-with-cp-to-include-hidden-files-and-hidden-directories-and-their-con)

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 5, 2018

ATM I am transferring the retropie /home/Pi . I'll have a search to see if I can find where the save files are stored.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 5, 2018

Ok, I've got retropie working. Now it's time for the last raspbian. I had to copy /home/Pi, and I had to copy /opt (game saves here)

BTW I've been having an issue that used to happen on the dead SD card, everytime I plug in a USB stick into my Pi, I cannot access it unless I am in root. I'm thinking it's something to do with user permissions. Do you know how to enable this? It's kinda a hassle to log in to root everytime just to read or write something off a USB stick.

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 5, 2018

something like:

sudo chown pi:pi /media/pi/<USBSTICK>

But for a more permanent solution see man udev or google udev

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 6, 2018

Thanks, I'll look in to this later. If I was to choose option 1 for raspbian, is it basically finding the kernel and download boot.tar.xz? Then uncompressed it and transfer it to the boot partition?

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 6, 2018

Basically, yes. But you need to re-run the partition_setup script on it before booting it in order to fix-up all the partition links to their new locations.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 6, 2018

hmm... so i llooked at the link that you gave to the boot.tar.xz, how do i find the kernel version? I uncompressed one of the 2018 kernels but not sure what version it is.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 6, 2018

something like:

sudo chown pi:pi /media/pi/<USBSTICK>

But for a more permanent solution see man udev or google udev

Found an easier solution: sudo chown pi:pi /media/pi/*

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 6, 2018

They normally mention it in the release notes.
Or decompress the rootfs and look in lib/modules as before.

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 6, 2018

Another option.....
Copy your Raspbian2 root partition to another empty projectspace (so preserving your original one).
Copy the /lib/modules from Raspbian1 root to your newly copied raspbian2 root.
Copy raspbian1 boot to raspbian2 boot partition.
Adjust the partitions in installed_os.json to match.
Rerun partition setup from pinn on raspbian2.
See if it boots.

So instead if trying to match the boot partition to the root kernel, you are matching the root kernel modules to the boot partition.

But as it modifies your raspbian2 data, that is why I suggest doing it on a copy.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 6, 2018

Thanks for your help! It will be quite sometime till I get time to finish off the raspbian 2 fix. I appreciate all the help you have given me. I'll tell you what I do in the end thanks!!

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 6, 2018

You're welcome.
Hope you get it all working. No reason why you shouldn't now you've learnt some more techniques.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 8, 2018

Whoops... I got raspbian 2 working. I wanted to replace the spare raspbians that were used to recreate the SD card and in doing so i replaced raspbian 1 :(. luckily i had a spare version from a couple minths ago. I got that version working, update everything. But on my user, pi, my desktop prefrences don't work. whem i click ok, nothing updates. However, if i try with root user, it works fine; do you know how to fix this?

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 8, 2018

Great! which route did you take in the end - finding the correct boot partition version, or updating the kernel and modules in root and boot?

Sorry, I have no idea about the desktop preferences.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 8, 2018

I updated the modules in root, I took a backup, but I used the original root. Ill ask about desktop prefs in rpi forums. Is there a way i can rename each indivual raspbian so i know which is which? possibly changing the png image?

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 8, 2018

I'm looking at implementing something similar in the near future, but more of an "alias" rather than a full rename, in order to keep the links with the original source and be able to identify when a new version is available. So if you want to remain compatible, I suggest to keep the same names for now. Maybe change the description field instead (in /settings/installed_os.json) to indicate your use of this "Raspbian". You can change (or add) an "icon" field to each OS to use a different one, or just replace the corresponding "raspbian.png" or "icon.png" that is in /settings/os/raspbian...

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 8, 2018

So i can add multiple pngs to the os/raspbian, then choose it in the installed_os.json, correct?

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 8, 2018

Yes. It's a bit non-standard, but it should work.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 8, 2018

Ok.... I'm having a problem. Raspbian 1 is in the process of being restored, after restoring raspbian 2, all is well except whenever I try to open chromium, nothing happens. I think something has broke somehow.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 8, 2018

Raspbian 1 just finished restore.... Booted it up getting a fail, unable to set console text.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 8, 2018

Looks like something went wrong with the copy... Going to try again.... HDD has written 90 gigs alerady today lel

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 8, 2018

Ok.... So reinstalled backup yet again, the issue is the same, I'm getting a underscore that's flashing on boot up after the boot process has finished. It's a totally black screen with a underscore top right corner.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 8, 2018

I'm honestly going mad here..... I had another raspbian downloaded to a project space, lets call this raspbian 3. So raspbian 3, I removed /home, replaced it with backup of /home, then I log into Pi, then guess what happens.... Desktop preferences don't work... WHY??? Works completely with the USB backup...

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 8, 2018

That's a shame, after you originally got it working. You might be better just to cut your losses, salvage any data you have and just start again with a new version, install any apps again then copy the datafiles back.

@procount

This comment has been minimized.

Copy link
Owner Author

commented Nov 8, 2018

Do the desktop prefs work ok before you replace /home?
Maybe the desktop prefs are stored in a hidden file/folder in /home/pi ?

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 8, 2018

Yes they worked ok before that. I've looked around and I have no idea where it is. Also chromium and wastebasket don't want to work. Chromium says it's locked the profile to prevent corruption, if your sure, click this button to reopen it. Clicked the button, nothing happens. Wastebasket not letting me put items in it.

@darkplatinum

This comment has been minimized.

Copy link

commented Nov 9, 2018

I decided to cut my losses on raspbian 1. I transferred my pictures, programs, etc over. What i did find interesting is that the new desktop wallpapers look amazing :)

@procount procount closed this Mar 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.