Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

microSDD is toast and I have root partition backup

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
Author
Message
thegrind
n00b
n00b
Posts: 60
Joined: Sun Sep 22, 2024 2:56 am

microSDD is toast and I have root partition backup

  • Quote

Post by thegrind » Thu Nov 20, 2025 10:45 pm

Running gentoo on a Rpi5. I had made a backup of my root partition but I didn't have a backup of the boot partition. What is the best way to restore my backup. My original install was with a stage3 file that I have. I compiled a kernel and the headers are in the root directory so I am guessing they don't match the stage3. I am confident the SDD is toast as it just shows as 30MB capacity and it just shows /dev/sdb and none of the other partitions.
Top
gentoo_ram
Guru
Guru
Posts: 528
Joined: Thu Oct 25, 2007 10:04 pm
Location: San Diego, California USA

  • Quote

Post by gentoo_ram » Wed Dec 03, 2025 9:59 pm

There is a Gentoo package called sys-kernel/raspberrypi-image that has the /boot files you're looking for. It has a compiled kernel and modules. I copied the boot partition files from another SDCard which contained a Raspberry Pi OS install on it. That would be another option.

I build my own kernel and modules from the Raspberry PI kernel sources direct from GitHub.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56075
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Dec 03, 2025 10:36 pm

thegrind,

The kernel that you built will still be in /usr/src
Its modules will still be in /lib/modules.

You will need the GPU files ... see Raspberry Pi Install Guide
Copy the kernel binary, the *.dtb and overlays dir from your kernel build location into /boot

All that's missing now is config.txt and cmdline.txt, which are gone for good, probably.
They will need to be recreated unless you want to try to coax them out of the SD Card?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
thegrind
n00b
n00b
Posts: 60
Joined: Sun Sep 22, 2024 2:56 am

  • Quote

Post by thegrind » Thu Dec 04, 2025 2:35 am

I ended up following the wiki installation guide and used my backup as my stage3. I pulled the kernel over from /usr/src. The problem was is I didn't have the /boot/overlay files. I tried to get them from github but could not find the one for my kernel. I ended up using the current one. then recreated the config.txt and the cmdline.txt file.

I rebooted and my Pi fan stayed on so I figured this wasn't going to work I then just used the latest kernel image and moved the /lib/modules over. Kodi was then crashing on boot. I created a blank profile and this worked so then I had to figure out the plugin causing the issue which turned out to be pvr.simpleiptv. I just recompiled PVR and rebooted. All is working great. Turned out not to be very complicated.
Top
Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy