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.





updating FuguIta

aleksa (2019-03-25 (Mon) 19:41:13)

Hello, kaw!
How can i update FuguIta?

For example, if i have the patched-014 6.4-i386-version with a bunch of installed apps running on a usb drive in mode 3,

is it possible to just substitute that big FFSIMG on sd0a for the one taken from the patched-015 FuguIta-6.4-i386-201903231.img?

Yes, of course, you can do it.

(You know, LiveCD cannot be re-written, so in that case, prepare another CD media to burn newly released FuguIta)

There are some ways to update LiveUSB version of FuguIta.

I'll introduce two methods, for example.

  • method 1: replace the kernels and the filesystem image

    This is described in FuguIta Guide (Google Translate is your friend).
    • 1: Boot NEW USB with mode 0. (Boot time configurations may be the minimal)
    • 2: mount OLD USB (assume it's sd1)
      # mount /dev/sd1a /mnt
    • 3: copy NEW kernels and a filesystem image to old USB
      # cp /sysmedia/bsd-fi /mnt
      # cp /sysmedia/bsd-fi /mnt
      # cp /sysmedia/fuguita-6.4-i386.ffsimg /mnt
    • 4: umount sd1, then halt
    • 5: reboot NEW USB and confirm that's updated.
      # uname -a                  # OS version
      # sysctl kern.version       # kernel version
      # cat /usr/fuguita/version  # release of fuguita
  • method 2: migrate installed apps, config files and your data to NEW USB
    • 1: Boot OLD USB with mode 3 you've been used until now
    • 2: Invoke usbfadm, then attach NEW USB and change sync target to it
      # usbfadm
      
      Welcome to usbfadm. 
      USB flash drive administration tool for FuguIta
      
        Version/Arch: 6.4/arm64  (FuguIta-6.4-arm64-201903231)
           Boot mode: usbflash
      Data stored in: /dev/sd0d
       Data Saved as: aleksa_apps
      
      Type ? for help.
      
      sd0d : aleksa_apps ->target 
      
      Searching USB flash drives
      Please make sure the device inserted.
      Then press ENTER -> 
      sd0a +sd0d sd0i sd1a +sd1d sd1i
      
      target device->sd1d
    • 3: Do 'sync' command to NEW USB
      sd1d : aleksa_apps ->sync
      
      Sync current tmpfs as ``aleksa_apps'' , OK? [y/N] -> y
      
      sending incremental file list
      ....snip....
      sent 14,595,555 bytes  received 2,592 bytes  572,476.35 bytes/sec
      total size is 29,789,283  speedup is 2.04
      
      sd1d : aleksa_apps ->bye
      
      Bye bye...
      # halt  
    • 4: Reboot with NEW USB, and check it's OK.

These procedures are valid when OLD and NEW USB are both based on same OpenBSD version. If it isn't (e.g. 6.4 to 6.5), you need to pkg_add manually on a new system, and need to migrate app's config files and your data files to NEW USB by hand.

Finally, I think method 2 is little bit safer. -- kaw 2019-03-26 (Tue) 01:10:40

  • Updating #FuguIta by method 1 worked fine. Thank you, Kaw, for your work! -- aleksa 2019-03-26 (Tue) 22:57:30
  • Aleksa, it's nice to hear that. FYI, a LiveCD version of #FuguIta is also OK for source of copying kernels and fs imgs. -- kaw 2019-03-27 (Wed) 02:48:36

New feature: mount additional partitions

kaw (2019-03-13 (Wed) 17:42:48)

Unlike most Unix-like OSes, #FuguIta does not mount them at boot time, even if the user writes partition entries in /etc/fstab.

That's because FuguIta scans the all partitions of attached disks to by the script /boottmp/rc. According to that result, it determines apropriate partitions (and vnode devices) to be mounted.

FuguIta generates /etc/fstab after the partition is mounted. Therefore, even if the user adds partition entries to fstab, they will be overwritten at next boot time.

To solve this problem, FuguIta-6.4-201903131 introduced the /usr/fuguita/etc/fstab.tail file.

Describe the partition entries to be mounted in fstab.tail with the same format as /etc/fstab, save with usbfadm.

Those partitions will be mounted at next boot of mode 3.

Note that this is functional only when boot mode is 3.


HDD install?

Vasile Guta-Ciucr (2019-02-28 (Thu) 23:37:23)

Hi,

Can this live system be used to install to HDD, or is designed to work only live?



Former articles are at FuguIta/BBS/8.


Return to Top


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