Root persistence – clarity of behavior

Forum Forums New users New Users and General Questions Root persistence – clarity of behavior

  • This topic has 5 replies, 3 voices, and was last updated Dec 7-8:28 am by olsztyn.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #29953
    Member
    olsztyn

      One aspect of root persistence behavior I am trying to nail down through testing so I apologize it it is something obvious I overlooked, having set up a usual root persistence (manual, if it matters):
      – Booting (my default) with root persistence will make rootfs merge its content (additional programs and settings) into the running system.
      – Booting with F5=Root Persistence Off will boot without merging content of rootfs into the running system, so the system will boot as remastered.
      What remains not completely clear to me and what I am trying to nail down through testing:
      What is exactly the process to completely discard existing rootfs and start with a new and clear rootfs?
      The options available seem to resize rootfs or delete rootfs.old but does not seem explicitly clear how to simply discard current rootfs and create a fresh one, unless this is already included in one of the above options…
      The importance of this clarity of behavior to me is that I treat rootfs content as temporary state, such as for testing changes, which after successful I would commit permanently through remastering to make it set solid in place, master being subject to just read operation and not write when booting a Live system.

      Live antiX Boot Options (Previously posted by Xecure):
      https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

      #29954
      Forum Admin
      anticapitalista
        Helpful
        Up
        0
        ::

        You have to do this manually I’m afraid.
        ie boot with no persistence, as root, delete the existing rootfs,
        use Contol Centre > Live > Set Up Live Persistence to create a new rootfs.

        Philosophers have interpreted the world in many ways; the point is to change it.

        antiX with runit - leaner and meaner.

        #29962
        Member
        olsztyn
          Helpful
          Up
          0
          ::

          Thank you for confirming. I thought it was either this or creating a new Live copy (from running system) after booting without persistence, so as mastered.
          Deleting rootfs is good enough. In the future however it would be great to have an option in Control Center to discard existing rootfs… The reason is that rootfs is more prone to corruption being subject to write operations, so discard function would great to have as part of what is already fantastic Control Center…

          Live antiX Boot Options (Previously posted by Xecure):
          https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

          #30151
          Member
          ZnaqxbeuS
            Helpful
            Up
            0
            ::

            hello together,
            from my own experience, the fastest way to get a new root fs on an usb stick is as follows
            (if you do not need its contents anymore):

            a) boot with no persistence
            b) open a terminal and proceed as follows
            (we will re-use the existing rootfs, destroy all data on it)
            c) login as root (enter password)
            su
            cd /live/boot-dev/antiX
            mkfs.ext2 rootfs
            fsck.ext2 -yf rootfs

            If you want an other size (shrink or grow the rootfs), there is help:
            (here: 3000 Meg)

            resize2fs rootfs 3000m
            fsck.ext2 -yf rootfs

            #30165
            Member
            olsztyn
              Helpful
              Up
              0
              ::

              Thank you.
              I will test it too at the earliest opportunity. At the first glance the process seems equivalent to what anti suggested to delete rootfs, but to re-use it instead.
              IT would be great to have some function in Control Center to discard rootfs, though and start fresh…

              Live antiX Boot Options (Previously posted by Xecure):
              https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

              #30251
              Member
              olsztyn
                Helpful
                Up
                0
                ::

                from my own experience, the fastest way to get a new root fs on an usb stick is as follows
                (if you do not need its contents anymore):

                a) boot with no persistence
                b) open a terminal and proceed as follows
                (we will re-use the existing rootfs, destroy all data on it)
                c) login as root (enter password)
                su
                cd /live/boot-dev/antiX
                mkfs.ext2 rootfs
                fsck.ext2 -yf rootfs

                Thanks again ZnaqxbeuS and anti…
                Discarding existing rootfs came in handy a few times already as unintended changes to persistence content messed up antiX…
                Although cli process suggested by ZnaqxbeuS seems indeed quicker to restore integrity of antiX I found it easier to remember (though longer) going through gui – File Manager (delete rootfs) + Control Center (create a new one).

                Live antiX Boot Options (Previously posted by Xecure):
                https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.