linux挂载固硬盘装,linux下安装新硬盘并挂载mount
linux下安装新硬盘并加载使用手记
================================================================================
一、过程步骤
1、#kudzu //检测新硬件,这一步必须!
2、#fdisk -l //查看是否找到新的硬盘,查看硬盘代号。
3、#fdisk /dev/sdb //为新硬盘分区,例如分成sdb1
#mkfs.ext3 /dev/sdb1 //把新硬盘格式化成ext3格式
4、#mkdir /disk2 //创建新的挂载点
5、#mount /dev/sdb1 /disk2/ //手动挂载分区,把硬盘挂到/disk2目录下。
6、#vi /etc/fstab
/dev/sdb1 /disk2 ext3 auto 1 2 //设置为开机自动挂载分区。
二.详细过程
2、
查看硬盘代号
[root@AMD-LINUX ~]# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×0007d856
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 1305 10281600 8e Linux LVM
Disk /dev/sdb: 2147 MB, 2147483648 bytes <=新硬盘
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×00000000
Disk /dev/sdb doesn’t contain a valid partition table
Disk /dev/dm-0: 9395 MB, 9395240960 bytes
255 heads, 63 sectors/track, 1142 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×00000000
Disk /dev/dm-0 doesn’t contain a valid partition table
Disk /dev/dm-1: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×30307800
Disk /dev/dm-1 doesn’t contain a valid partition table
3、fdisk 分区
[root@AMD-LINUX ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0×623223a1.
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 0×0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p <=显示信息
Disk /dev/sdb: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×623223a1
Device Boot Start End Blocks Id System
Command (m for help): n <=新建分区
Command action
e extended
p primary partition (1-4)
p <=新建主分区
Partition number (1-4): 1 <=分区号为1,即/dev/sdb1
First cylinder (1-261, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-261, default 261):
Using default value 261
Command (m for help): p <=显示分区信息
Disk /dev/sdb: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×623223a1
Device Boot Start End Blocks Id System
/dev/sdb1 1 261 2096451 83 Linux
Command (m for help): w <=保存退出
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
4、创建挂载点
[root@AMD-LINUX ~]# mkdir /disk2
[root@AMD-LINUX ~]# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×0007d856
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 1305 10281600 8e Linux LVM
Disk /dev/sdb: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×623223a1
Device Boot Start End Blocks Id System
/dev/sdb1 1 261 2096451 83 Linux
Disk /dev/dm-0: 9395 MB, 9395240960 bytes
255 heads, 63 sectors/track, 1142 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×00000000
Disk /dev/dm-0 doesn’t contain a valid partition table
Disk /dev/dm-1: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×30307800
Disk /dev/dm-1 doesn’t contain a valid partition table
[root@AMD-LINUX ~]# mke2fs -j /dev/sdb1
mke2fs 1.40.2 (12-Jul-2007)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
262144 inodes, 524112 blocks
26205 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=536870912
16 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
5、设置为开机自动挂载分区
[root@AMD-LINUX ~]# vi /etc/fstab
/dev/sdb1 /disk2 ext3 auto 1 2
6、手动挂载分区
[root@AMD-LINUX ~]# mount /dev/sdb1 /disk2/
linux挂载固硬盘装,linux下安装新硬盘并挂载mount相关推荐
- linux下安装新硬盘并挂载mount
一.过程步骤: 1.首先是添加新硬盘,本人是在虚拟机下添加的:VM >>Settings >> Hardware >> Add >> Hard Disk ...
- 512m硬盘装linux,硬盘装linux.doc
硬盘装linux 第一步:用PQ Magic(也可用其它分区工具)为Linux的安装划分出一块未分配硬盘空间(我的是11G):第二步:下载镜像文件(我下到的是FC-6-i386-DVD.iso):第三 ...
- u盘启动从硬盘装Linux,u盘启动从硬盘装linux系统教程
u盘启动从硬盘装linux系统教程 [2021-02-14 09:24:07] 简介: 系统运维 可以使用硬盘方式来安装6.8,但需要分EXT分区并需要把单独添加启动信息,比较复杂,建议使用U盘来做 ...
- Linux 在不重启的情况下识别新挂载的磁盘
在使用 Linux 时,有时候会因为初始时磁盘空间分配估计不足,使用中需要将挂载点扩容的情况,这就需要我们挂载新的磁盘.但是如果我们在 Linux 运行过程中挂载磁盘, Linux 又不能在不重启的情 ...
- mac硬盘故障升级系统_硬件升级:如何安装新硬盘,第2页,故障排除
mac硬盘故障升级系统 Last week we took a look at some of the basics to installing and upgrading a hard disk i ...
- CentOS下添加新硬盘并分区格式化
CentOS下添加新硬盘并分区格式化 1.先用fdisk -l 来查看当前状态下磁盘情况 上面红色标识行可以看出,我添加了一块新硬盘/dev/sdb,大小为350G,未分区格式化状态. 2.用Fdis ...
- 计算机机房分区,2021年高校计算机新建机房硬盘分区及软件安装计划硬盘分区教程win10.docx...
文档介绍: 高校计算机新建机房硬盘分区及软件安装计划硬盘分区教程win10 摘要:该文结合多年的工作实践,依据实际需求,为了更加好地服务于教学,对高校新建机房硬盘分区及软件安装两方面问题进行了认真地探 ...
- 怎么通过硬盘装linux系统文件下载,通过硬盘上的镜像文件安装Linux操作系统
关于,在不是用光驱情况下安装Linux方法 通过硬盘上的镜像文件安装Linux操作系统 如何在没有光驱.没有软驱.不能usb启动的情况下,进入dos硬盘安装linux系统?(当然,前提是已经有一个wi ...
- Linux下添加新硬盘,分区及挂载
重点:注意sdb和sdb1的区别 挂载好新硬盘后输入fdisk -l命令看当前磁盘信息 可以看到除了当前的第一块硬盘外还有一块sdb的第二块硬盘,然后用fdisk /dev/sdb 进行分区 进入fd ...
最新文章
- 一次打流过程的优化反思(iperf3的灵活运用)
- pstools中如何绕过协议提示
- HDU_2065 红色病毒问题(指数型生成函数)
- 浅析多个单列索引和联合索引的区别
- 用python画竹子_?【蟒蚺迷】BAMBOO BALLPYTHON!
- linux永久启动服务命令,Linux(CentOS)用service命令启动任意服务
- 【报告分享】迈向更好的教育:未来教育的技术空间研究报告.pdf(附下载链接)
- 一位JAVA程序员的七夕情书——致未来的另一半
- 万能的应用商店_WiFi万能助手
- ORB-SLAM3论文翻译
- JS:中文输入法,日文输入法做最大位数Check的坑maxlength
- 大闹天宫 页游 架设教程 自玩 单机
- MySQL2014版查询操作的入门级教学
- C语言小程序实现输出国际象棋棋盘
- 怎么设置路由器当交换机用
- java 16 binary_src/ch16/BinaryTree.java · 20162324-春旺/第二学期 - Gitee.com
- linux 磁盘io技术3------libaio使用介绍
- String类的trim()方法之不能消除的空格
- 排行前50的编程语言
- jdk环境变量配置成功只需三步
热门文章
- 如何使用IDEA 显示一个类的所有方法?与eclipse的outline视图类似
- Qt 5.12 LTS(长期维护版本)中Qt Quick的性能改进
- 算法练习day8——190326(队列实现栈、栈实现队列)
- 面向对象1(super、this)
- css 实现app图标样式_uni-app开发一个小视频应用(一)
- Linux / 守护进程
- 启明云端分享|ESP8089 pin to pin 替代RTL8189,供应稳定、性价比高!
- mysql主主同步配置_MySQL 主主同步配置步骤
- linux sed 测试文件夹,测试开发笔记二(Linux与Shell脚本)
- 「开源」首次被列入“十四五”规划,未来大有可为