
Appendices 201
Figure D.1: Boot Partitions
The previous figure also shows a configuration backup partition (/dev/hda3 in removable Flash).
This partition is mounted as /mnt/hda3. The /mnt/hda3/backup directory is used for storing
compressed copies of backed
-up configuration files, as shown in the following screen example.
Downloading a new software version
You can download a new software version in the following ways:
• Use the Web Manager Mgmt
- Firmware Upgrade screen to download the image from an
FTP server.
When the image is downloaded by FTP, a script (saveimage) automatically extracts the
filesystem from the image, mounts it and copies the files to the removable Flash. Since the
current image is being run from one of the three
-partitions sets, the downloaded image is
stored in the other set of three partitions. The environment variable currentimage is changed so
that the system boots from the new image.
• Do a network boot from the image and then save it onto the removable Flash.
The U
-Boot monitor command net_boot boots the image from the TFTP server specified in
the environment variables. After the image is downloaded by network boot, the root filesystem
is in the RAMDISK, and the image can run even if no removable Flash card is inserted.
From the command line, you can then run the create_cf script with the
--doformat option to automatically save the image from RAMDISK into the removable Flash.
The script erases everything in the Flash, partitions the Flash, if necessary, formats the
partitions and copies the files currently in the RAM into the corresponding image partitions. If
the Flash is already partitioned, you can choose where the image is saved using the option
--image<N>.
[root@MergePoint5224 root]# cd /mnt/hda3/backup
[root@MergePoint5224 backup]# ls
configuration_files.gz
Image1
/dev/hda1
/dev/hda5
/dev/hda7
/dev/hda2
/dev/hda6
/dev/hda8
Image2
/dev/hda3
Configuration Files Backup
Kernel
Root Filesystem
Configuration Files
Kernel
Root Filesystem
Configuration Files
Commenti su questo manuale