2007年5月11日 星期五

Linux Command - mount

nroff -ms orig-file
orig-file 是ㄧ個尚未格式化過的檔案, 內容類似這樣
.in 0
.ne 4
Copyright Notice
.sp
.in 3
Copyright (C) The Internet Society (2003). All Rights Reserved.
in 0
.ne 4
Abstract
.sp
.in 3
This document describes methods
by which peer-to-peer (P2P) applications

經過nroff 轉檔後的結果,
.sp ==> 表示ㄧ行空白行
.in N ==> 表示下面的文字 right shift N 個字元
.ne N ==> 應該是厎下面文字的 font size (我猜的), 不過因為 nroff 不支援, 其他版本的roff (e.g. groff) 才有支援
Copyright Notice

Copyright (C) The Internet Society (2003). All Rights Reserved.

Abstract

This document describes methods by which peer-to-peer (P2P) applications

// mount command 的用法
// mount windows directory In the Linux shell

mount -t smbfs -o username=sophia,password=,debug=4 //192.168.17.178/Upload /mnt/sophia/

// mount usb drive as linux directory, default will use fat/vfat file system
# mount /dev/sdb1 /mnt/usbflash

# mount
[omit]
/dev/sdb1 on /mnt/usbflash type vfat (rw)

==>Show the mounted devices
# cat /proc/partitions
major minor #blocks name

8 16 488386560 sdb
8 17 512000 sdb1
8 18 487873536 sdb2
253 0 1540096 dm-0
253 1 52428800 dm-1
253 2 433881088 dm-2
8 32 15687680 sdc ==> Our usb device
8 33 15683584 sdc1

[root@vincentlin /]# mount -t ntfs-3g /dev/sdc1 /mnt/usb/