Data Migration for Persistent Partitions
This release introduces an enhanced persistent partition workflow where persistent
            partition images are created by build-fs and flashed by the bootburn utility if
                --init-persistent-partitions is used. The work in the current
            release is not compatible with the previous releases of NVIDIA DRIVE® OS Linux including 6.0.4.0. If you have 6.0.4.0 filesystem
            flashed, updating the filesystem only updates the rootfs, but the data (although not
            erased) in the persistent partition is not usable for the current release. You can use
            the following steps to migrate your persistent data across releases.
Moving Data from Version 6.0.4.0 or Earlier to the Current Version
- Setting Up to Migrate Data- Enable a WAR in /usr/sbin/nv_init.shscript before it launchesdriveos-persistence.sh.#!/bin/bash ... export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' /bin/bash # <== Please add root shell HERE # Persistence service setup /bin/bash $DBG_OPTS /usr/sbin/driveos-persistence.sh sync .... systemctl --no-block isolate graphical.target || true
- Reboot the system.
- Wait for the root shell by pressing ENTER until you see the root prompt.
 
- Enable a WAR in 
- Migrating Persistent Metadata Partition- Mount the persistent metadata
                            partition.mkdir -p /tmp/tmp_mdata mount /dev/vblkdev1 /tmp/tmp_mdata mv /tmp/tmp_mdata/driveos/security/etc/ /tmp/tmp_mdata/
- Remove the old persistent partition directories after
                            migration.rm -rf /tmp/tmp_mdata/driveos/security/
- Unmount the
                            partition.umount /tmp/tmp_mdata
 
- Mount the persistent metadata
                            partition.
- Migrating Persistent Data Partition
                    - Format data
                            partition.mkfs.ext4 /dev/vlbkdev3 # (input y if any prompt comes up)
- Mount the persistent data
                            partition.mkdir -p /tmp/tmp_data mount /dev/vblkdev3 /tmp/tmp_data
- Move the data in the homedirectory.mv /home /tmp/tmp_data/
- Unmount the
                            partition.umount /tmp/tmp_data
 
- Format data
                            partition.
- After Migration- Flash the NVIDIA DRIVE® platform with the 6.0.5.0 SDK.
 
Moving Data from Current Version to Version 6.0.4.0 or Earlier
- Setting Up to Migrate Data- Enable a WAR in /usr/sbin/nv_init.shscript before it launchesdriveos-persistence.sh.#!/bin/bash ... export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' /bin/bash # <== Please add root shell HERE # Persistence service setup /bin/bash $DBG_OPTS /usr/sbin/driveos-persistence.sh sync .... systemctl --no-block isolate graphical.target || true
- Reboot the system.
- Wait for the root shell by pressing ENTER until you see the root prompt.
 
- Enable a WAR in 
- 
                    Migrating Persistent Metadata Partition- Mount the persistent metadata
                            partition.mkdir -p /tmp/tmp_mdata mount /dev/vblkdev1 /tmp/tmp_mdata mkdir -p /tmp/tmp_mdata/driveos/security/ mv /tmp/tmp_mdata/etc/ /tmp/tmp_mdata/driveos/security/
- Remove the old persistent partition directories after migration.
- Unmount the
                            partition.umount /tmp/tmp_mdata
 
- Mount the persistent metadata
                            partition.
- 
                    Migrating Persistent Data PartitionTo prepare the system persistent data migration,To migrate the data,- Flash NVIDIA DRIVE platform with 6.0.4.0 or an earlier version.
- Add a WAR in nv_init.shto execute/bin/bashbefore runningdriveos-perisstence.sh.
- Reboot the system.
- Wait for the root shell by pressing ENTER until you see the root prompt.
 - Mount the persistent data
                            partition.mkdir -p /tmp/tmp_data mount /dev/vblkdev3 /tmp/tmp_data
- Move the data in the homedirectory to the rootfs partition.mv /tmp/tmp_data/home/ /
- Unmount the
                            partition.umount /tmp/tmp_data
-  Remove WAR by deleting the line and adding the
                                /bin/bashfor the root shell.
 
-  After Migration- Reboot the system.