Your message?

Notice: To avoid posts by spam, a message body without the word '#FuguIta' is rejected. ~
Please include the word in your message text.
----
#contents
----
#article
**The file layouts of FuguIta [#u7361335]
>[[kaw]] (2021-05-25 (Tue) 12:41:15)~

Now, I have described the file layout structure of #FuguIta.

The first figure shows the file layout in boot mode 0 (Click the figure to enlarge).~
For example, the paths /bin/ed, /usr/bin/vi, and pkg_added /usr/local/bin/emacs are shown.
#ref(fi-filesys-mode0.png,wrap,around,left,50%)
The root file system is rd(4). This rd(ram disk) device is attached to the kernel and is mounted from the system boot time.
Under the root, there is an unfamiliar directory called "boottmp".
This is where you will find the commands needed at the very beginning of the system boot, and utilities specific to FuguIta.

The FuguIta device itself, a DVD or USB flash drive, which holds the boot loader, OS kernel, and file system images. It is mounted read-only on /sysmedia.

The filesystem image in /sysmedia is mapped to /dev/vnd4 and mounted on /fuguita. This is the OpenBSD file tree. This is pretty much as it should be, except for a few modifications to fit to the live system. Also, this is read-only. So no files can be created, modified, or deleted under it.

/ram is a memory file system called TMPFS (temporary file system), which is both readable and writable.
Files that need to be modified, such as /etc/*.conf, your own data under /home/YOU, and the pkg_added program, are located on this. In addition, files that are rarely modified are replaced by symbolic links towards equivalent files in /fuguita. This will reduce the memory usage of TMPFS.
#img(,clear)
~
#ref(fi-filesys-mode1.png,wrap,around,left,50%)
Next is boot mode 1.
This is the same as mode 0, but /usr is symbolically linked to /fuguita/usr.
This makes the boot faster and uses less memory than mode 0 by not copying/linking /usr to /ram.
However, /usr/local is not writable, so pkg_add is not possible.
#img(,clear)
~
#ref(fi-filesys-mode2.png,wrap,around,left,50%)
Finally, there is boot mode 2.
This is much simpler than modes 0 and 1.
Only / and /ram are mounted, and all external devices are unmounted.
Of course, all files can be modified.
#img(,clear)
~
Note that usbfadm sync will only save the data that exists in /ram TMPFS at boot mode 0, 1, or 2.

//

#comment

**How to change encrypt password [#qeddb53c]
>[[m3th]] (2021-05-21 (Fri) 04:40:05)~
~
Can I change password ?~
Should I use newdrive command again? ~
I might lose data, if I mistake. ~
#FuguIta~

//
- Use bioctl command with -P option.~
https://man.openbsd.org/bioctl.8
~-- [[kaw]] &new{2021-05-21 (Fri) 14:19:05};
- I changed password. Now, I can not reply 6.9 thread. I noticed that my /mnt/something directories are deleted when I reboot #FuguIta. Should I create them in /ram/home/m3th directory instead of /mnt -- [[m3th]] &new{2021-05-23 (Sun) 03:31:35};
- According to [[hier(7)>https://man.openbsd.org/hier]], /mnt is "Empty directory commonly used by system administrators as a ''temporary'' mount point".&br;usbfadm will only store files and directories that exist in tmpfs mounted in /ram. (excluding /tmp, which is also for temporary use).&br;>'''Should I create it in the /ram/home/m3th directory instead of /mnt?'''&br;Yes, I think that is the proper way. -- [[kaw]] &new{2021-05-23 (Sun) 23:14:53};

#comment

----
Former articles are at [[FuguIta/BBS/10]].
----
Return to [[Top>Welcome]]


Front page   New Page list Search Recent changes   Help   RSS of recent changes