Forum
Migration from Rpi1 -> Rpi2 - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Installation (/forum-16.html)
+--- Thread: Migration from Rpi1 -> Rpi2 (/thread-3917.html)

Pages: 1 2 3 4


RE: Migration from Rpi1 -> Rpi2 - Nachteule - 27th Aug, 2017 07:47 PM

Hmmm, seems you have to do same with mountdevsubfs (untested)

Terminal

sudo ln -s ../init.d/mountdevsubfs.sh /etc/rcS.d/S04mountdevsubfs.sh



RE: Migration from Rpi1 -> Rpi2 - Skywatch - 27th Aug, 2017 08:51 PM

Now tested and it didn't work.

Earlier today I tried to go back from scratch with the last 'old' pi1 image, but that only gets as far as the 'X' startup screen and 'loading', then it hangs.... So I am stuck with this image now.


Full output below.....

Terminal

sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
alsa-tools alsa-utils binutils cpp cpp-4.9 ecryptfs-utils exfat-fuse file
g++ g++-4.9 gcc gcc-4.9 hfsplus hfsprogs hfsutils i2c-tools ifplugd
inetutils-tools ir-keytable isc-dhcp-client isc-dhcp-common jfsutils kbd
keyutils kpartx lcdproc less libao-common libao4 libcdio-cdda1
libcdio-paranoia1 libcdio13 libclone-perl libgcc-4.9-dev libhfsp0
liblist-moreutils-perl libmouse-perl libnet-ssleay-perl libpython3-dev
libsgutils2-2 libsqlite0 libstdc++-4.9-dev libsub-identify-perl libtag1c2a
libtext-charwidth-perl libtext-wrapi18n-perl libunicode-string-perl
libxml-libxml-perl linux-image-bcm2836 lockfile-progs logrotate m4 make nano
net-tools openbsd-inetd openssh-server openssh-sftp-server openssl parted
policykit-1 psmisc pv python-crypto python-ntdb python-pil python-smbus
python-sqlite python-tdb python3-dev python3.4-dev rng-tools ssmtp sudo tcpd
tdb-tools triggerhappy udisks udisks2 unattended-upgrades usbutils watchdog
wireless-tools
83 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
129 not fully installed or removed.
Need to get 0 B/53.0 MB of archives.
After this operation, 8,463 kB disk space will be freed.
Do you want to continue? [Y/n] y
Create a snapshot of '/run/btrfs-snap/root/@' in '/run/btrfs-snap/root/@btrfs-auto-snap_apt-run-2017-08-27-1154'
Delete subvolume (no-commit): '/run/btrfs-snap/root/@last_good_known'
Create a snapshot of '/run/btrfs-snap/root/@btrfs-auto-snap_apt-run-2017-08-27-1154' in '/run/btrfs-snap/root/@last_good_known'
@btrfs-auto-snap_apt-run-2017-08-27-1154, 1 created snapshots, 0 destroyed snapshots, 0 warnings.
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up hdparm (9.43-2) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
initctl: Unknown job: K02nfs-common
insserv: warning: script 'K02nfs-common' missing LSB tags and overrides
initctl: Unknown job: K02udev-finish
insserv: warning: script 'K02udev-finish' missing LSB tags and overrides
initctl: Unknown job: K02nfs-common
initctl: Unknown job: K02udev-finish
initctl: Unknown job: S05nfs-common
initctl: Unknown job: S01dbus
insserv: warning: script 'S01dbus' missing LSB tags and overrides
initctl: Unknown job: S01udev-finish
initctl: Unknown job: S05nfs-common
initctl: Unknown job: S01dbus
initctl: Unknown job: S01udev-finish
initctl: Unknown job: S05nfs-common
initctl: Unknown job: S01dbus
initctl: Unknown job: S01udev-finish
initctl: Unknown job: S05nfs-common
initctl: Unknown job: S01dbus
initctl: Unknown job: S01udev-finish
initctl: Unknown job: K02nfs-common
initctl: Unknown job: K02udev-finish
initctl: Unknown job: S05nfs-common
initctl: Unknown job: S05mountnfs-bootclean.sh
insserv: warning: script 'S05mountnfs-bootclean.sh' missing LSB tags and overrides
initctl: Unknown job: S05checkroot-bootclean.sh
insserv: warning: script 'S05checkroot-bootclean.sh' missing LSB tags and overrides
initctl: Unknown job: S04mountkernfs
insserv: warning: script 'S04mountkernfs' missing LSB tags and overrides
initctl: Unknown job: S01mountkernfs.sh
insserv: warning: script 'S01mountkernfs.sh' missing LSB tags and overrides
initctl: Unknown job: S04mountdevsubfs.sh
insserv: warning: script 'S04mountdevsubfs.sh' missing LSB tags and overrides
insserv: Service mountdevsubfs has to be enabled to start service hdparm
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package hdparm (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
hdparm
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sudo apt-get -f install gives the same errors as does dpkg --config -a. So now I am stuck again Sad
So, any other thoughts you have I would love to hear! Smile


RE: Migration from Rpi1 -> Rpi2 - Nachteule - 28th Aug, 2017 03:07 AM

Hmm, I'm sorry Sad

Seems hdparm package does not install successfully. But I can not reproduce this, I'm able to reinstall this package as often as I want


RE: Migration from Rpi1 -> Rpi2 - Skywatch - 28th Aug, 2017 06:14 AM

Noooooo.........

Now I want to die.

Sad


RE: Migration from Rpi1 -> Rpi2 - Nachteule - 28th Aug, 2017 06:49 AM

There's no reason for doing this Confused


RE: Migration from Rpi1 -> Rpi2 - Skywatch - 28th Aug, 2017 08:30 AM

@Nachteule,

Well it does still work it seems. Smile

So maybe I have some time to learn more and see what is possible.

As always thank you for your time and trying to help, I know that mean well and that you'd solve this if you could. Tongue

It's not the end of the world, just a major PITA.


RE: Migration from Rpi1 -> Rpi2 - Nachteule - 30th Aug, 2017 03:39 AM

(28th Aug, 2017 08:30 AM)Skywatch Wrote:  It's not the end of the world, just a major PITA.

Big Grin

I'll try to migrate one of my RPi1 installation to RPi3. But have to search for an older Jessie image (I suppose you're still running Jessie) first. Will take some time Cool


RE: Migration from Rpi1 -> Rpi2 - Skywatch - 30th Aug, 2017 10:54 PM

@Nachteule,

Thats a kind offer, but plese don't waste time on it just for me. Better you work on the next xbian for all to enjoy Smile


RE: Migration from Rpi1 -> Rpi2 - Nachteule - 31st Aug, 2017 06:29 AM

Sure, but I want to know how do fix it Tongue

And yes, other things having higher priorities (Kodi 17.4 is on the way)


RE: Migration from Rpi1 -> Rpi2 - Nachteule - 1st Sep, 2017 05:11 AM

So, did this procedure, was successful Smile

That's what I did:

1) replaced my devel RPI2/3 root subvolume against older (from May) RPi1 root volume (Jessie os) and activated this volume.
modules and home subvol was unchanged, so there was no need to replace kernel
2) changed Raspbian -> Debian in /etc/apt/sources.list and rpi-jessie -> rpi2-jessie in /etc/apt/sources.list.d/xbian.list
3) modified my /etc/hostname and /etc/network/interfaces to avoid network conflicts
4) run apt-get update;apt-get upgrade
5) apt-get breaks after a while because of missing link
sudo ln -s ../init.d/mountkernfs.sh /etc/rcS.d/S04mountkernfs, added this link
6) run apt-get upgrade again
7) while upgrading network connection was broken, no idea why (was using ssh connection), but in the background apt-get continued working
8) was waiting some time (dinner and cleaning kitchen)
9) restarted RPi3 (hard reboot by power off/on)
10) system comes up, and ALL packages were installed. So, I can not reproduce your second issue, sorry
11) had one issue now: when Kodi stops, got no command prompt, only strange error message from splash, so
12) I reinstalled xbian-package-splash and linux-image-bcm2836 package (to make sure that initramfs is rebuild completely)
13) rebooted and everything is ok now.


RE: Migration from Rpi1 -> Rpi2 - Skywatch - 3rd Sep, 2017 03:30 AM

Thanks for posting that, but I have a problem.

The only copy of the pi1 install doesn't work. It boots, resizes the card, creates the fs and then gets stuck at 'loading' screen. I cannot get past that point. Netowrk lights are 'on' but no SSH so I can't get in there and no other way I can think of to find out what is going on..... Can you give that some thought and let me know if there is anything I can try? ..... Smile


RE: Migration from Rpi1 -> Rpi2 - Nachteule - 3rd Sep, 2017 05:31 AM

(3rd Sep, 2017 03:30 AM)Skywatch Wrote:  The only copy of the pi1 install doesn't work. It boots, resizes the card, creates the fs and then gets stuck at 'loading' screen. I cannot get past that point. Netowrk lights are 'on' but no SSH so I can't get in there and no other way I can think of to find out what is going on..... Can you give that some thought and let me know if there is anything I can try? ..... Smile

Which copy? And you put card into what?

What exactly did you do Huh


RE: Migration from Rpi1 -> Rpi2 - Skywatch - 3rd Sep, 2017 05:51 AM

I restored the only rpi1 image to a micro SD card using laptop and adaptor to full SD card size.
When the restore was complete I did.....
I edited /boot/cmdline.txt to boot from the sd card.
I ejected the uSD card and placed it in Rpi1 (with uSD to SD card adaptor).
I powered the Rpi1 and get the splash screen.
I get message about resizing card, setting up fs, but it gets to a point where the spash screen just says 'loading' with a bar graph slowly progressing across the screen.
When the bar graph reached the fullest extent it just sits there.
The network lights are working on the pi, but no http or ssh access.

Sad


RE: Migration from Rpi1 -> Rpi2 - Nachteule - 3rd Sep, 2017 06:17 AM

(3rd Sep, 2017 05:51 AM)Skywatch Wrote:  I restored the only rpi1 image to a micro SD card using laptop and adaptor to full SD card size.
Ok
Quote:When the restore was complete I did.....
I edited /boot/cmdline.txt to boot from the sd card.
Why did you do that and what changed you there?
Quote:I ejected the uSD card and placed it in Rpi1 (with uSD to SD card adaptor).
I powered the Rpi1 and get the splash screen.
I get message about resizing card, setting up fs, but it gets to a point where the spash screen just says 'loading' with a bar graph slowly progressing across the screen.
When the bar graph reached the fullest extent it just sits there.
The network lights are working on the pi, but no http or ssh access.
So it seems root fs can not be mounted. Everything until now was running from initramfs. So, either root fs is broken or you made mistake editing cmdline.txt

You can check root fs by putting sd-card into usb adaptor and plug it to another RPi running XBian. Both partitions (boot and root) should be mounted automatically


RE: Migration from Rpi1 -> Rpi2 - Skywatch - 3rd Sep, 2017 06:25 AM

I restored the image from auto back up.
The rpi1 used to run from usb, but image restored to uSD.
But only now have the SD card as the usb stick was needed for something else......
cmdline.txt was pointing to boot from usb stick (/dev/sda1).
So I changed it to boot from SD card by remaning cmdline.txt to cmdline.txt.old1
Then renaming cmdline.txt.old to cmdline.txt

I tried the card in another pi and it seems to mount OK = I get .....

/mount/usb0 - The host machine I believe.
/mount/usb1 - the SD card with the rpi1 image on.
/mount/xbian-boot-2442-D260 - The SD card with the rpi1 image on.
/mount/xbian-copy-lots of numbers/ - This also has the rpi1 image details on.

I hope that this makes sense, I am not fluent in Linux!