Beta2 [UPGRADE INSTRUCTIONS ONLY!]
|
24th Nov, 2013, 05:16 PM
Post: #46
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
Terminal sudo dpkg -r --force-remove-essential xbian-package-initramfs-tools sudo apt-get -f install Quote:dpkg: considering deconfiguration of xbian-package-initramfs-tools, which would be broken by installation of xbian-package-config-shell ... |
|||
25th Nov, 2013, 12:44 AM
Post: #47
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
(23rd Nov, 2013 11:57 PM)corona Wrote: (edited, see link for full info) Hi all, After some trying with info from this thread this finally solved the problems for me: Code: sudo apt-get install -f xbian-update=1.0.2-8d xbian-package-config-shell=2.1.6-51a xbian-package-initramfs-tools=1.3.1-5b xbian-package-xbmc-scripts libhal-storage1 libhal1 Thank you Corona! And btw - the Xbian seems to work fine - maybe even a little bit quicker interface than before (but what do I know :-) ) Great work guys! |
|||
25th Nov, 2013, 12:59 AM
Post: #48
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
You're welcome
pilight - modular domotica solution
|
|||
29th Nov, 2013, 11:51 AM
Post: #49
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
Do these upgrade instructions also apply to installation, where only /boot is on the sd, and the rest on a usb hd (together with the media lib on a separate partition)?
|
|||
1st Dec, 2013, 02:20 PM
Post: #50
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
@Jan,
in general yes, question is what version are you running now and how you created the usb copy. for beta1X: if you removed subvolumes and adapted fstab to single subvolume btrfs filesystem, then the upgrade won't work (if you would insist on doing upgrade, then I can advise you how easily restore subvolumes). if you still have subvolumes, you should be ok. upgrade to beta2 should respect your root= setting in cmdline.txt and system itself is independent on actually booted root (in the mean of hard coded partition names/labels/uuids). for alpha5: if general it should work. but this combination hasn't been tested. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
1st Dec, 2013, 04:31 PM
Post: #51
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
@all
I was testing / updating dependencies a bit to help with issues here presented. My test install for this case was XBian Beta1 with 1.2 hotfix (but should be the same for 1.1 hotfix as well as there is no difference in dependencies between the hotfixes nor other packages versions changed in-between). I put changed deb packages to staging repo for test. This means who has img backup of Beta1.1 / Beta1.2 install and wasn't able to upgrade the distro, use this updated steps: Code: 1) edit /etc/apt/sources.list to contain this two line for XBian repositories (remove any other XBian records) if this will help more, I will move the packages to stable repo later and update instructions. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
2nd Dec, 2013, 09:01 AM
Post: #52
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
(1st Dec, 2013 02:20 PM)mk01 Wrote: for beta1X: if you removed subvolumes and adapted fstab to single subvolume btrfs filesystem, then the upgrade won't work (if you would insist on doing upgrade, then I can advise you how easily restore subvolumes). if you still have subvolumes, you should be ok. upgrade to beta2 should respect your root= setting in cmdline.txt and system itself is independent on actually booted root (in the mean of hard coded partition names/labels/uuids). I am using beta 1.1 and while the were changes partitionwise, when I upgraded from alpha, I am under the impression, that, while I _use_ only a single btrfs volume, the prior partitions still exist (currently unused). Also I have one partition holding my media files. xbian@xbian ~ $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.4T 0 disk |-sda1 8:1 0 239.2G 0 part `-sda3 8:3 0 1.1T 0 part /media/Media-d45fd8fb-1c36-46cf-bc8e-e22c7 loop0 7:0 0 120M 0 loop [SWAP] zram0 254:0 0 40M 0 disk [SWAP] mmcblk0 179:0 0 3.7G 0 disk |-mmcblk0p1 179:1 0 34M 0 part /boot `-mmcblk0p2 179:2 0 3.6G 0 part /boot/cmdline.txt reads like that: sdhci-bcm2708.sync_after_dma=0 dwc_otg.lpm_enable=0 console=tty1 root=/dev/sda1 rootfsopts=noatime,compress=lzo,thread_pool=1,space_cache,autodefrag rootfstype=btrfs rootwait=20 smsc95xx.turbo_mode=N elevator=noop nohdparm splash logo.nologo quiet loglevel=0 noswap mod_scsi.scan=sync xbian@xbian /boot $ sudo sfdisk -l /dev/sda Disk /dev/sda: 2930277168 cylinders, 1 heads, 1 sectors/track Units = cylinders of 512 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/sda1 2048 501637119 501635072 250817536 83 Linux start: (c,h,s) expected (1023,0,1) found (0,32,33) end: (c,h,s) expected (1023,0,1) found (1023,254,63) /dev/sda2 0 - 0 0 0 Empty /dev/sda3 501640461 2930277164 2428636704 1214318352 83 Linux /dev/sda4 0 - 0 0 0 Empty |
|||
2nd Dec, 2013, 01:05 PM
Post: #53
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
@Jan
no, you don't have subvolumes. you still wan't to boot from the oversized 240Gb partiion ? not important at the end but, we can use the space. just to be sure send please "findmnt" output on fully booted system and /etc/fstab. but in general you should: Code: 1) create a backup from current install and new rootfs boot subvolume. just run those command via console: it looks boring, but will take you like 10 minutes while keeping one rollback point in case you hit into problems during updates. so now you are on "standard" beta1/1.X and update with this steps http://forum.xbian.org/thread-1768-post-18253.html#pid18253 if anything would happen, don't reboot, create new snapshot from the readonly one, reboot into it and you are back with old system in 1minute (just reboot). the commands to run would be: Code: sudo -i all the commands (beside rm/rsync) will run few seconds - don't expect any data copying / migrations. and you can start like this from scratch over and over again - please don't, just upgrade to B2. mk Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
3rd Dec, 2013, 01:23 AM
Post: #54
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
@mk01,
(2nd Dec, 2013 01:05 PM)mk01 Wrote: just to be sure send please "findmnt" output on fully booted system and /etc/fstab. findmnt gives me: Code: TARGET SOURCE FSTYPE OPTIONS and fstab is like this: Code: proc /proc proc defaults 0 0 |
|||
3rd Dec, 2013, 01:29 AM
Post: #55
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
@Jan
you don't have subvolumes in use. you still have the /home mount in fstab, but it's not mounted so not available and /home content is directly part of rootfs. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
4th Dec, 2013, 05:51 PM
Post: #56
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
Hi,
yesterday evening I tried upgrading my Pi (512 MB RAM version) from 1.1 to 2, the result is, that I my Pi does nothing now when powered on (screen stays black, no rescue console, nothing else). However, there were a few things going awfully wrong. First, I had the problems described already in this thread and I was finally able to use this piece of advice from Walle above: Code: sudo apt-get install -f xbian-update=1.0.2-8d xbian-package-config-shell=2.1.6-51a xbian-package-initramfs-tools=1.3.1-5b xbian-package-xbmc-scripts libhal-storage1 libhal1 But that would have been to easy a solution, my Pi froze apparently so I had to power cycle it. And landed directly into rescue mode since cmdline.txt was missing in /boot and it tried to mount the root partition as ext4 fs. I noticed a cmdline.txt.old lying around there, so a renamed it and rebootet. I was back in Xbian. Now would have been a GREAT opportunity to take a backup of my configuration files. However, I decided that this can wait just until after I execute Code: apt-get -f install Well, it did install some packages (xbian-xbmc, xbian-xbmc-scripts, etc) and tried to upgrade xbian-update once again. The installation of all packages succeeded with the exception of the xbian-update package, which complained, that it could not make changes to /boot since it apparently was mounted read-only. Anyway, I decided to call it day and right there, you can see it, there would have been ANOTHER GREAT opportunity to take a backup of my configuration files. "But that can wait until tomorrow", I thought. "But what's that? XBMC asking me to reboot my pi? Why not...." ... yeah, why not indeed So, what's my point? Is there any way to enter the rescue mode again? I will try tonight to access the memory card from my laptop (and probably re-flash everything anyway), would you be interested in any kind of logs I could provide? |
|||
5th Dec, 2013, 09:15 PM
Post: #57
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
Unfortunately, I was not able to recover. I could however mount both file systems on my laptop. I even tried replacing initramfs.gz, cmdline.txt and config.txt with the ones from a freshly downloaded beta2 image but to no avail. I ended up zeroing out the SD card and flashing the beta2 directly onto it.
|
|||
6th Dec, 2013, 12:14 AM
Post: #58
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
(5th Dec, 2013 09:15 PM)mehlvogel Wrote: Unfortunately, I was not able to recover. I could however mount both file systems on my laptop. I even tried replacing initramfs.gz, cmdline.txt and config.txt with the ones from a freshly downloaded beta2 image but to no avail. I ended up zeroing out the SD card and flashing the beta2 directly onto it. Please check the content of the /boot/config.txt the next time. Once I had this issue. I noticed that the content of that files was the same as the content of the /boot/cmdline.txt?!? KB |
|||
6th Dec, 2013, 08:15 AM
Post: #59
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
hi,
I'm also trying to upgrade from a5 to beta2. after checking /etc/apt/sources.list and Terminal apt-get clean; apt-get update; apt-get upgrade apt-get install -f xbian-update=1.0.2-8d xbian-package-config-shell=2.1.6-51a xbian-package-initramfs-tools=1.3.1-5b xbian-package-xbmc-scripts libhal-storage1 libhal1 i get the follwing output: Quote:updating to 1.0 Beta 2 rpi with 512mb df -h : Filesystem Size Used Avail Use% Mounted on /dev/mmcblk0p2 7.3G 2.9G 4.4G 40% / googl1 also describes this in the second part of post #20. I would appreciate any suggestions. |
|||
6th Dec, 2013, 12:14 PM
Post: #60
|
|||
|
|||
RE: Beta2 [UPGRADE INSTRUCTIONS ONLY!]
This alone mean no error. This is because you are installing on to Alpha5 which is ext4. xbian-update expects at this stage of xbian-update postinst script already update to B2 (from B1.1) - if this would happen step by step during the time, there would be BTRFS now.
Expects doesn't mean needs and absolutely doesn't mean require. At this point there could be even NFS root, error checking + failing script is suppressed there. The second report is the same case. But then when you restart not a beep? black screen? My tip is wrongly updated cmdline.txt with rootfs and some other parameters which are taken from user values during cmdline.txt template changing. as again expected was somehow BTRFS (any Beta1). And definitely wrongly expected. I was trying to figure out this one issue since beginning but realized this only one as internally I was always testing including FS conversion to simulate conditions close to user. That means Alpha5 -> B1. reboot (auto convert) -> apt-get install xbian-update. And could fight with anyone that it must be ok. Your /boot will probably hold correct kernel and initramfs. Even if the cmdline.txt used for boot can be broken, ther should should be either backup from old one or template for new one (cmdline.new or later stored for reference cmdline.default). If I'm right, then you have cmdline.default. What you need is copy it over wrong cmdline.txt and update cmdline.txt to allow B2 install - still on ext4 - boot like beta2 but trigger conversion like <B1. so keep all as is, even keep rootfstype=btrfs, but change rootflags=subvol. …. just was looking at the code and don't change anything as when ext4 will be found (but with parameter btrfs on kernel command line), convert will start on unmounted system - so doesn't mnatter and after finish the mount option parameters will be not changed there (as this was task for xbian-update) so after reboot would hit error mounting root and dropdown. so just copy .default over to .txt. I'm mistaken, I just crated quite nice mini-how-to-restore . what nobody will use anymore, because is dealing wiuth A5. let me know please. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
« Next Oldest | Next Newest »
|