2

タブレットに入れたSDカードをマウントしようとしています。SDカードはext2形式です。タブレットのターミナルアプリで次のコマンドを使用してBusyBoxを使用してみました。

busybox mkfs.ext2

しかし、コマンドにいくつかの引数を追加する必要があるようです。どのコマンドを追加する必要がありますか?または、SDカードをマウントする簡単な方法はありますか?

データがあるのでSDカードをフォーマットしたくありません。しかし、ext2形式として読み取るために必要なものは何でも問題ありません。

4

2 に答える 2

2

ファイルシステムを作成するのではなく、ext2ファイルシステムをマウントする必要があります。

タブレットによっては、/dev内のデバイスが私の例とは異なる場合があります。しかし、一般的には、同様のコマンドを実行する必要があります。

busybox mount -t ext2 /dev/block/vold/179:2 /data/sd-ext

ここで、/ dev / block / vold / 179:2 は、マウントしようとしているデバイスです。

/ data / sd-extは、SDカードをマウントするパスです。

これがmountコマンドのヘルプページです

1|shell@android:/ $ busybox mount -t
option requires an argument -- t
BusyBox v1.20.0.git (2012-03-21 01:44:00 GMT) multi-call binary.

Usage: mount [OPTIONS] [-o OPTS] DEVICE NODE

Mount a filesystem. Filesystem autodetection requires /proc.

    -a      Mount all filesystems in fstab
    -f      Dry run
    -i      Don't run mount helper
    -r      Read-only mount
    -w      Read-write mount (default)
    -t FSTYPE[,...] Filesystem type(s)
    -O OPT      Mount only filesystems with option OPT (-a only)
-o OPT:
    loop        Ignored (loop devices are autodetected)
    [a]sync     Writes are [a]synchronous
    [no]atime   Disable/enable updates to inode access times
    [no]diratime    Disable/enable atime updates to directories
    [no]relatime    Disable/enable atime updates relative to modification time
    [no]dev     (Dis)allow use of special device files
    [no]exec    (Dis)allow use of executable files
    [no]suid    (Dis)allow set-user-id-root programs
    [r]shared   Convert [recursively] to a shared subtree
    [r]slave    Convert [recursively] to a slave subtree
    [r]private  Convert [recursively] to a private subtree
    [un]bindable    Make mount point [un]able to be bind mounted
    [r]bind     Bind a file or directory [recursively] to another location
    move        Relocate an existing mount point
    remount     Remount a mounted filesystem, changing flags
    ro/rw       Same as -r/-w

There are filesystem-specific -o flags.
于 2012-08-17T21:27:31.967 に答える
1

する必要がありますbusybox mount /dev/block/something /mountpoint。Windowsmkfsのようにファイルシステムを作成しますformat

http://www.busybox.net/downloads/BusyBox.html#mount

または、SDカードをマウントする簡単な方法はありますか?

通常は自動的に発生しますbusybox mount。引数なしで、すでにどこかにマウントされているかどうかを確認してください。

于 2012-08-17T21:25:58.600 に答える