≡ Menu

hard disk

I run a backup script called /root/backup.sh which runs rsync command. However, rsync makes a lots of disk I/O and network I/O. I would like to reduce both disk and network I/O. My server has 10Mbps server connection with 160GB SATA hard disk. How do I reduce disk I/O so that the entire system does not die or become unresponsive?
[click to continue…]

Unix Create a Symbolic Link

How do I create a symbolic links under Linux or Unix like operating systems using command line options?
[click to continue…]

Linux Copy One Hard Disk to Another Using dd Command

Q. How can I copy one hard disk to another using dd command?

A. dd command can copy disk in raw format. It will copy partition table and bootloader and all partitions within this disk. For example, you can copy /dev/sda to /dev/sdb (same size) using the following dd command. dd should complete with no errors, but output the number of records read and written.

Login as the root user (use sudo or su command)

WARNING! These examples may result into data loss, ensure there are good backups before doing this, as using dd wrong way can be dangerous.

Open terminal or shell prompt and type the following dd command:
# dd if=/dev/sda of=/dev/sdb
Where,

  • if=/dev/sda : Input disk (source)
  • of=/dev/sdb : Output disk (destination)

You can also copy hard disk or partition image to another system using a network and netcat (nc) command.

HowTo: Find Out Hard Disk Specs / Details on Linux

Can you tell me a Linux command to find out information about my hard disk such as description, product name, bus type, size, and cache memory size under Linux operating systems using command line options?
[click to continue…]

UNIX / Linux: Copy Master Boot Record (MBR)

How do I copy MBR from one hard disk to another hard disk under Debian Linux?
[click to continue…]

How do I find out the make, model and serial number for my SCSI or IDE hard disks under CentOS Linux server? How do I get vendor information about my disk storage w/o opening my Intel / AMD server chassis?
[click to continue…]

Q. My Linux system says LI while booting system and then boots procedure freezes or halts. How do I solve this problem?

A. LILO is a generic boot loader for Linux. This error means few things. LI characters indicate that LILO is having problems. It cannot boot the system.

a) Goto BIOS and set LBA mode for hard disk and reinstall Linux

b) Make sure /boot partition created below the 1023rd cylinder on the hard drive, if not repartition and reinstall Linux

c) See this page for more information.