Linux system command finishing: disk management

xiaoxiao2021-03-06  20

LINUX adds a hard drive:

1, install hard drive

The IDE and SCSI methods have different 2, let the computer recognize the hard disk

Ide and SCSI methods have different 3, partition

Start Linux, then give the new hard disk partition: identity with root, perform FDISK / DEV / HDB.

[Main partition, Linux native]

4, format new hard drive

MKE2FS-CV / DEV / HDB1

[Detailed output and checked block]

5. Create a Mount Point.

Decide that you want to put it MOUNT there and create this mount point.

For example, you want to use it as / mnt / drive2 to perform as root:

CD / MNT

Mkdir drive2

6, test

With root identity, execute: mount -t ext2 / dev / hdb1 / mnt / drive2. If there is no error message, CD / MNT / DRIVE2, then try to create a directory and create several files. If you can, then it will. Continue the last few steps.

7, modify / etc / fstab.

Add the following to the / etc / fstab file:

/ DEV / HDB1 / MNT / Drive2 Ext2 Defaults 1 1

8, restart, see if the new hard disk is automatically mounts.

Yves Bellefeuille's Hard-Disk-Upgrade Minihowto document contains some of the above information, but most of them are for other different situations. Posted by Peak At May 21, 2004 02:19 AM | Comments (0) | TRACKBACK (0)

Linux System Command (Disk Management) Sync Symlinks (Symbolic Links) Swapon Swapoff SFDisk MPArtition

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

New Post(0)