Skip to main content

rdmount command

Use this command to mount a disk image or network share so that it can be accessed like a local hardware device.

Note
  • Up to two files can be uploaded in the XClarity Controller memory and mounted as virtual media using the XClarity Controller RDOC feature. The total size for both files must not exceed 100 MB. The uploaded images are read only unless the –rw option is used.

  • When using the HTTP, SFTP, or FTP protocols to mount or map the images, the total size for all the images must not exceed 50 MB. There is no size limit if the NFS or SAMBA protocols are used.

Syntax:
rdmount [-options]
Table 1. rdmount options
OptionDescription
-rrdoc operation (if used, must be first option)
-mount
  • -t <samba|nfs|http|sftp|ftp>: filesystem type

  • -ro: read-only

  • -rw: read-write

  • -u: user

  • -p: password

  • -l: file location (URL format)

  • -o: option (extra option string for samba and nfs mounts)

  • -d: domain (domain for samba mount)

-mountlistShows the mapped images
-umount
  • id: use id with network images
  • fname

    : use filename with rdoc
Note
  • By default SMB3 is used. To use a lower version of SMB protocol, the option vers should be specified. Example: rdmount -mount -t samba -l url -u user -p password -o vers=1.0.

  • Mounting multiple images at the same time using one -mount command is supported in the format rdmount -r -mount -index "-t XXX -u XXX -p XXX -ro -l XXX " -index " -t XXX -u XXX -p XXX -ro -l XXX".
    • -r must be the first option, and must follow the order -r -mount -index.

    • Other parameters must use quotation marks, index value cannot be repeated.

    • For RDOC mount, the index range is 1-2.

    • For mount, the index range is 1-4.

    • Example: rdmount -mount -1 "-t samba -u samba -p 123 -ro -l smb://ip/samba/A.iso" -2 "-t samba -u samba -p 123 -ro -l smb://ip/samba/B.iso"

Example:
system> rdmount -mount -t samba -u xtp -p xtp -l smb://10.245.23.52/xtp/UEFI-Shell-2.2.iso
.ok
system> rdmount -mountlist
id filename protocol access owner
-------------------------------------------------------------------------
1 UEFI-Shell-2.2.iso samba ro root

system> rdmount -r -mount -t samba -u xtp -p xtp -l smb://10.245.23.52/xtp/UEFI-Shell-2.2.iso
...ok
system> rdmount -r -mountlist
filename access size(MB)
--------------------------------------------------------------------------------
UEFI-Shell-2.2.iso ro 5.8
Total = 5.8 MB Remaining = 94.2 MB

system> rdmount -mount -1 "-rw -t samba -u x -p x -l smb://x.labs.lenovo.com/data/repo/tools/UEFIShell.iso" -2 "-rw -t samba -u x -p x -l smb://x.labs.lenovo.com/data/repo/tools/UEFIShell.iso"
......Index:1 mount successful.
........Index:2 mount successful.
ok
system> rdmount -mountlist
id filename protocol access owner
-------------------------------------------------------------------------
1 UEFIShell.iso samba rw USERID
2 UEFIShell.iso samba rw USERID

system> rdmount -r -umount UEFI-Shell-2.2.iso
ok
system> rdmount -r -mountlist
filename access size(MB)
--------------------------------------------------------------------------------
Total = 0.0 MB Remaining = 100.0 MB