mkfs.vfat: /dev/sda1 contains a mounted filesystem.
pi@raspberrypi:/mnt/sdcard $
2.格式化SD卡
sudo mkfs.vfat /dev/sda1
3.重新挂载SD卡
sudo mount -t vfat /dev/sda1 /mnt/sdcard/
查看SD卡的总的容量和已使用过的容量以及剩余可以使用的容量
df -h /dev/sda1
pi@raspberrypi:~ $ mount -h
Usage:
mount [-lhV]
mount -a [options]
mount [options] [--source]
pi@raspberrypi:~ $ umount -h
Usage:
umount [-hV]
umount -a [options]
umount [options] |
Unmount filesystems.
Options:
-a, --all unmount all filesystems
-A, --all-targets unmount all mountpoints for the given device in the
current namespace
-c, --no-canonicalize don't canonicalize paths
-d, --detach-loop if mounted loop device, also free this loop device
--fake dry run; skip the umount(2) syscall
-f, --force force unmount (in case of an unreachable NFS system)
-i, --internal-only don't call the umount. helpers
-n, --no-mtab don't write to /etc/mtab
-l, --lazy detach the filesystem now, clean up things later
-O, --test-opts limit the set of filesystems (use with -a)
-R, --recursive recursively unmount a target with all its children
-r, --read-only in case unmounting fails, try to remount read-only
-t, --types limit the set of filesystem types
-v, --verbose say what is being done
-q, --quiet suppress 'not mounted' error messages
-N, --namespace perform umount in another namespace
-h, --help display this help
-V, --version display version
For more details see umount(8).
1、java.lang.IllegalStateException: Class invariant violation
at org.apache.log4j.LogManager.getLoggerRepository(LogManager.java:199)at org.apache.log4j.LogManager.getLogger(LogManager.java:228)
at o
hadoop jps出现process information unavailable提示解决办法
jps时出现如下信息:
3019 -- process information unavailable3053 -- process information unavailable2985 -- process information unavailable2917 --
<?php
class Image{
private $path;
function __construct($path='./'){
$this->path=rtrim($path,'/').'/';
}
//水印函数,参数:背景图,水印图,位置,前缀,TMD透明度
public function water($b,$l,$pos