WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Concatenate initramfs on Windows  (Read 5464 times)

Offline sodface

  • Jr. Member
  • **
  • Posts: 90
Re: Concatenate initramfs on Windows
« Reply #15 on: January 04, 2018, 08:57:02 PM »
Thanks for the comment Greg and I agree with you 100%.  I also don't think anything documented in this thread is really of much benefit and maybe only marginally useful in certain applications.

That said, most of the stuff in this thread is half just experimenting, starting with "I wonder if this would work..." and then tinkering around until it does.  For me it's fun and a good way to learn some of the under the hood mechanics of what's going on.

But there's also part of me that thinks that piCore lends itself to appliance type applications with single (not necessarily simple) functions.  In that case what do you really want?  The core OS, a fixed set of extensions and a basically static configuration.  I'm probably not the only one that uses Windows as my daily driver OS, not because I don't like Linux, I do, I just use Windows on my desktop.  For me, I'd prefer that piCore be distributed as a zip file rather than a disk image.  I'd rather just use a "big" fat partition and unzip the piCore OS files to it.  Put my fixed set of extra extensions on it and go.  The disk image, fixed fat partition, stub second partition that needs to be expanded (which isn't readable by windows) is just sort of nuisance - in my opinion - for the things I've used piCore for to date.

I've found a way to do it the way I want to do it that seems to work ok and to me just feels more "simple".  piCorePlayer is a nice customization of piCore and really is a very useful product for a lot of people.  I've used it and it worked great.  It's also good that you've found the standard piCore to be robust, though I would point out that the "Into the Core" book makes these statements:

Quote
It should be noted that using a bulk selection, that is, loading all
extensions to RAM, allows the storage to be unmounted, and the
system to avoid any corruption on power loss.

Quote
It’s desirable to be able to turn off our system by the power switch,
making the kiosk more reliable in the event of power loss.
To do this, enable copy2fs via the Toggle default install to file
system option in Apps. Now all extensions are loaded to RAM.
As the final step, we will unmount the disk after the boot has
completed. This will prevent any corruption from getting to the disk,
enabling clean shutdowns via the power switch.

Anyway, I feel like this post might begin to sound defensive which is not my intent.  I'm really not trying to push anything on anyone here, really just documenting some experimentation publicly rather than just sending notes to myself via email.

As a side note, if anyone wants to use the single fat partition method, I think an easy way to prep the card for making a filetool backup to the root of the fat partition is to pull the default mydata.tgz out the "1" partition of the disk image via 7zip and dropping it into the root of the fat partition.  piCore will pick up the location on first boot (it wouldn't if there wasn't one there to begin with) and filetool.sh -b will work without issue.
« Last Edit: January 04, 2018, 09:03:58 PM by sodface »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Concatenate initramfs on Windows
« Reply #16 on: January 04, 2018, 09:16:11 PM »
Hi sodface
Quote
... stub second partition that needs to be expanded (which isn't readable by windows) ...
Try Googling for:
Code: [Select]
ext driver windowsand see what pops up.

Offline polikuo

  • Hero Member
  • *****
  • Posts: 758
Re: Concatenate initramfs on Windows
« Reply #17 on: January 04, 2018, 09:26:57 PM »
Hi sodface
Quote
... stub second partition that needs to be expanded (which isn't readable by windows) ...
Try Googling for:
Code: [Select]
ext driver windowsand see what pops up.

IIRC.
Even with drivers such as Ext2Fsd installed,
M$ simply don't allow having multiple partitions on a removable flash drive (USB-HDD is fine, though).
It'll ask you to delete the extra partitions.

To access such partition, I'd use a virtual machine.

Offline sodface

  • Jr. Member
  • **
  • Posts: 90
Re: Concatenate initramfs on Windows
« Reply #18 on: January 04, 2018, 09:32:18 PM »
Hi sodface
Quote
... stub second partition that needs to be expanded (which isn't readable by windows) ...
Try Googling for:
Code: [Select]
ext driver windowsand see what pops up.

Ok, how about, which isn't readable by windows unless you install additional software.  But thanks for the tip.

//edit, or, which isn't readable natively by windows
« Last Edit: January 04, 2018, 10:04:06 PM by sodface »

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: Concatenate initramfs on Windows
« Reply #19 on: January 05, 2018, 04:27:17 PM »
Hi sodface,

As I also have (had) a copy2fs.flg fixation, I added this option to piCorePlayer in [Developer] mode some time ago. The other developers didn't see a need or have the requirement to move it into user mode. I guess as our application rarely writes to the SD card this extra step just isn't required.

I have noticed that Windows 10 has recently started seeing the second partition on the SD card. It mounts the first partion and wants to format the second partition. I am not sure if this is a function of Windows 10 or a result of some app I loaded.

Alternatively, resizing the second partition can be scripted to make it simple for the end user.

regards
Greg