Add new hard drives under Linux

xiaoxiao2021-03-06  57

background knowledge:

Learn about the Yingtian number under Linux, I saw HDA1, HDB2, and I really dizzy, why those people have to choose these weird strings. In fact, as long as it understands the meaning, you will find that this is the best way, HD = HardDisk A B C ....... Hard disk serial number, 1 2 3 .... Partition serial number. That's Simple!

If there is already a hard disk, then you have / dev / hda

Add a second hard disk is / dev / hdb

1, FDISK partition command

Root $: fdisk / dev / hdb

Follow the prompts, step by step, a few common commands in FDISK are

M: Help

D: Delete a partition

N: Create a partition

W: Save partition

2, MKE2FS formatted command (some version is MKFS)

MKE2FS / DEV / HDB1

Format the partition

3, maybe you need to do it, create a mount point and then modify your mount information again / etc / fstab or / etc / mtab

This modification as long as you use vi to look at it, it will.

good luck!

转载请注明原文地址:https://www.9cbs.com/read-90774.html

New Post(0)