MFS shell commands and multiple MFS file systems

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MFS shell commands and multiple MFS file systems

ソリューションへジャンプ
2,791件の閲覧回数
pbanta
Contributor IV

With MQX 3.8.1 on a K70 I have two MFS filesystems created in this order:

1.  a: is installed on a RAM disk

2.  c: is installed on an SD card

Through a telnet shell I'm trying to use the MFS shell commands to test file creation/read/write/delete on the SD card.  The only command that seems to recognize the c: filesystem is df.  Other commands, like "create" and "dir" seem to only work with the first file system they find. See the shell output below.

shell> df a:

Free disk space on a:

2033 clusters, 512 bytes each

1016 KB

shell> df b

Error, file system not mounted

shell> df c:

Free disk space on c:

975594 clusters, 4096 bytes each

3902376 KB

shell> create a:test.txt

Error, unable to open file a:test.txt.

shell> create c:test.txt

Error, unable to open file c:test.txt.

shell> create test.txt

shell> dir

TEST.TXT            0 01-01-1980 00:03:16      A TEST.TXT

shell> dir a:

shell> dir c:

shell>

A little background:

I have partitioned and formatted the SD card with MQX/MFS.  I know that in my SD card init function I can create a file successfully.  I can then put the card in a PC and see the file I created.  It's just that from the MQX shell that not all of the MFS shell commands seem to work.  I must have something mis-configured. 

Any ideas?

Paul


ラベル(1)
タグ(3)
0 件の賞賛
返信
1 解決策
1,613件の閲覧回数
BryGuyH
Contributor IV

The shell functions don't accept absolute paths. Change directories first using cd to the root directory of the drive you're interested in.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,614件の閲覧回数
BryGuyH
Contributor IV

The shell functions don't accept absolute paths. Change directories first using cd to the root directory of the drive you're interested in.

0 件の賞賛
返信
1,613件の閲覧回数
pbanta
Contributor IV

Bingo.  Thank you so much.

Maybe I spoke too soon...

I can change directory and see files on the SD card using "dir", but I still can't create files.  The file system can't be read-only because I can create a file during the init, but not later.

Message was edited by: Paul Banta

0 件の賞賛
返信
1,613件の閲覧回数
BryGuyH
Contributor IV

Try to copy or compare two files on the drive to see if at least you can read from it.

0 件の賞賛
返信
1,613件の閲覧回数
pbanta
Contributor IV

I can't read from a file.  I put an s-record file on the SD card using the card reader attached to my PC.  I tried the "type" command to dump the file and my board crashed.  I'll keep looking.

0 件の賞賛
返信