Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just installed a Sata WD 500GB hard drive, shows up in BIOS as secondary master drive, but do not see it after boot. What gives?

tone@homeserver:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             9.2G  3.3G  5.5G  38% /
tmpfs                 881M     0  881M   0% /lib/init/rw
udev                   10M  740K  9.3M   8% /dev
tmpfs                 881M     0  881M   0% /dev/shm
/dev/hda2              65G  197M   61G   1% /srv
share|improve this question

migrated from serverfault.com Jul 10 '10 at 0:05

This question came from our site for professional system and network administrators.

    
Have you partioned the drive? Created a filesystem on it? Specified a mount point? –  andol Jul 9 '10 at 22:37
    
well no that would make too much sense :) Cole answered my question below. –  Tone Jul 10 '10 at 0:47

4 Answers 4

up vote 1 down vote accepted

df -h just shows the current mount points and stats.

use fdisk -l to make sure the machine is seeing the drive.

Next partition the drive:

cfdisk /dev/hdc

cfdisk will load, then create your partition:

  1. New >> Primary >> Size in MB
  2. Once done select Write
  3. Select Quit

Next format the disk

 mkfs.ext3 /dev/hdc1

and lastly mount the drive:

mkdir /new-disk
mount -t ext3 /dev/hdc1 /new-disk

To check to make sure the drive is mounted:

ls -lsa /new-disk
share|improve this answer
    
perfect thanks! –  Tone Jul 10 '10 at 0:50
    
What's the command to format a swap partition? mkfs.swap /dev/sda3? –  Tone Jul 10 '10 at 2:28
    
You don't have to format swap. Just set the partition type to 82 (Linux Swap). Then to start using it without rebooting run swapon /dev/sda3 –  3dinfluence Jul 10 '10 at 3:01

df lists all the current mount points and stats. As root or using sudo and running fdisk -l will list all the block devices and partitions that it finds. From there you'll need to partition and format your new drive and then determine where you want to mount those partitions.

share|improve this answer

I think df only shows mounted filesystems. Check to see if a /dev/sda is present. If so try mounting it. You could also run parted and then run a print command to see if the drive shows up there as well.

share|improve this answer

ls /dev | grep hd
you will see there for example hda hda1 hda2 hda3 hdb hdb1 hdb2
hda and hdb - are hard drives. you need to make partitions using fdisk hdb (for example) and then mount it manualy or define it in /etc/fstab

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.