Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] Customize initramfs SD fallback
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: Customize initramfs SD fallback
3rd Aug, 2014, 01:26 AM
Post: #4
rlogiacco Offline
Registered
Posts: 22
Joined: Jul 2014
Reputation: 0
RE: Customize initramfs for SD fallback
Ok, I have it running now and it works nicely!

I'm going to write a blog post on this, but in the meanwhile:

Please find the little shell script attached. The script accepts one option which can either be fallback which tries to restore the SD as root filesystem, or restore which tries to restore the USB hard drive as rootfs.

The modified init script is attached as well: the initial suggestion to slightly alter line 182 wasn't perfect as that line happen to get executed too late in the init process, but the suggestion was more or less correct.

The altered init scripts tries to fallback to SD card root fs and, if it succeeds, it automatically restart your RPi to apply the modifications.

Don't worry the script doesn't keep rebooting your RPi indefinitely Wink

The other steps are the same as suggested by CurlyMo and I'll update this post to a link to my blog once I've the post published.

To use this script you need to copy your cmdline.txt file into cmdline.sd.txt before altering it to use the USB as rootfs: this file will be used by the fallback proceedure. Once the fallback proceedure is applied, in case you want to restore your USB rootfs you just have to execute the same script with the restore option.

Thanks a million to CurlyMo and everybody else.

Next step: automatically sync the root filesystem between USB and SD: going to open another topic!


Attached File(s)
.zip  Archive.zip (Size: 6.29 KB / Downloads: 2)
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Customize initramfs SD fallback - rlogiacco - 31st Jul, 2014, 05:58 PM
RE: Customize initramfs - CurlyMo - 31st Jul, 2014, 06:20 PM
RE: Customize initramfs - rlogiacco - 31st Jul, 2014, 07:41 PM
RE: Customize initramfs for SD fallback - rlogiacco - 3rd Aug, 2014 01:26 AM
RE: Customize initramfs SD fallback - rlogiacco - 4th Aug, 2014, 08:21 PM
RE: Customize initramfs SD fallback - mk01 - 6th Aug, 2014, 09:02 PM
RE: Customize initramfs SD fallback - rlogiacco - 6th Aug, 2014, 10:02 PM
RE: Customize initramfs SD fallback - mk01 - 6th Aug, 2014, 10:08 PM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 3rd Jun, 2025, 04:43 PM Powered By MyBB, © 2002-2025 MyBB Group.