Linux

Mount The Drive on Linux Ubuntu Server

Determine Drive Information We assume that the hard drive is physically installed…

Determine Drive Information

We assume that the hard drive is physically installed and detected by the BIOS.

To determine the path that your system has assigned to the new hard drive, open a terminal and run:

sudo lshw -C disk

This should produce output similar to this sample:

*-disk
description: ATA Disk
product: IC25KOLAT564-0
vendor: Hitachi
physical id: 0
bus info: ide@0.0
logical name: /dev/sdb
version: C54671A
serial: XDfeSHKD556B
size: 37GB
capacity: 37GB

Deciding which partitions to mount

Most systems only have /dev/hda, which is the hard disk drive, and /dev/hdc, which is the CD-ROM, or optical, drive. If more were listed when the command above was run, they can be identified as follows: hda is the first drive on the first IDE channel (0:0), hdb is the second drive (0:1), hdc is the third drive (1:0), and hdd is the fourth (1:1). SCSI and S-ATA disks have names like sda and sdb.

Look through the list generated above to identify the partition(s) to be mounted. The following table lists some common ‘System’ types, which may help this process.

System name English name Linux type
W95 FAT32 Microsoft FAT32 vfat
W95 FAT32 (LBA) Microsoft FAT32 vfat
W95 FAT16 (LBA) Microsoft FAT16 vfat
W95 Ext’d (LBA) Microsoft extended partition Not used
NTFS volume set Microsoft NTFS ntfs
NTFS volume set Microsoft NTFS with read-write access ntfs-3g
Apple_HFS Apple HFS hfsplus

A list of the form ‘/dev/hda1: /media/windows/ (vfat)’, where ‘/dev/hda1’ is the device, ‘/media/windows’ is the arbitrary location where the partition will appear when mounted, and ‘vfat’ is the Linux type, should be created on paper, containing all partitions to be added.