fdisk -l
登入USB (通常替USB取名為mnt)
mount /dev/sdb1/mnt
或是另一種方法
mount -t vfat /dev/sdb1 usb/
退出USB
umount /mnt
若是unmount無法順利退出,可以換個方法看看
sudo fuser -km /dev/sdb1
sudo umount /dev/sdb1
[root@master01 spark]# mkdir /mnt/usb
[root@master01 spark]# mount -v -t auto /dev/sdb1 /mnt/usb
mount: you didn't specify a filesystem type for /dev/sdb1
I will try type vfat
/dev/sdb1 on /mnt/usb type vfat (rw)
[root@master01 spark]# mount /dev/sdb1 /mnt/usb
mount: /dev/sdb1 already mounted or /mnt/usb busy
mount: according to mtab, /dev/sdb1 is already mounted on /mnt/usb
[root@master01 spark]# cd /mnt/usb/
[root@master01 usb]# ls
123.txt
[root@master01 usb]# cp 123.txt /mnt/usb /opt/spark/bin/examples/jverne/
快速檢查磁碟狀況
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_master01-lv_root
50G 2.7G 44G 6% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/sda2 477M 67M 385M 15% /boot
/dev/sda1 200M 260K 200M 1% /boot/efi
/dev/mapper/vg_master01-lv_home
378G 1.4G 357G 1% /home
/dev/sdb1 7.5G 5.2G 2.3G 70% /home/hduser/usb
/dev/sdc1 7.5G 5.2G 2.3G 70% /home/hduser/usb
vi 與 vim 的指令整理
http://www.vixual.net/blog/archives/234
壓縮和解壓縮的指令整理
http://www.centoscn.com/CentOS/help/2014/0613/3133.html
強制關機
shutdown -f
現在關機
shutdown -h now
shutdown -f
現在關機
shutdown -h now
沒有留言:
張貼留言