- * Entering and Exiting Shell
- Press
[s]
key to go into shell if the volume has been mounted. The shell is called FSTS(File System Test Shell).
This shell provides functionalities to check the file system operations.In the shell, all command (shell command) will be executed after pressing
[Return]
key.To exit from the shell, type
[e]
('e' for exit) and[Return]
key.
![]()
- * Shell basics
- FSTS a command line interface shell. It will show the "prompt" when it is ready to accept user command. The prompt will show you information of the storage.
In first bracket of prompt, the number shows the USB address of the storage device. The sample above, the storage device has the address 5. A string in next bracket shows current working directory path.
Display sample : "prompt"
Next string "fsts% " is the prompt for this shell.Typing "ls", the shell shows you the file list in the current directory. In this shell, all commands should be typed with lower case characters (the file name can be either upper or lower case.) The "ls" can have single argument to specify the directory path.
Unlike UNIX shell and DOS interface, FSTS does not support any regular expressions to specify the directory and filenames. So the all arguments for the commands must be exact path or file name.
In FSTS, the USB events are reported in the screen. The event reports will push out the current prompt and command line. But typing of the command is buffered internally, so the command is not required to re-type after the screen has been messed by events.
[2|/] fsts%
- * Shell commands
- List of available commands :
In the syntax sample, the arguments in parenthesis "[]" are option for the command.
e
exit FSTS.
any arguments are ignored.?
show help.
any arguments are ignored.h
show command history.
any arguments are ignored.i
show volume infomation.
any arguments are ignored.ls
list directory
Takes zero or one argument.
Shows list of the directory. The augument must be the direcrory name.
syntax ls [path_to_directory] cd
change directory.
Takes single argument as a destination directory.
If the path is not given, it works as pwd command.
syntax cd [path_to_directory] pwd
shows current working directory.
no arguments taken.rm
remove file or directory.
When the target is a file, it modifies file entry in the directory information. Also, the FAT entries will be cleared.If the target is a directory, it checks the contents of the directory first. if the directory is empty, it clears all FAT entries which is pointed by all removed file entries then removes the directory.
Takes one or more arguments.
syntax rm path [path2] [path3]... mkdir
make directory makes directory as specified with arguments.
syntax mkdir path [path2] [path3]... get
get file from storage device to local (PC).
One or two arguments can be used to set the file name.If one argument is given, the same file name will be used for the new file on the local directory. If the second argument is given, it will be the file name of target.
syntax get path [path2] put
put file from local (PC) to storage device.
Function is the same as "get", but it copies a file in reverse direction.
syntax put path [path2] play
Plays music stored in the media.
If the data rate of the drive is not sufficient for the play, the playing will be aborted when the buffer is empty in the "sing" module in WASABI.
The argument must be "*.WAV" file. The file must be in format defined WASABI user manual.
syntax play path_to_WAV_format_file
- NOTE :
- Use a media which is formatted large cluster size. 4KB cluster size is recommened to use this audio function. I tried with 64MB media which was formatted with WinXP default cluster size 2 (1KB cluster). The playback could not continue the reading in enough speed. WASABI is buffering the data in cluster size. So bigger cluster size can minimize the media access overhead.
format
Format the storage media.
This command doesn't care about the capacity of the media.
It always formats the media in FAT16 with sector/cluster ratio 8.dump
this command dumps the data from storage media to local.
The dumped data is stored in the file named "storage.txt" in local current directory.Two arguments can be given as dump starting sector and sector size.
If those parameter are not given, the command will use default values (start sector = 0, sector length = 1024)cs
convert cluster to sector.
This command prints sector number. It is converted from sector number.
The single argument will be taken.
The cluster number needs to be given as hexadecimal number ("0x" prefix should not be used.)