Wednesday, November 19, 2008

[工作] linux and volume

查看磁盘的分区情况:
# sudo fdisk -l

格式化分区:
# sudo mkfs.ext3 /dev/sdb6

得到分区的uuid号:
# sudo vol_id /dev/sdb6

增加uuid到fstab中

mount加新的分区:
# sudo mount -a

竟然出错!! 报:
/dev/disk/by-uuid/xxxxxxxx (uuid号码)

google说要reboot, 没理由吧, 这不是linux的风格, 经好友推介如下两命令:

# sudo blkid
# sudo udevtrigger


再次
# mount -a
ok

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.