位置: 编程技术 - 正文

CentOS下添加新硬盘并分区格式化的详细步骤(centos5.5加固)

编辑:rootadmin
下面看我操作的步骤:1.先用Fdisk -l 来查看当前状态下磁盘情况 [root@linux1 ~]# fdisk -lDisk /dev/hda: MB, bytes heads, sectors/track, cylindersUnits = cylinders of * = bytesDevice Boot Start End Blocks Id System/dev/hda1 * 1 Linux/dev/hda2 8e Linux LVMDisk /dev/hdb: MB, bytes heads, sectors/track, cylindersUnits = cylinders of * = bytesDisk /dev/hdb doesn't contain a valid partition table上面红色标识行可以看出,我添加了一块新硬盘/dev/hdb,大小为2G,未分区格式化状态。 2.用Fdisk /dev/hdb来进行分区操作。 [root@linux1 ~]# fdisk /dev/hdbDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel. Changes will remain in memory only,until you decide to write them. After that, of course, the previouscontent won't be recoverable. The number of cylinders for this disk is set to .There is nothing wrong with that, but this is larger than ,and could in certain setups cause problems with:1) software that runs at boot time (e.g., old versions of LILO)2) booting and partitioning software from other OSs(e.g., DOS FDISK, OS/2 FDISK)Warning: invalid flag 0x of partition table 4 will be corrected by w(rite) Command (m for help): n //输入N表示新建一个分区Command actione extendedp primary partition (1-4)p //p 表示建立一个原始分区Partition number (1-4): 1 //1 表示此分区编号为1.First cylinder (1-, default 1): 1 //1表示使用默认起始柱面号.如果要分多个区的话,先盘算好要多大,再输入数字Last cylinder or size or sizeM or sizeK (1-, default ): // 输入: 回车 表示使用默认结束柱面号.即此分区使用整个硬盘空间 Using default value Command (m for help): w //保存分区 The partition table has been altered! Calling ioctl() to re-read partition table.Syncing disks. 3.再次查看当前分区状态:[root@linux1 ~]# fdisk -l Disk /dev/hda: MB, bytes heads, sectors/track, cylindersUnits = cylinders of * = bytes Device Boot Start End Blocks Id System/dev/hda1 * 1 Linux/dev/hda2 8e Linux LVM Disk /dev/hdb: MB, bytes heads, sectors/track, cylindersUnits = cylinders of * = bytes Device Boot Start End Blocks Id System/dev/hdb1 1 Linux可以看出,已经出来了一个/dev/hdb1的新分区。下一步将其格式化,再使用 4.用mkfs.ext3格式化新分区[root@linux1 ~]# mkfs.ext3 /dev/hdb1mke2fs 1. (-May-)Filesystem label=OS type: LinuxBlock size= (log=2)Fragment size= (log=2) inodes, blocks blocks (5.%) reserved for the super userFirst data block=0Maximum filesystem blocks= block groups blocks per group, fragments per group inodes per groupSuperblock backups stored on blocks:, , , , Writing inode tables: doneWriting superblocks and filesystem accounting information: done This filesystem will be automatically checked every mounts or days, whichever comes first. Use tune2fs -c or -i to override. 5.挂载使用。[root@linux1 ~]# mkdir /mnt/hdb1 //新建一个挂载点。[root@linux1 ~]# mount /dev/hdb1 /mnt/hdb1 //挂载。[root@linux1 ~]# df -h文件系统 容量 已用 可用 已用% 挂载点/dev/mapper/VolGroup-LogVol.3G 3.6G M % //dev/hda1 M M M % /boottmpfs M 0 M 0% /dev/shm/dev/hdb1 2.0G 3.0M 1.9G 1% /mnt/hdb1 6 .开机自动挂载三.设置新硬盘开机自动挂载在vi /etc/fstab中添加新硬盘的挂载信息.添加下面一行:/dev/hdb1 /mnt/hdb1 ext3 defaults 1 2(如果还有一个分区就是1 3,以此类推)这样,每次开机后,系统会自动将/dev/hdb1挂载到/mnt/hdb1

推荐整理分享CentOS下添加新硬盘并分区格式化的详细步骤(centos5.5加固),希望有所帮助,仅作参考,欢迎阅读内容。

CentOS下添加新硬盘并分区格式化的详细步骤(centos5.5加固)

文章相关热门搜索词:centos7添加新硬盘然后分区,centos5.5加固,centos7添加新硬盘然后分区,centos7添加新硬盘然后分区,centos添加新用户,centos添加新用户,centos添加硬盘分区,centos添加新用户,内容如对您有帮助,希望把文章链接给更多的朋友!

Centos设置静态IP及修改Centos配置文件的方法 特别值得一提的是Centos设置IP有很多值得学习的地方,这里我们主要介绍Centos设置静态IP,包括介绍Centos配置文件,CentOS系统TCP/IP网络配置、系统引导和

CentOS 6.2(位/位) 安装步骤图文详解 一、CentOS简介CentOS是Linux的发行版之一,它安全、稳定、高效,是我最喜欢的Linux发行版之一。CentOS根据RedHatEnterpriseLinux开放源代码编译而成,与RedHatLinu

RedHat Linux5.5下Oracle g安装图解教程 Linux下安装Oracle系统最好是1G内存,2G的swap空间,硬盘至少需要4.5G空间。至少环境在LinuxServerrelease5.3以上如果是LinuxServerrelease5.1,改装oracle.2g吧一、查

标签: centos5.5加固

本文链接地址:https://www.jiuchutong.com/biancheng/357326.html 转载请保留说明!

上一篇:centos网络配置方法(手动设置,自动获取)(centos6.6网络配置)

下一篇:Centos设置静态IP及修改Centos配置文件的方法(centos7.5设置静态ip)

  • 水利建设专项基金的税率
  • 赠送商品如何做账
  • 不动产租赁可以加计扣除吗
  • 企业购进材料入什么账户
  • 其他应付款属于哪类
  • 差旅费过路费会计分录
  • 所得税汇算清缴捐赠支出扣除标准
  • 空调属于固定资产类别的什么
  • 开具红字增值税专用发票的条件
  • 经常性支出是什么意思
  • 商标转让所需要的材料
  • 怎么分清复利和年金
  • 招标代理公司转让
  • 装修未付款的会计分录
  • 筹资活动现金净流量为正说明什么
  • 增值税发票价税合计是什么意思
  • 托儿所幼儿园卫生保健工作规范2022
  • 企业的主营业务收入
  • 营改增后二手固定资产折旧纳税调整怎么做账?
  • 网店提现要多久能到账
  • 免税和零税率和税率区别
  • win10怎么建立多个用户
  • Win11如何卸载microsoft edge浏览器
  • 公司员工私车公用协议要签吗
  • 法人向公司借款要交什么税
  • 冲回暂估分录
  • nrm报错
  • 什么企业需要预缴所得税
  • 北极光下的众神图片
  • php过滤字符
  • php 替换字符
  • web前端开发html代码
  • vue开发教程
  • pyqt 菜单
  • 发票校验码是什么在哪
  • 工程发票需要备注吗
  • 去年多计提的工资今年怎么冲
  • mongodb的分片集群的组成部分
  • 管理费用二级科目明细可以自己设置吗
  • 厂房办公用品费用怎么算
  • 收购企业怎么做账
  • 小型公司怎么做账
  • 货到票未到的会计分录怎么做
  • 差额征税小规模纳税人免税销售额栏次
  • 劳务费怎么要的回来
  • 工会经费多久缴纳一次
  • 销售代销货物会计处理
  • 附加税税率是指
  • 个体户也需要纳税吗
  • 出口不报关账务处理
  • 过路费发票抵扣政策
  • 失控发票未付款什么意思
  • 小规模纳税人购进商品会计分录
  • 应付账款账面价值怎么算
  • 如何开展服务
  • 资产减值损失冲减
  • 私营企业固定资产法律制度
  • 通过MySQL优化Discuz!的热帖翻页的技巧
  • mysql数据库备份与恢复的常用方法有几种
  • mysql varchar2
  • myeclipse中连接数据库的地方在哪
  • win8系统如何安装软件
  • centos 拷贝
  • 虚拟机怎么安装exe文件
  • windowsxp打开注册表
  • centos启动按e没用
  • Extjs EditorGridPanel中ComboBox列的显示问题
  • 一行指令
  • unity3D游戏开发
  • Android HandlerThread 实例
  • windows2008 iis
  • 微信和qq时间格式不一样
  • shell脚本中获取日期
  • nodejs inspect
  • Unity for Absolute Beginners(三)
  • jquery实战
  • 养鱼业免增值税吗
  • 免租期算租赁期限吗
  • 深圳蛇口社保局在哪里
  • 计算出口退税的免抵税额,不计征城市维护建设税
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设