Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import an external file #32

Open
rdwnsjjd opened this issue Feb 24, 2022 · 1 comment
Open

import an external file #32

rdwnsjjd opened this issue Feb 24, 2022 · 1 comment

Comments

@rdwnsjjd
Copy link

How to import an external file into the system?
I want to copy some projects into the system Dennix running on it and run them.
how to do it?

@dennis95
Copy link
Owner

dennis95 commented Mar 1, 2022

There are two ways to access a file from within Dennix:

  1. Adding a file to the initrd.
    When building Dennix all files in the sysroot directory are packed into the initrd.tar.xz file of the iso image. Any files in that initrd are loaded into RAM during boot. New files can be added by creating a new initrd that contains the new files in addition to the files that are there by default. The disadvantage is that you need to create a new iso image whenever you want to add a file. Also changes are not preserved between boots.

  2. Mounting an ext2 filesystem.
    This is the more flexible option. Dennix can mount ext2 filesystems and can access ATA disks. Create a ext2 filesystem image containing your files and make it available to Dennix as an ATA disk.
    Then mount the filesystem using mount /dev/ata0p1 /mnt (if the filesystem is on the first partition of the first ATA channel) or mount /dev/ata0 /mnt (if the filesystem on an unpartitioned disk on the first ATA channel).
    Then the contents of the filesystem can be accessed in the /mnt directory. Changes to files are written to the disk. Do not forget to unmount using umount /mnt when done, as without it changes to the filesystem might not be saved correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants