Linux – Hard drive mounting Question Debian Linux

debianhard drivelinuxmount

Hey I just bought a new server and it's running debian

it has 2 2tb hard drives in it, and I'm looking to mount the second one to a specific folder.

an fdisk -l gives me this

Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      243202  1953514583+  ee  EFI GPT

Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x197e197d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1      243200  1953503968+   7  HPFS/NTFS
debian:~#

are they both already mounted? Since it looks different than it usually does. And if the second one isn't how can I mount it to a var/www2 folder?

Thanks

Best Answer

Both questions can be answered by mount.

To look where something is mounted, just issue mount.

To mount something to something, just do mount /dev/sdb1 /var/www2.

But watch out! The /dev/sdb1 is an NTFS file system (not a "native" Linux file system)

Related Topic