07-16-2021, 05:10 PM | #1 |
Absentminded Reader
Posts: 1,104
Karma: 6463851
Join Date: Apr 2017
Device: Kobo Mini, Clara HD, Elipsa; Kindle Paperwhite 3 & 4; iOS eReader apps
|
How to backup your Kobo on a Mac
I backup my Kobo for two reasons: 1) Peace of mind and 2) Creating a clean backup before experimenting with third party scripts & apps. I’m not a dev, but I know my way around the Mac Terminal, so I thought I’d share what I learned here for others. Thanks to everybody’s helpful feedback.
There are two ways to backup your Kobo. The first is the simplest and quickest. It's perfect for keeping an up to date backup available on your hard drive. The second is the total disk image—a complete clone of your Kobo. It’s the most thorough, but it is also the most time consuming and complicated. It's also overkill for typical backup needs. When you plug your Kobo into your Mac, only the KOBOeReader partition mounts. There are two other hidden Linux partitions as well, but the Kobo only allows KOBOeReader to mount. This is fine if you just want a backup of your personal data, but if you want a complete clone of your Kobo internal memory, skip over this first part. A) Backing Up Your Personal Data - Simple & Quick 1) Decide where you want to store your backup. Create a folder there with a memorable name. For example, I might label mine “KoboElipsa_2021-07-26”, but “KoboBackup” or something like that works as well. 2) Open a Terminal shell (/Applications/Utilities/Terminal.app) and type the following, but don’t hit “return”: Code:
cp -Rvp /Volumes/KOBOeReader/ “cp” will copy the contents of your Kobo’s public partition, recursively (-R) drilling down through folders to find all the files, preserving (-p) their times, dates, etc., and mirroring back everything it is copying to the Terminal (-v, verbose mode). You can leave the “v” off the command if you aren’t interested in seeing all the files stream by. And that’s it! Your Kobo’s database, ebooks, and other personalized items will be safely backed up. You’ve created an exact backup of your Kobo’s public partition. 3) If you should ever need to restore your Kobo from the backup, type this into the terminal: Code:
rsync -av --delete --progress /Volumes/Drive/path/backupfolder/ /Volumes/KOBOeReader/ ✧ ✧ ✧ B) Creating a Total Disk Image of Your Kobo – Time Consuming & Complicated As mentioned before, Kobo hides its Linux partitions from the Mac when mounting the Kobo to the Desktop. To create a clone of the full disk image on your Mac, please follow these steps: 1) To access your Kobo’s internal SD card, turn off your Kobo, then remove the back. At this point, I will refer you to Youtube or other threads where the specifics for disassembling your Kobo are discussed. 2) Remove the SD card from its socket and plug it into a USB card reader connected to your Mac. The Linux partitions are still hidden, but they are now accessible to your Mac. 3) Open a Terminal shell (/Applications/Utilities/Terminal.app) and type the following, then hit "return": Code:
diskutil list 4) Next, we need to unmount the Kobo through the Terminal without ejecting it. Type the following, then hit "return": Code:
diskutil unmountDisk diskX Code:
Unmount of all volumes on diskX was successful Code:
sudo dd if=/dev/diskX of= Code:
sudo dd if=/dev/disk4 of=/Volumes/Raven\'s\ Whim/Crypt/KOBOeReader/KOBOeReader-2021-07-16.dmg Now hit "return". You will be prompted for your password. Once it is accepted, go catch a movie. This will take quite some time as it is making an exact copy of your Kobo's SD card bit by bit, including the two hidden Linux partitions. dd doesn't give any feedback, unfortunately, but expect 2-4 hours. (There is are two ways get dd to give you progress updates, but one requires interrupting the process, and the other requires homebrewing your Mac, which is outside the scope of this tutorial. If there's interest, I'll post more details in a comment.) 4) Once dd does its thing (you'll see a final report and be returned to the prompt >), you can safely detach your Kobo from your Mac. You now have an exact duplicate of your Kobo on your Mac. With compression, my 128GB SD card created a 127.3GB disk image. The larger the SD card on your Kobo, the longer this process will take. It's slow, but extremely thorough. Double clicking on the disk image will mount it as if it is your actual Kobo. 5) In the event you need to restore your Kobo’s entire disk image, connect your Kobo to the Mac and use "diskutil list" in Terminal to see which disk number has been assigned to your Kobo. Then type "diskutil unmountDisk diskX" in the Terminal to prepare your Kobo for the final step. Type the following into Terminal: Code:
sudo dd if=/path/backup_disk_image.dmg of=/dev/diskX I hope this has been helpful. Last edited by Cootey; 07-27-2021 at 04:28 AM. |
07-16-2021, 05:16 PM | #2 | |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Quote:
Only the "public" internal storage partition and the external SD card (where available) are exported over USBMS. (I mean, backing up /mnt/onboard is an entirely valid workflow, and what people not aggressively modding their devices should be concerned about, but don't mistake it for a full image). Last edited by NiLuJe; 07-16-2021 at 05:21 PM. |
|
Advert | |
|
07-16-2021, 11:35 PM | #3 | |
Absentminded Reader
Posts: 1,104
Karma: 6463851
Join Date: Apr 2017
Device: Kobo Mini, Clara HD, Elipsa; Kindle Paperwhite 3 & 4; iOS eReader apps
|
Quote:
I believe that I figured out these steps when I had my Clara SD card out (which would have bypassed Kobo's filter), but then forgot that step because of all the drama my Elipsa put me through. I'll make the necessary corrections. Thanks for bringing it to my attention. Spoiler:
Last edited by Cootey; 07-17-2021 at 12:48 AM. |
|
07-27-2021, 04:09 AM | #4 |
Absentminded Reader
Posts: 1,104
Karma: 6463851
Join Date: Apr 2017
Device: Kobo Mini, Clara HD, Elipsa; Kindle Paperwhite 3 & 4; iOS eReader apps
|
As far as I can tell, this is the final version. These are the steps I have used for myself on multiple occasions. Let me know if you spot any issues or have any questions.
|
03-12-2022, 11:27 AM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Mar 2022
Device: kobo mini
|
Great instructions. I have a kobo mini that has issues and now have a mini .img but am not sure how to get it onto the sd card. Any suggestions or directions? I have a mac.
|
Advert | |
|
03-12-2022, 07:00 PM | #6 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
The instructions are above. You will need to follow most of the steps in "Creating a Total Disk Image of Your Kobo", but, already have the image, so you skip step 4.
|
03-13-2022, 12:26 AM | #7 | |
Bibliophagist
Posts: 35,401
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
You will need to follow steps 1 and 2 to remove the μSD card from your Kobo and mount it on your Mac using an USB or other adapter prior to restoring the complete image. Simply connecting your Kobo to the Mac will only expose the KOBOeReader partition so restoring the image will not succeed. |
|
08-26-2022, 03:28 AM | #8 |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2022
Device: Kobo Mini
|
Thank you for these detailed instructions. I managed to follow them all the way to step 5, but now I can't mount my Kobo image .dmg file onto the new 32GB sd card.
I've entered the sudo dd code, the right path and dmg filename and the correct disk number, but Terminal keeps telling me "Resource busy". The Kobo does not even recognise the 32GB sd card, whether it's blank or has anything on it. Both my card-reader and the SD-card-adapter that came with the micro sd card recognise it when plugged into the Mac, but the Kobo does not register it at all. Is there anything else I can try? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo HD Kobo backup image on Mac | fotoroberto | Kobo Reader | 9 | 07-17-2021 06:49 AM |