位置: 编程技术 - 正文

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)

  • 动产增值税可以抵扣吗
  • 个人出售满两年和不满两年的住
  • 积分兑换开始啦
  • 冲减营业税金及附加的分录
  • 收到投资款需要缴纳什么税
  • 调整以前年度递延收益确认收入账务处理
  • 住房公积金比例一般是多少
  • 以前年度资产损失的追补什么意思
  • 子公司注销资产负债表如何合并
  • 公司先注册实收资本后付账该如何做会计处理呢?
  • 由母公司承担子公司债务的财务处理怎么做?
  • 担保公司做担保怎么收费
  • 价内税和价外税名词解释
  • 注册资本需要
  • 小规模没有进项可以开发票吗
  • 转让集体土地所有权
  • 接受捐赠收入要计入企业所得税应纳税所得额吗
  • 先抵押 后租赁
  • 亏损企业是否可以上成长板
  • 工会费是税前扣除还是税后扣除
  • 增值税影不影响企业利润
  • 第一次申领发票可以增额吗?
  • 会计新手入门
  • 职工养老金怎么交费
  • 汇算清缴工资调增,账务要处理吗
  • 生产企业出口需要什么手续
  • 向境外分配股息怎样算税额
  • 经费支出渠道
  • 福利费需要扣税吗
  • 鸿蒙系统怎么设置桌面小组件
  • 保总保安服务有限公司
  • 将现金存入银行,登记银行存款日记账的依据一般是
  • PHP:parse_ini_file()的用法_Filesystem函数
  • 企业缴纳保险的比例
  • 前端基础入门
  • patriotic研究
  • 深究Python中的asyncio库-线程同步
  • mac安装步骤
  • dedecms5.7
  • 政府奖励收入会计分录
  • 获取sqlsession
  • sqlserver英文发音
  • 其他应付款科目贷方登记发生的各种应付
  • 库存现金错账怎么调整
  • 金融企业里面的债务
  • 员工垫付款报销单
  • 简易征收的项目进项税可以抵扣吗
  • 收到代持股权的账务处理
  • 积分兑换如何做表格分析
  • 差旅费中住宿费的标准是什么
  • 企业垃圾桶
  • 关于园林绿化经济的论文
  • 明细账的建账
  • 在linux系统中安装软件
  • Mac如何使用clash上外网
  • 主板bios恢复出厂默认设置方法
  • windows用户如何添加新用户账户信息
  • macbookzen
  • win10怎么变回系统默认字体
  • cocos2dx解密
  • 对用药方案做合理性评估时
  • node.js报错
  • perl遍历哈希
  • js设计模式有什么用
  • javascript entries
  • javascript学习指南
  • JavaScript split()使用方法与示例
  • viewpager2 bug
  • javascript要怎么学
  • python中遍历
  • 安卓手机如何查
  • 江西税收优惠
  • 税务局如何查询社保明细
  • 深圳车牌注销需要车辆到场吗
  • 电子客票号码8768是什么
  • 甘肃税务网上办税服务厅
  • 广州地税网上服务大厅地址
  • 上海增值税发票抵扣
  • 银元面值有哪些种类
  • 税务总局四个确保
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设