For SmartServer 3.4, see Managing the SmartServer SD Card (Release 3.4).
For SmartServer 3.3 and prior, see Managing the SmartServer SD Card (Release 3.3 and Prior).
The Devices widget, SEGMENT CONTROLLERS tab, allows you to erase data on the SD card, as well as to reformat the SD card, using the CMS. You can also erase data on the SD card using the SmartServer Linux console. This section describes these operations and consists of the following:
Determining SD Card Usage
For SmartServer 3.3 and prior, use the Storage widget as described in Managing the SmartServer SD Card (Release 3.3 and Prior) to determine the SD card usage.
For SmartServer 3.4 and higher, use the SmartServer app bar Storage display to determine the SD card usage. Storage reflects percentage used internal storage (stored in /var/apollo) / percentage used SD card storage (stored in /media/sdcard).
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.
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:
Open the Devices widget, SEGMENT CONTROLLERS tab. Click the Expand button ( ).
Click the Action button () and select the Erase SD Card action.
The following dialog box appears:- Make sure that you intend to erase the data on the SD card, including the CMS database, before continuing with the next step.
- Click OK to erase the contents of the SD card, including the CMS database.
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:
- Connect and log into to the SmartServer. See Connecting to Your SmartServer for more information.
Enter the following command to change to the /media/sdcard/backups directory:
cd /media/sdcard/backups
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
- Make sure that you intend to erase the data on the SD card, including the CMS database, before continuing with the next step.
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 *
Reformatting the SD Card Using the CMS
You can use the SmartServer CMS to reformat the SD card. The SD card contains the CMS database that is required for SmartServer operations. Reformatting the SD card erases all the contents on the card, including the CMS database. Before continuing with the steps in the sections that follow, be sure that you intend to reformat the SD card and erase all the data on the card, including the CMS database.
To reformat the SD card using the SmartServer CMS, perform the following steps:
Open the Devices widget, SEGMENT CONTROLLERS. Click the Expand button ( ).
Click the Action button () and select the Format SD Card action.
The following dialog box appears:- Make sure that you intend to erase the data on the SD card, including the CMS database, before continuing with the next step.
- Click OK to reformat the SD card and erase all its data.