$ luna-atlas --cat storage

Storage & USB luna-send commands.

USB drives, internal storage, mounting and file system services. 140 methods in 12 services.

140methods
12services
62documented
66public
7flagged dangerous

open Storage & USB in the catalog ↗

Services

servicemethodswhat it does
com.webos.service.pdm40Physical Device Manager: detects and manages attached USB and storage devices, listing attached devices, ejecting, formatting, and running…
com.webos.service.attachedstoragemanager23Manages attached USB storage: lists devices and folder contents, copies, deletes, decompresses and formats, ejects devices, and extracts…
com.palm.filecache16File-cache manager: defines cache object types and inserts, copies, resizes, expires and queries cached files, reporting cache status,…
com.webos.service.filecache16File-cache service managing a global shared file cache: defines cache types and inserts, copies, resizes, expires and touches typed cache…
com.webos.service.printing15Printing service: adds, removes and configures printers, sets the default printer and options, and manages print jobs (list, cancel,…
com.webos.service.storageaccess13Storage-access service: lists storage providers and attached devices, reports device properties, and performs file operations (copy, move,…
com.webos.service.storagestatistics8Storage statistics: reports per-app storage usage, lists large apps and files, clears app data and removes files.
com.palm.storage3Mass-storage service: enters USB mass-storage (MSM) disk mode, queries its status, and erases all storage.
com.webos.service.lowlevelstorage3Low-level key/value storage service exposing get/set data and shutdown.
com.palm.backup1Legacy Palm/HP webOS backup service: starts a backup of device data.
com.palm.downloadmanager1Legacy download/upload manager: queues and controls file downloads and uploads, tracks history and status, and exposes debug helpers.
com.webos.service.commercial.scapadapter1Commercial/pro-TV SCAP adapter (set-top/conditional-access integration) with a large configuration surface: OSD language and lock, picture…

Documented methods to start with

Public and SSAP methods from LG's documentation, none flagged dangerous. Each opens in the catalog with its full parameter table. Run them on a rooted TV or in Developer Mode.

listDevices ssapcom.webos.service.attachedstoragemanager

List attached storage devices

params: deviceType

$ luna-send -n 1 -f luna://com.webos.service.attachedstoragemanager/listDevices '{}'
ChangeType publiccom.webos.service.filecache

Allows apps to modify the parameters of a cache type other than its name. You must specify the name of the cache type, and those cache type parameters that have to be modified. The cache type values are all as defined…

params: typeName, loWatermark, hiWatermark, size, cost, lifetime

$ luna-send -n 1 -f luna://com.webos.service.filecache/ChangeType '{}'
CopyCacheObject publiccom.webos.service.filecache

Enables copying of an object from the file cache to a non-cached location. On successful completion, newPathName will be returned as it may be different than expected due to filename collisions. If there is a name…

params: pathName, destination, fileName

$ luna-send -n 1 -f luna://com.webos.service.filecache/CopyCacheObject '{}'
DefineType publiccom.webos.service.filecache

Defines a new cache type. This is intended for use by the backup service. Optionally you may specify the default values for the size, cost, and lifetime. These defaults will be applied to all objects inserted into this…

params: typeName, loWatermark, hiWatermark, size, cost, lifetime, dirType

$ luna-send -n 1 -f luna://com.webos.service.filecache/DefineType '{}'
DeleteType publiccom.webos.service.filecache

Allows you to delete a previously defined cache type and frees up its space. All objects in the cache must be expired in order to delete a cache type. The app can call the ExpireCacheObject to force the objects to…

params: typeName

$ luna-send -n 1 -f luna://com.webos.service.filecache/DeleteType '{}'
DescribeType publiccom.webos.service.filecache

Returns cache type details. The DescribeType will return the currently assigned values for all cache type parameters. Note: Filesize as it resides on disk after accounting for the filesystem blocksize of 4096…

params: typeName

$ luna-send -n 1 -f luna://com.webos.service.filecache/DescribeType '{}'
ExpireCacheObject publiccom.webos.service.filecache

Objects will normally be automatically expired form the cache as space is needed. If you want to force an item to be removed or if you want to remove items prior to calling DeleteType , you can expire an object…

params: pathName

$ luna-send -n 1 -f luna://com.webos.service.filecache/ExpireCacheObject '{}'
GetCacheObjectFilename publiccom.webos.service.filecache

Allows you to query the original filename of a particular object in a cache type. In order to get the cache object file name the app must specify the path name of the object.

params: pathName

$ luna-send -n 1 -f luna://com.webos.service.filecache/GetCacheObjectFilename '{}'
GetCacheObjectSize publiccom.webos.service.filecache

Allows you to query a particular object size in a cache type. In order to get the cache object size, the app must specify the pathname of the object.

params: pathName

$ luna-send -n 1 -f luna://com.webos.service.filecache/GetCacheObjectSize '{}'
GetCacheStatus publiccom.webos.service.filecache

Give status of the cache as a whole. The GetCacheStatus will return: the number of cache types defined the total space used by the objects in all cache types the number of objects in all cache types the available space…

$ luna-send -n 1 -f luna://com.webos.service.filecache/GetCacheStatus '{}'
GetCacheTypes publiccom.webos.service.filecache

Returns an array of all defined cache types.

$ luna-send -n 1 -f luna://com.webos.service.filecache/GetCacheTypes '{}'
GetCacheTypeStatus publiccom.webos.service.filecache

Allows you to query the status of a particular cache type to obtain: the total space used by the objects in the specified cache type the number of objects in the specified cache type

params: typeName

$ luna-send -n 1 -f luna://com.webos.service.filecache/GetCacheTypeStatus '{}'
GetVersion publiccom.webos.service.filecache

Returns the version of the File Cache API.

$ luna-send -n 1 -f luna://com.webos.service.filecache/GetVersion '{}'
InsertCacheObject publiccom.webos.service.filecache

Inserts a new object of the specified type into the cache. The fileName parameter is required. It is stored with the object to ensure that the correct extension is provided, so that other module can choose a strategy…

params: typeName, fileName, size, cost, lifetime, subscribe

$ luna-send -n 1 -f luna://com.webos.service.filecache/InsertCacheObject '{}'
ResizeCacheObject publiccom.webos.service.filecache

By calling the ResizeCacheObject you can specify the size of the cached object after it is inserted into the cache. Call this method if the final size of the object, which is being inserted into the cache, is not known…

params: pathName, newSize

$ luna-send -n 1 -f luna://com.webos.service.filecache/ResizeCacheObject '{}'
SubscribeCacheObject publiccom.webos.service.filecache

Enables you to subscribe an object in the cache and hold a subscription to the object for the duration of your usage. An object cannot be expired from the cache while at least one subscription is active.

params: pathName

$ luna-send -n 1 -f luna://com.webos.service.filecache/SubscribeCacheObject '{}'
TouchCacheObject publiccom.webos.service.filecache

Allows you to mark an object as recently used. This decreases the chances of the object from getting expired from the cache when the space is being reclaimed.

params: pathName

$ luna-send -n 1 -f luna://com.webos.service.filecache/TouchCacheObject '{}'
eject publiccom.webos.service.pdm

Unmounts all drives of the storage device for safe removal. Prerequisite: The storage device must be connected.

params: deviceNum

$ luna-send -n 1 -f luna://com.webos.service.pdm/eject '{}'
format publiccom.webos.service.pdm

Formats the connected drive.

params: driveName, fsType, volumeLabel

$ luna-send -n 1 -f luna://com.webos.service.pdm/format '{}'
fsck publiccom.webos.service.pdm

Checks the file system by performing fsck (File System Check) of the corresponding connected drive. Note : On connecting a USB device with a large number of files, the PDM service prompts for “Check & Repair” and “Open…

params: driveName

$ luna-send -n 1 -f luna://com.webos.service.pdm/fsck '{}'
getAttachedDeviceStatus publiccom.webos.service.pdm

Gets the status information of connected device(s).

params: subscribe

$ luna-send -n 1 -f luna://com.webos.service.pdm/getAttachedDeviceStatus '{}'
getAttachedNonStorageDeviceList publiccom.webos.service.pdm

Gets the status information of connected non-storage device(s).

params: subscribe, category, groupSubDevices

$ luna-send -n 1 -f luna://com.webos.service.pdm/getAttachedNonStorageDeviceList '{}'
getAttachedStorageDeviceList publiccom.webos.service.pdm

Gets status information of connected storage device(s).

params: subscribe

$ luna-send -n 1 -f luna://com.webos.service.pdm/getAttachedStorageDeviceList '{}'
getExample publiccom.webos.service.pdm

Provides debug logs with detailed information of all connected storage and non-storage device list.

$ luna-send -n 1 -f luna://com.webos.service.pdm/getExample '{}'
getSpaceInfo publiccom.webos.service.pdm

Gets the space information of the connected drive. Note : The drive must be mounted.

params: driveName, directCheck

$ luna-send -n 1 -f luna://com.webos.service.pdm/getSpaceInfo '{}'
isWritableDrive publiccom.webos.service.pdm

Checks the file system attribute of the drive and returns whether it is writable.

params: driveName

$ luna-send -n 1 -f luna://com.webos.service.pdm/isWritableDrive '{}'
mountandFullFsck publiccom.webos.service.pdm

Mounts the device without performing Fsck. Alternatively, it can be configured to perform Fsck and then mount the device.

params: mountName, needFsck

$ luna-send -n 1 -f luna://com.webos.service.pdm/mountandFullFsck '{}'
setVolumeLabel publiccom.webos.service.pdm

Sets the volume label of the drive. It is supported only when file system type is FAT.

params: driveName, volumeLabel

$ luna-send -n 1 -f luna://com.webos.service.pdm/setVolumeLabel '{}'
umountAllDrive publiccom.webos.service.pdm

Unmounts all drives.

$ luna-send -n 1 -f luna://com.webos.service.pdm/umountAllDrive '{}'
device/copy publiccom.webos.service.storageaccess

Copies a file or directory from the source location to the destination.

params: srcStorageType, srcDriveId, srcPath, destStorageType, destDriveId, destPath, overwrite, subscribe

$ luna-send -n 1 -f luna://com.webos.service.storageaccess/device/copy '{}'
Before you run anything. Methods marked dangerous can change, reset or break things on the TV. Running one from here is exactly as safe as typing the same luna-send yourself. See dangerous.md.

Other categories