/
Erasing Data on the SD Card

Erasing Data on the SD Card

The SD card contains the CMS database that is required for SmartServer operations. The sections that follow provide steps for erasing data on the SD card using the CMS or the Linux console. 

Before continuing with the steps in the sections that follow, be sure that you intend to erase the data on the SD card, including the CMS database. 

This section describes how to erase data on the SD card and consists of the following:

Erasing Data on the SD Card Using the CMS

You can use the SmartServer CMS to erase the contents of the SD card. To delete SmartServer database and system backup files from the SD card, perform the following steps:

  1. Open the SmartServer CMS.

  2. Open the Devices widget, SEGMENT CONTROLLERS tab. Click the Expand button (image-20250220-170829.png).

     

  3. Click the Action button (image-20250220-170900.png) and select the Erase SD Card action.

     


    The following dialog box appears:

  4. Make sure that you intend to erase the data on the SD card, including the CMS database, before continuing with the next step.

  5. Click OK to erase the contents of the SD card, including the CMS database.

Erasing Data on the SD Card Using the Linux Console

You can use the Linux console to delete the SmartServer database and system backup files from the SD card. Using the command line, you can select specific database and system backup files to be removed, or you can remove all of the backup files.

To delete SmartServer database and system backup files that are stored on the SD card using the Linux console (SSH or USB), perform the following steps:

  1. Connect and log into to the SmartServer. See Connecting to Your SmartServer for more information.

  2. Enter the following command to change to the /media/sdcard/backups directory:

    cd /media/sdcard/backups

     

  3. Enter the following command to view the directory file contents and its size:

    ls -s


    The database backups (.zip files) and system backups (.tgz files) are stored with the date and time of their creation encoded into the name using the format yyyy-mm-dd-hhmmss as shown in the following examples:

    total 868180 -rw-r--r-- 1 root root  10258111 May  6 23:19 SmartServer-DB-Backup-2021-05-07-031940.zip -rw-r--r-- 1 root root 878744783 May  7 00:12 SmartServer-System-Backup-2021-05-07-035021.tgz

     

  4. Make sure that you intend to erase the data on the SD card, including the CMS database, before continuing with the next step.

  5. Use the Linux rm command to remove a file(s) as shown in the following examples with the date and time specific to files:

    rm SmartServer-DB-Backup-yyyy-mm-dd-hhmmss.zip rm SmartServer-System-Backup-yyyy-mm-dd-hhmmss.zip


    Use the following command to remove all of the contents of the /media/sdcard/backups directory:

    rm *

     

 

Related content