Beruflich Dokumente
Kultur Dokumente
文件系统
周炯
上海艾基信 息技术有限 公司
# /sbin/fdisk /dev/sde
Command (m for help): n
Command action
e extended
p primary partition (1-4)
e
Partition number (1-4): 1
First cylinder (1-1020, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-1020,
default 1020): 1020
Read
Process Disk file
Acegene IT Co. Ltd. 24
创建裸 设备
• Create partitions of type “Linux” (type
id=83)
• Use /sbin/raw to bind raw device with a
partition
• Examples:
– # /sbin/raw /dev/raw/raw1 /dev/sdc1
– # /sbin/raw /dev/raw/raw1 8 33
• Give oracle user ownership of raw device:
– # chown oracle:dba /dev/raw/raw1
• Bindings are not persistent across reboot
– Use /etc/sysconfig/rawdevices
• 挂载 samba 文件
mount -t smbfs -o username=usr,password=pwd //host/folder /[dir]
Etc/fstab:
//host/folder /dir smbfs username=user,password=pwd 1 2
Mount dir
• 挂载 NFS 文件
mount [host]:/[dir] /[dir]
• 挂载命令 :
– mount /oracle
– mount /dev/sdb1