Solved: duplicate/clone an xbian installation
|
10th May, 2013, 06:03 AM
Post: #1
|
|||
|
|||
duplicate/clone an xbian installation
Apologies if this thread is somehow an infraction against the forum procedures or out of format or in the wrong forum, but I checked the FAQ and other threads and haven't found an answer thus far. I work at a store in a modest-sized chain of computer stores and was recently handed the assignment (well, I kind of volunteered) to build a looping video kiosk for product promos, tech demos, and the like. I used the most recent release on an RPi v2 and have it configured exactly how I want it - plug it in, it boots into XBMC, shuffles the videos in a playlist and loops them continuously with no interaction needed. It's completely self-contained and everything is on the SD card.
Our store manager and I hit on the idea at the exact same time that if you could somehow clone that SD card with everything on it and ready to go, then you could have an identical kiosk in every store in the chain. Unfortunately, everything I've tried thus far to duplicate my existing installation has fallen flat. The problem is that the partition XBian is using for the root filesystem won't show up in any of the OSes to which I have access - I've tried XP, 7, 8, OSX 10.6, Mint 14 KDE, and even Paragon, DriveImageXML, and Clonezilla show that partition as unallocated space or don't pick it up at all. The only way I can add/remove videos or edit the contents of my userdata folder and subfolders is by piping in for FTP via SSH using WinSCP; I use PuTTY to config everything. So what I'm wondering is, can I somehow clone the card on which XBian and our videos are kept so that I can pop the duplicate into another RPi and have the exact same thing happen that happens with our display unit when I come in in the morning? Or am I just going to have to do a separate install procedure on each card and manually drag-and-drop the media and any userdata and configs via the FTP program? I have a feeling the first option would be quite a bit quicker and make my manager a lot more likely to pitch this to home office. Any advice would be appreciated. |
|||
10th May, 2013, 06:14 AM
Post: #2
|
|||
|
|||
RE: duplicate/clone an xbian installation
on any Windows you can use XBian installer and use Advance mode and Backup or simple tools like Win32 disk imager
or similar and simply use the backup option. Than just plug your new empty sd card and use restore ![]() ~~~~>>>Please always follow rules and read before you post<<<~~~~ |
|||
10th May, 2013, 06:32 AM
Post: #3
|
|||
|
|||
RE: duplicate/clone an xbian installation
another great tool - USB Image Tool
with all of these tools you simply clone your card with all the content which is on it and simply restore to other cards. Than you plug those cards into your other RPi machines and you are ready to go ![]() ~~~~>>>Please always follow rules and read before you post<<<~~~~ |
|||
10th May, 2013, 07:01 AM
Post: #4
|
|||
|
|||
RE: duplicate/clone an xbian installation
Thank you very much! I will attempt this the next time I have enough time to work on the project.
|
|||
11th May, 2013, 04:20 AM
Post: #5
|
|||
|
|||
RE: duplicate/clone an xbian installation
Works perfectly. Thanks again for your help!
|
|||
11th May, 2013, 04:22 AM
Post: #6
|
|||
|
|||
RE: duplicate/clone an xbian installation
(11th May, 2013 04:20 AM)captainsammitch Wrote: Works perfectly. Thanks again for your help! not a problem ![]() anything else come back any time ![]() ~~~~>>>Please always follow rules and read before you post<<<~~~~ |
|||
17th May, 2013, 03:04 PM
Post: #7
|
|||
|
|||
Re: RE: duplicate/clone an xbian installation | |||
17th May, 2013, 03:32 PM
Post: #8
|
|||
|
|||
duplicate/clone an xbian installation
On linux just use DD
Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
17th May, 2013, 04:47 PM
Post: #9
|
|||
|
|||
![]()
Ok, thanks I've found it:
Terminal sudo dd if=/dev/sdb of=~/xbianBackup.img Thanks, again. |
|||
19th May, 2013, 09:01 AM
Post: #10
|
|||
|
|||
RE: duplicate/clone an xbian installation
guys again, those new ext4 fs inside .img will not be consistent. because that partition is root fs, it won't be possible to fsck it either so sooner or later the installation will collapse.
Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
20th May, 2013, 03:36 PM
Post: #11
|
|||
|
|||
Re: RE: duplicate/clone an xbian installation | |||
20th May, 2013, 06:32 PM
Post: #12
|
|||
|
|||
RE: duplicate/clone an xbian installation
there is similar thread
http://forum.xbian.org/thread-427-post-10140.html#pid10140 btw: only now I realized there is /dev/sdb as "if", with this I'm fine. my point is valid for dd copies of filesystem which is booted and used as rootfs. if you do offline dd copy (not booted from /dev/sdbX), i'm fine. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
29th May, 2013, 07:10 PM
Post: #13
|
|||
|
|||
RE: duplicate/clone an xbian installation
Hello, mk01.
I was trying to set up a live backup of my entire sd card, so I wrote this mesage: http://forum.xbian.org/thread-598-post-10917.html#pid10917 In the thread I got the suggestion to use the command line: dd if=/dev/mmbclk0 of=/media/usb/backup.img and so I did it. Now I have a cronjob that does that command and I was confident that my sd wwas backupped. Then I stumbled in this thread and now I have one doubt: is my backup working or I have to change it? |
|||
2nd Jun, 2013, 04:44 AM
Post: #14
|
|||
|
|||
RE: duplicate/clone an xbian installation
(29th May, 2013 07:10 PM)effemmeffe Wrote: Then I stumbled in this thread and now I have one doubt: is my backup working or I have to change it? I was already explaining what is happening. You can be lucky, if your RPI is idle and fs caches flushed. dd created image of rw mounted / filesystem will never be atomic. It's not like a picture taken with a camera. But you can always check how consistent is the img. Split the backup.img into two files (partition1 and partition2 - you can do it again with dd, just check with fdisk or sfdisk block sizes of p1 and p2). then mount the files through loop devices (losetup /dev/loopX [filename]). this /dev/loopX you can mount as regular block device. run ext fsck and you will see if is ok or not. mk Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
2nd Jun, 2013, 06:27 AM
Post: #15
|
|||
|
|||
RE: duplicate/clone an xbian installation
thanks. so i have to conclude there is no safe way to backup all my sd from inside the system, the only way would be remove the sd, put it in a card reader and dd it on an external system. not very friendly...
|
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
Duplicate Movie Entries in Library | Altin | 2 | 10,019 |
18th Jun, 2013 07:04 AM Last Post: mk01 |