Debian Add Sata Disk

More Space

Add the new disk drive to your machine, connect power and data cables, then reboot your machine.

If you had a different disk installed, on reboot, Linux may complain and attempt to drop you to a console. Ignore, hit Ctrl-d and continue with the reboot. Once Linux is running, open a terminal or XTerm. 

As root run fdisk command to get installed disk details.

# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start    End      Blocks   Id  System
/dev/sda1   *      1    852     6835200   83  Linux
/dev/sda2        852  60802   481549312+   5  Extend
/dev/sda5        852   3293    19606528   82  Swap
/dev/sda6       3293  60802   461941760   83  Linux

Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start    End      Blocks   Id  System
/dev/sdc1          1 243201  1953512001   83  Linux


Disk Partition

fdisk /dev/sdc

<< ------------ fdisk commands go here --------- >>


Format Disk

mkfs.ext3 /dev/sdc1


Mount Disk

mkdir /NewDisk

mount -t ext3 /dev/sdc1 /NewDisk

Check with mount command:

# mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
/dev/sda6 on /home type ext3 (rw)
/dev/sdc1 on /newdisk type ext3 (rw)


# ls -l /NewDisk/
total 24
drwxr-xr-x 3 root root  4096 Sep 18 00:26 .
drwxr-xr-x 22 root root  4096 Sep 17 14:27 ..
drwx------ 2 root root 16384 Sep 17 14:09 lost+found


Auto Mount New Disk

To auto mount new disk, we add an entry in /etc/fstab

vi /etc/fstab

/dev/sdc1        /NewDisk        ext3        defaults,errors=remount-ro 0

If you had other disks connected, delete the entry, or add a comment at start of line.

Save the file and reboot.

Done!