How to add a hard disk to Linux

Source: Internet
Author: User

Because the hard disk space of the Linux service boot system is insufficient, a gb sata hard disk is added, which was previously partitioned and formatted in windows.

This is intended to be fully formatted into the partition format ext3 in Linux.

First, connect the power cord to the SATA line, and the system will recognize the hard disk, and then view the device in Linux.

Ls/dev/SD *

The specific sdc1 identifier indicates the SATA disk.

Then, use the Linux partitioning tool fdisk.

Sudo fdisk/dev/SDC

M for help

D command to delete existing partion (1)

W command to write partition to disk

Q command to exit fdisk

 

Format the partition.

Sudo mkfs. ext3/dev/sdc1

After mounting, you need to set a specific mount point. Of course, you can also set automatic mounting to/etc/fstab.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.