Replace the SuSE system hard disk dd

Source: Internet
Author: User

Introduction:

Because the SuSE server does not perform raid, the system hard disk needs to be replaced. I plan to perform the hard drive test directly.

Purpose:

Run the DD command to test the SuSE system hard disk to ensure that the new hard disk works normally.


Steps:

1. Connect 2 TB of new hardware to the server


2. Use opensuse 11.3 DVD drive


3. Select rescue system.


4. The rescue login: logs into the root


5. confirm/dev/SDA as the original hard partition,/dev/SDB as the new hard partition, you can use smartctl-A/dev/SDA to check the sequence, or use Mount-T ext4/dev/SDA/mnt, or/dev/sda1 or/dev/sda2, after the error message is cleared, go to/mnt/and check the content. You must not perform a hard copy. Otherwise, either of them may become empty.

Note: I am using smartctl-I/dev/SDA (it will be OK with the S/N code of two hard disks)


6. dd If =/dev/SDA of =/dev/SDB 2 t takes about 26 hours

Note: After DD, modify the boot file information. Otherwise, the boot will fail.


7. After the operation is complete, unplug the original disk, re-renew it once, and then enter rescue.


8. cd dev/Disk/by-ID, ls should see the hard drive label... ATA-[manufacturer] _ [modelnumber] _ [serial number]… Remember.

For example, my hard disk

650) This. length = 650; "src =" http://s3.51cto.com/wyfs02/M00/46/F3/wKiom1P1X-DjbIfnAAWnFf3G0z8561.jpg "Title =" img_20140821_083805_ .jpg "width =" 500 "Height =" 281 "border =" 0 "hspace =" 0 "vspace =" 0 "style =" Width: 500px; Height: 281px; "alt =" wKiom1P1X-DjbIfnAAWnFf3G0z8561.jpg "/>

9. Mount the new hard disk. Mount-T ext4/mnt

Note: Why is it/dev/sdb2? Is sdb2 a system file path?


10. CD/mnt/boot/GRUB/, VI menu. lst

Note: I don't know what is going on. I am always suspended when editing. I didn't respond unless I restarted other keys.


11. Change the type and sequence. There are three parts in total.


12. CD/mnt/etc/, VI fstab


13. Change it three times in the same way.

Note: I use suse11.3. The system boot information of other versions may be modified differently.

Question:

1. During the test, a hard disk is broken (that is, the mechanical sliding, and the hard disk read and write flashing). analyze the possible causes, a. The F8 screen will be stuck when the manual is pressed during startup. I don't know if it is caused by this process. B. It may also be caused by frequent shutdown-H now.

2. dd does not modify the target disk information. After the disk is started, no target disk is attached. DF can see information such as/sdb2/sda1. As a result, I cannot mount the target disk.

Related Article

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.