Android 使用BusyBox安装ext2 sd卡
我正试图安装一个sd卡,我把它放在我的平板电脑上。sd卡是ext2格式的。我尝试在平板电脑的终端应用程序中使用BusyBox,命令如下:Android 使用BusyBox安装ext2 sd卡,android,busybox,Android,Busybox,我正试图安装一个sd卡,我把它放在我的平板电脑上。sd卡是ext2格式的。我尝试在平板电脑的终端应用程序中使用BusyBox,命令如下: busybox mkfs.ext2 但我似乎需要在命令中添加一些参数。我需要添加哪些命令?还是有更简单的方法来安装sd卡 我不想格式化sd卡,因为上面有数据;但不管怎样,把它读成ext2格式都是可以的 应该是busybox mount/dev/block/something/mountpointmkfs在Windows中创建类似format的文件系统 还是
busybox mkfs.ext2
但我似乎需要在命令中添加一些参数。我需要添加哪些命令?还是有更简单的方法来安装sd卡
我不想格式化sd卡,因为上面有数据;但不管怎样,把它读成ext2格式都是可以的 应该是
busybox mount/dev/block/something/mountpoint
mkfs
在Windows中创建类似format
的文件系统
还是有更简单的方法来安装sd卡
这通常是自动发生的,如果busybox mount已安装在某个位置,请在不带参数的情况下检查它。您需要安装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.
“某物”和“挂载点”使用什么值?我怎么才能弄清楚呢?@zapl:但这不是一个只能由超级用户执行的操作吗?@user2284570也许是。但是,如果您成功安装了busybox,您可能有root用户。@zapl:没有。。。安装busybox。如何确定设备id?1.)拔下SD卡2.)ls/dev/block 3.)插入SD卡4.)ls/dev/block 5.)比较以查看显示的内容我认为dmesg也会提供您所需的信息。插入SD卡,将adb外壳插入设备并键入dmesg