Linux挂载分区的脑残篇,新顺手必看,老鸟绕道

分享到:
[db:作者] • 2018-11-30 10:15 来源:[db:来源] EG0

  带读

  linux添加以坚硬盘后邑需寻求壹个操干操干才干运用那坚硬是挂载,在企业环境中我们的数据盘和体系盘普畅通邑是瓜分的。前几天壹个对象让我僚佐分下区把数据盘挂载到/home下。(团弄体需寻求吧,拥有些公司普畅通邑是特意在'/'下面创立壹个data 到来做数据盘)。操干记载下了到来分享给父亲家,新顺手复课,老鸟绕道(假设此雕刻些邑看不懂的话,Linux需寻求恶行补养额!!!)

  需寻求:需寻求把体系盘劳到/home 下面。

  考虑:/home 下面是用户默许的家目次,假设用户家目次胸中拥有数据是会被掩饰的。找对象确认是方装置的体系才末了尾搞的。更改分区父亲小比值先想到的是lvm,条是看了客户的磁盘信息发皓不需寻求考虑此雕刻些,怎么骈杂怎么到来。

  检查坚硬盘信息

  [root@localhost /]# fdisk -l 检查坚硬盘信息

  Disk /dev/sda: 240.1 GB, 240057409536 bytes, 468862128 sectors

  Units=sectors of 1 * 512=512 bytes

  Sector size (logical/physical): 512 bytes / 512 bytes

  I/O size (minimum/optimal): 512 bytes / 512 bytes

  Disk label type: dos

  Disk identifier: 0x00085ef7

  Device Boot Start End Blocks Id System

  /dev/sda1 * 2048 1026047 512000 83 Linux

  /dev/sda2 1026048 17803263 8388608 82 Linux swap / Solaris

  /dev/sda3 17803264 468860927 225528832 83 Linux

  Disk /dev/sdb: 240.1 GB, 240057409536 bytes, 468862128 sectors

  Units=sectors of 1 * 512=512 bytes

  Sector size (logical/physical): 512 bytes / 512 bytes

  I/O size (minimum/optimal): 512 bytes / 512 bytes

  Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 sectors

  Units=sectors of 1 * 512=512 bytes

  Sector size (logical/physical): 512 bytes / 512 bytes

  I/O size (minimum/optimal): 512 bytes / 512 bytes

  Disk label type: dos

  Disk identifier: 0x0007a974

  Device Boot Start End Blocks Id System

  /dev/sdc1 2048 976773119 488385536 8e Linux LVM

  Disk /dev/sdd: 240.1 GB, 240057409536 bytes, 468862128 sectors

  Units=sectors of 1 * 512=512 bytes

  Sector size (logical/physical): 512 bytes / 512 bytes

  I/O size (minimum/optimal): 512 bytes / 512 bytes

  Disk label type: dos

  Disk identifier: 0x000a4688

  Device Boot Start End Blocks Id System

  /dev/sdd1 * 2048 1026047 512000 83 Linux

  /dev/sdd2 1026048 468860927 233917440 8e Linux LVM

本文来源前瞻网,转载请注明来源!(图片来源互联网,版权归原作者所有)

p23q0

分享:
标签: [db:TAG标签]
J

意见
反馈

×