Linux hard drive

Source: Internet
Author: User
Linux and hard drive-Linux general technology-Linux technology and application information. For details, refer to the following section. Shut down, install the hard disk, and start the system. Due to the sequence of the lines, the original/dev/sda is changed to/dev/sdb.
But it does not affect anything.

The new hard disk is/dev/sda, partitioning first
# Fdisk/dev/sda
It is divided into one zone.
Mount the original ora to other places
# Umount/ora
# Mount/dev/sdb2/mnt
# Mount/dev/sda1/ora
Copy all the original content
# Cp-a/mnt/*/ora
Modify/etc/fstab
Here is the LABEL attached with the volume LABEL =/ora ext3 defaults 1 2
Comment out this line and add/dev/sda1/ora ext3 defaults 1 2
Suddenly, if the order of the hard disk changes to sda, it is easy to cause problems.
Or modify the volume label
# E2label/dev/sdb2/oraold
# E2label/dev/sda1/ora
In this way, you do not need to modify/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.