Novice Academy: Installing two hard drives for the Linux operating system

  
                  

If you have used Linux for a while and feel that the hard disk is not enough, you need to install a new hard disk. What should I do?

first author here to remind you that the second hard disk installed in Linux Note: If the IDE hard disk, the main attention, provided from the disk; if SCSI hard disk, a selected note is not used ID number. In this example, the second IDE hard disk is set as a slave disk, and it is connected to the first master disk to a data line to see how to install and use the second hard disk under Linux.

a partition

a new hard drive, it is not partition, installed, in Linux, you must use the hard disk partition program fdisk (for example Red Flag Desktop Edition) partition ( figure 1).
498)this.style.width=498;">
Second, after formatting the hard disk partition, execute:
[root@work root]# mke2fs /dev/hdb1
command, Format the hard disk.
Third, mount to the directory
After the hard disk is formatted, you can use the mount command to mount the hard disk partition to a directory. First create the directory. For the directory to be mounted Named /disk2, execute the "mkdir disk2" and "mount /dev hdb1/disk2" commands in sequence, you can use the new hard disk.
Fourth, mount automatically at startup
Follow the above operation, each time the machine Booting must be performed by mounting the mount command. This is very cumbersome. You can make the machine automatically mount the hard disk partition at boot time by modifying the /etc/fstab configuration file (Figure 2).
498)this. Style.width=498;">


After restarting the computer after modifying the configuration file, the system will automatically mount the partition. At this point, you can easily use your second hard drive!

Copyright © Windows knowledge All Rights Reserved