码迷,mamicode.com
首页 > 系统相关 > 详细

用shell脚本实现自动分区

时间:2015-12-10 09:40:16      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:shell fdisk

fdisk /dev/vdb <<EOF
n
p
1
1
+10G
n
p
2


p    
w
EOF

本文出自 “自动化rolin” 博客,请务必保留此出处http://luoguoling.blog.51cto.com/1568501/1721280

用shell脚本实现自动分区

标签:shell fdisk

原文地址:http://luoguoling.blog.51cto.com/1568501/1721280

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!