Linux系统添加新硬盘分区及设置启动自动挂载教程
日期:2015-04-15 08:04 作者:电脑公司 来源:www.dngsupan.cn
在不同的操作系统下添加新硬盘及分区方法也有些不同,Linux与windows系统对比会有些复杂,那么在Linux系统如何添加新硬盘和硬盘分区及硬盘设置驱动自动挂载呢?如果你想要在Linux系统下新添加硬盘的话,本文教程不可错过哦。
Linux系统添加新硬盘分区及设置启动自动挂载方法/步骤
1、检查发现系统上目前并没有挂载新的硬盘,如下图所示:
2、添加硬盘后我们启动电脑并再次检查,我们可以看到最下面多了一行“Disk /dev/sdb doesn't contain a valid partition table”,告诉我们有一块新的硬盘,但是还没有分区;如下图所示:
3、根据以上提示开始对新的硬盘进行分区操作,由于截图比较麻烦所以呢我把命里copy出来了,需要操作的部分我会标记出来
[root@Linux ~]# fdisk /dev/sdb //根据提示,对新硬盘进行分区操作Device 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 2610.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)Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): h //帮助信息h: unknown commandCommand 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 //输入 n,新建分区Command action e extended //新建逻辑分区 p primary partition (1-4) //新建主分区p //输入 p,建立主分区Partition number (1-4): 1 //一共可以分4个主分区,输入 1,建立第一个主分区First cylinder (1-2610, default 1): //选择该分区的起始磁盘数,如无特殊需求强烈建议选择默认,也就是默认用1 来分区(直接按回车)Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-2610, default 2610): //定义该分区的大小,如果按默认(直接回车),就是使用全部可用存储空间;如果要分成一个 1G 的空间,输入 +1024m 即可,1G=1024m算法以此类推Using default value 2610Command (m for help): w //写入分区信息,其实就是保存分区信息The partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.
4、完成以上操作后我们可以看到新添加的硬盘已经存在分区了
相关电脑公司系统教程推荐
- Win8.1操作系统动态磁贴简单关闭方法 2015-01-20
- win7系统蓝牙配对后显示为“脱机”的详细技巧 2019-03-14
- 电脑公司系统Windows7系统怎么禁止taskeng.exe进程 2018-04-18
- VMware安装懒人Win10系统的设置方法 2017-09-19
- win10按F10进入安全模式怎么实现? 2018-04-29
- Win10专业版中进行权限管理设定权限继承的技巧 2016-06-19
- win7系统非管理员则无法打开iE10的教程介绍 2019-03-12
- 黑云W10装机版玩dota2无法输入中文怎么办? 2017-05-19
- 蓝光win10如何替换文件的提示窗口怎么改成样式 2017-06-12
- 如何解决电脑店Win10系统Programdata找不到的问题? 2017-03-22
- 电脑公司Win10 系统中了灰鸽子木马病毒的应对手段 2016-04-24
- win10/win10迅速破解压缩包密码的步骤 2018-04-30
- win7系统无法激活的解决办法 2019-03-12
- Ghost win7系统下快速查看网络连接状况的方法大全【图】 2014-09-20
- 风林火山Win10正式版删除文件不进入回收站怎么办? 2017-05-24
- 深度技术W10系统自动弹出Runtime Error错误怎么办? 2017-04-16
- 大白菜Win10系统电脑将Editplus添加到鼠标右键菜单的方法 2016-11-06
- win7 64位旗舰版系统假死现象解决方法 2015-03-05
电脑公司系统推荐
-
1电脑公司Ghost Win10x32位 免激活装机版v2018.05
电脑公司Win10 32位 /
系统下载 -
2电脑公司Ghost Win10 x64 家庭专业版 V201907(永久激活)
电脑公司Win10 64位 /
系统下载 -
3电脑公司 Ghost Win10 64位 专业版 2015.12
电脑公司Win10 64位 /
系统下载 -
4电脑公司Ghost Win10x64位 免激活 专业版 V2018.11
电脑公司Win10 64位 /
系统下载 -
5电脑公司Ghost Win10x86 精选专业版 v201908(无需激活)
电脑公司Win10 32位 /
系统下载 -
6电脑公司Ghost Win10 (64位) 好用纯净版v2020.01(无需激活)
电脑公司Win10纯净版 /
系统下载 -
7电脑公司Ghost Win10X64位纯净版2018年05月(完美激活)
电脑公司Win10纯净版 /
系统下载 -
8电脑公司Ghost Win10 X32 热门纯净版2017v07(绝对激活)
电脑公司Win10纯净版 /
系统下载
电脑公司系统教程排行
- 深度技术Win10系统怎么合并任务栏相同的窗口? 2017-01-02
- BaiduProtect.exe是什么?W10系统中怎么清除 2016-12-14
- 如何修复系统家园Win10教育版系统磁盘错误 2017-05-30
- win10系统下Realtek高清音频配置出现EAccessViol 2018-12-25
- 没有密钥怎么激活win7旗舰版和win8.1专业版系统 2015-02-13
- 怎么查看自己的电脑是不是适合安装64位windows10 2016-11-26
- 技术员联盟W10系统电脑如何隐藏的DOS启动盘文件 2016-07-21
- win10系统打印PowerPoint总是提示无法找到打印机 2018-12-21
- 电脑公司W10系统网页右键被禁用怎么办?破解网页 2017-04-08
- linux系统怎么更新?两种更新linux方法 2015-01-20
友情链接