Mounting second Harddisk in Centos 5
Hi..
I'm new in linux, I want to put second harddisk in my computer. Can anyone help me with step by step instruction...I'm using Cemtos 5. Thank you......... |
There is nothing much difficult to do that. Just connect the hard drive. On the terminal type
sudo fdisk -l. That will give you partition table for your system. Your second hard drive should come up as sdb. You can then use fdisk to create logical partitions in there like sdb1, sdb2 etc. sudo fdisk /dev/sdb will help you create the logical partitions. |
Once you've connected the second disk, you need to issue the following command (as root):
Quote:
The entry that you need to put in that file depends on which filesystem the new drive contains (eg. ext3, vfat, etc.) |
Quote:
thank's a lot |
1. Plug disk in
2. reboot 3. login as root in xterm 4. run 'fdisk -l' 5. if 2nd disk (probably /sdb or /hdb) show as type Linux / 83, then you can make dir on the 1st disk for it to attach to eg 'mkdir /extra' 6. edit /etc/fstab, add an extra entry something like Code:
/dev/sdb /extra ext3 defaults 0 0 If any errors occur, post the output of fdisk -l post contents of fstab post error msg from 'mount -a' |
Is this a new, unformatted HDD?
if so, you will need to partition and format it. If so, you can do this from the command line using fdisk and mkfs, or you may find it easier to download the gparted live CD from www.distrowatch.com and use that. |
Hi
I am also wanting to format a HDD, when i run: Quote:
Quote:
|
All times are GMT -5. The time now is 02:11 AM. |