e2label , fstab, mkfs, partprobe, fdisk

[root@ocm raw]# cat /etc/fstab
LABEL=/1                /                       ext3    defaults        1 1
LABEL=/u01              /u01                    ext3    defaults        1 2
LABEL=/u02              /u02                    ext3    defaults        1 2
LABEL=/iso              /iso                    ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-hda3         swap                    swap    defaults        0 0

[root@ocm raw]# cat /etc/mtab
/dev/sda1 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/sda5 /u01 ext3 rw 0 0
/dev/sda11 /u02 ext3 rw 0 0
/dev/sda2 /iso ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0


[root@ocm raw]# cat /etc/sysconfig/rawdevices
# raw device bindings
# format:  <rawdev> <major> <minor>
#          <rawdev> <blockdev>
# example: /dev/raw/raw1 /dev/sda1
#          /dev/raw/raw2 8 5
/dev/raw/raw1   /dev/sda6
/dev/raw/raw2   /dev/sda7
/dev/raw/raw3   /dev/sda8
/dev/raw/raw4   /dev/sda9
/dev/raw/raw5   /dev/sda10


use e2label /dev/sda11 /u02 to mark the label for /dev/sda11 ,otherwise the server will halt for failing to check the label.

use partprobe to make the kernel know the current partition after fdisk

use mkfs.ext3 -L /u02 /dev/sda10 will label the device when formatting the device.

when error rasied "Partition table entries are not in disk order " during a fdisk operation , enter x into "extra functionality (experts only) mode " and press f  " fix partition order"


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值