[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mounting live ISO images, inodes and NFS



Hi Thomas,

many thanks for your valuable input!

On Fri, Jun 30, 2023 at 12:44:01PM +0200, Thomas Schmitt wrote:
> Hi,
> 
> Andreas B. Mundt wrote:
> > I guess, for a more advanced di-netboot-assistant,
> > the relevant files need to be copied to the local file system, when
> > sharing them via NFS is needed. If anybody knows a more elegant
> > solution let me know!
> 
> Elegant i would not say, but if your problem is indeed in the equal inode
> numbers then you could manipulate the byte address which is base of the
> number computation of Linux.
> Try adding a new session which will have a new directory tree:
> 
>   $ cp debian-live-12.0.0-amd64-standard.iso test.iso
>   $ xorriso -dev test.iso -boot_image any keep -changes_pending yes
>   ...
>   ISO image produced: 920 sectors
>   Written to medium : 1088 sectors at LBA 819200
>   Writing to 'test.iso' completed successfully.
> 
> […]
> 
> If the manipulated ISO does not make its filesystem.squashfs
> distinguishable from the others, then you problem is likely not caused by
> the number equalities.
> 
> If the manipulation helps indeed and if you are lucky then all desired
> ISOs differ enough in size to yield disjoint inode number intervals by
> disjoint byte address intervals of the newly appended directory trees.
> If two ISOs are too near in size, we would have to ponder over adding
> a pad-up session before adding the default-mount session.
> The interval width depends on the number of files in the ISO. With
> debian-live-12.0.0-amd64-standard.iso it is less than 920 * 2048 bytes.

I gave it a quick test and manipulated two of the three ISOs according
to your recipe:  Things work as expected after that.

Best regards,

  Andi


Reply to: