1.关机接好第二块SCSI硬盘

2.开机进入linux系统,输入fdisk -l 或者dmesg |grep sdb(这个命令会显示本机第2块硬盘的信息)

3.fdisk /dev/sdb

[root@oracleDB ~]# fdisk /dev/sdb

The number of cylinders for this disk is set to 1044.

There is nothing wrong with that, but this is larger than 1024,

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)

Command (m for help): m

Command action

a   toggle a bootable flag

b   edit bsd disklabel

c   toggle the dos compatibility flag

d   delete a partition

l   list known partition types

m   print this menu

n   add a new partition

o   create a new empty DOS partition table

p   print the partition table

q   quit without saving changes

s   create a new empty Sun disklabel

t   change a partition's system id

u   change display/entry units

v   verify the partition table

w   write table to disk and exit

x   extra functionality (experts only)

Command (m for help): n

Command action

e   extended

p   primary partition (1-4)

1

Invalid partition number for type `1'

Command action

e   extended

p   primary partition (1-4)

p

最后保存 w

然后fdisk -l

会看到/dev/sdb1这个分区

下面把这个分区格式化成ext3格式

然后格式化分区,创建文件系统

mkfs -t ext3 /dev/sdb5,等一会儿就完成了。

创建mount point:

#cd /

#mkdir app

测试是否MOUNT

#mount -t ext3 /dev/sdb5   /app

一举成功。

#umount   /app

最后修改/etc/fstab,增加一行:

/dev/sdb5   /app ext3 default 1 2

保存后运行命令

mount -a

结果ok, cd /app 发现了lost+found。

#p#副标题#e#

------------------------------------------------------------------------------------------------------------------------------

Linux下添加一块硬盘,划分2个分区

------------------------------------------------------------------------------------------------------------------------------

[root@OracleDB ~]# fdisk -l

Disk /dev/sda: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start   End      Blocks   Id System

/dev/sda1   *     1    13      104391   83 Linux

/dev/sda2  14    78      522112+ 82 Linux swap / Solaris

/dev/sda3  79   116      305235   83 Linux

/dev/sda4 117  1044     7454160    5 Extended

/dev/sda5 117  1044     7454128+ 83 Linux

Disk /dev/sdb: 4294 MB, 4294967296 bytes

255 heads, 63 sectors/track, 522 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

[root@OracleDB ~]# fdisk /dev/sdb

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel. Changes will remain in memory only,

until you decide to write them. After that, of course, the previous

content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): m

Command action

a   toggle a bootable flag

b   edit bsd disklabel

c   toggle the dos compatibility flag

d   delete a partition

l   list known partition types

m   print this menu

n   add a new partition

o   create a new empty DOS partition table

p   print the partition table

q   quit without saving changes

s   create a new empty Sun disklabel

t   change a partition's system id

u   change display/entry units

v   verify the partition table

w   write table to disk and exit

x   extra functionality (experts only)

Command (m for help): n

Command action

e   extended

p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-522, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-522, default 522):

Using default value 522

Command (m for help): p

#p#副标题#e#

Disk /dev/sdb: 4294 MB, 4294967296 bytes

255 heads, 63 sectors/track, 522 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start   End      Blocks   Id System

/dev/sdb1   1   522     4192933+ 83 Linux

Command (m for help): q

[root@OracleDB ~]# demsg /dev/sdb

bash: demsg: command not found

[root@OracleDB ~]# demsg

bash: demsg: command not found

[root@OracleDB ~]# clear

[root@OracleDB ~]# fdislk -;

bash: fdislk: command not found

[root@OracleDB ~]# fdisk -l

Disk /dev/sda: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start   End      Blocks   Id System

/dev/sda1   *     1    13      104391   83 Linux

/dev/sda2  14    78      522112+ 82 Linux swap / Solaris

/dev/sda3    &n 关键词标签:Linux,scsi硬盘

Linux增加一块scsi硬盘,Linux下添加第二块scsi硬盘相关推荐

  1. linux挂载硬盘读写,mount 挂载第二块硬盘,普通用户可以读写

    vmware虚拟机中安装的debian5.0系统使用过程中发现硬盘空间不足,因此创建了第二块scsi硬盘,创建过程由于比较简单就不贴图耽误大家时间了. 接下来格式化硬盘分区为ext2文件系统(创建硬盘 ...

  2. 在OCI中为计算实例添加第二块网卡

    一个虚机可以添加两块VNIC,而且这两个VNIC可以来自不同的VCN. 建立两个VCN,分别为10.0.0.0/16(VCN1)和192.168.0.0/16(VCN2) 建立虚机vm1,关联VCN1 ...

  3. 重装win10系统后不识别第二块光驱硬盘

    当时想的可能是光驱接口类型的问题,因为进入bios发现sata类型只有ahci.后来上网看到一个解决方案,即将第二块光驱硬盘放到第一块主硬盘后开机重装系统,然后再放回原处即口.

  4. linux增加阵列磁盘空间,Linux Ubuntu系统下通过LVM创建软raid来实现硬盘合并大小

    将两块空硬盘合并为"一块",挂载到指定目录下,达到在一个目录使用3块硬盘所有空间的效果. 条件: 硬盘1 /dev/sda 硬盘2 /dev/sdb 硬盘3 /dev/sdc 方法 ...

  5. linux 创建分区 4t,CentOS6.6添加两块4T硬盘过程记录

    市场部门平时存储视频文件比较多,原来的2T硬盘已经快填满,新近买了两块4T硬盘做samba共享使用. 记录一下过程: 1.关机,拆机,装硬盘,装机,接线,开机,这些就不说了,做运维的应该都会. 2.直 ...

  6. linux 增加交换空间,在linux上增加swap交换空间

    增加交换空间有两种方法: 严格的说,在系统安装完后只有一种方法可以增加swap,那就是本文的第二种方法, 至于第一种方法应该是安装系统时设置交换区. 1.使用分区: 在安装OS时划分出专门的交换分区, ...

  7. Ubuntu下挂载第二块硬盘办法

    一.关于挂载第二块硬盘的问题:(对网上教程的更正) 教程如下: *************************************************教程内容*************** ...

  8. 给笔记本添加第二块显示屏

    最近忙着赶论文,但是又喜欢看电影,笔记本同时开word看电影实在太挤,看着难受.于是想起以前玩树莓派的一块7寸屏幕,打算拓展成笔记本的第二块显示屏.很简单,完工后如下. 外接的显示屏实际是笔记本屏幕右 ...

  9. linux ubuntu 添加第二块硬盘,将ubuntu设置为NAS——2. 新增硬盘挂载

    将ubuntu设置为NAS--2. 新增硬盘挂载 2019-10-02 16:07:39 19点赞 106收藏 12评论 前言 想通过本平台记录一些折腾小主机的过程,同时方便自己查阅,还能赚点金币,于 ...

  10. linux增加 编译选项,4. CMake 系列 - 项目添加编译选项

    1. 项目目录结构 test3 ├── add │?? ├── add.c │?? ├── add.h │?? └── CMakeLists.txt ├── build ├── CMakeLists. ...

最新文章

  1. windows安装MongoDB环境以及在pycharm中配置可视化插件
  2. 韩顺平老师 Mysql优化 笔记
  3. Freemarker的Null处理
  4. java设计模式之责任链模式以及在java中作用
  5. Java EE 7 / JAX-RS 2.0 – REST上的CORS
  6. 在Python中定义和使用抽象类的方法
  7. JQuery点击收起,点击展开以及部分非空小验证
  8. 你做过的第一次事情有什么有趣的事吗?
  9. rpm常用命令集合1
  10. Qt5中this application has requested the runtime to terminate it in an unusual way 无法运行问题的解决
  11. PDFlib使用(c++)
  12. sql语句查询时,where条件同时使用and和or
  13. CAS单点登录-密码管理(十三)
  14. 阿里云ECS服务器配置全攻略
  15. 物质模拟器3.0版,变得彩色
  16. matlab回归分析sst_线性回归(2)—— 模型评估
  17. 小论文格式要求(2010年版)
  18. Mac 安装homebrew
  19. USACO-Shaping Regions
  20. 最新使用Mac自带的启动转换助理(Boot Camp)安装Windows10的详细方法教程-macbookpro 10.13.4

热门文章

  1. “欢迎来到智能城市,我是小武”
  2. 排序算法之python实现(上)
  3. 计算机科班比其他专业有多少优势呢?
  4. 中南大学计算机大一学什么时候发,中南大学计算机学院2019年夏令营
  5. kali流量转发后依然断网_虚拟运营商流量卡列表
  6. 知乎周源:知识变现背后的信息逻辑
  7. 分智评25位最受欢迎CEO 微软中国梁念坚居首
  8. 英飞凌磁传感器 TLE5012b STM32F103 SPI 程序说明
  9. 一文带你深入了解 SaaS(软件即服务) 的架构设计
  10. pdfpcell输出换行_fpdf 的cell 中文自动换行问题