I have a remote server with ubuntu 12.04LTS installed and comes with 2*1TB drives, I would like to mount the second drive to /home/files/ so I have access to 2TB read/write but am really confused by all the different posts I have read.
this is the output of fdisk -l
Code:
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.8.13-xxxx-grs-ipv6-64 x86_64)
System information as of Wed May 22 21:00:53 CEST 2013
System load: 0.09 Processes: 142
Usage of /home: 10.1% of 896.59GB Users logged in: 1
Memory usage: 57% IP address for eth0: **.**.**.**
Swap usage: 0%
4 packages can be updated.
0 updates are security updates.
root@server:~# fdisk -l
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00030e86
Device Boot Start End Blocks Id System
/dev/sdb1 * 4096 41947135 20971520 fd Linux raid autodetect
/dev/sdb2 41947136 1952468991 955260928 fd Linux raid autodetect
/dev/sdb3 1952468992 1953519615 525312 82 Linux swap / Solaris
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0005b3dd
Device Boot Start End Blocks Id System
/dev/sda1 * 4096 41947135 20971520 fd Linux raid autodetect
/dev/sda2 41947136 1952468991 955260928 fd Linux raid autodetect
/dev/sda3 1952468992 1953519615 525312 82 Linux swap / Solaris
Disk /dev/md2: 978.2 GB, 978187124736 bytes
2 heads, 4 sectors/track, 238815216 cylinders, total 1910521728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md1: 21.5 GB, 21474770944 bytes
2 heads, 4 sectors/track, 5242864 cylinders, total 41942912 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/md1 doesn't contain a valid partition table
and if i do sudo lshw -C disk
get this output
Code:
root@server:~# sudo lshw -C disk
*-disk
description: ATA Disk
product: TOSHIBA DT01ACA1
vendor: Toshiba
physical id: 0.0.0
bus info: scsi@1:0.0.0
logical name: /dev/sda
version: MS2O
serial: 13EJ81XPS
size: 931GiB (1TB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=0005b3dd
*-disk
description: ATA Disk
product: TOSHIBA DT01ACA1
vendor: Toshiba
physical id: 0.0.0
bus info: scsi@4:0.0.0
logical name: /dev/sdb
version: MS2O
serial: 13OX3TKPS
size: 931GiB (1TB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=00030e86
the contents of /etc/fstab are
Code:
/dev/md1 / ext4 errors=remount-ro,relatime 0 1
/dev/md2 /home ext4 defaults,relatime 0 2
/dev/sda3 none swap defaults 0 0
/dev/sdb3 none swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devtmpfs /dev devtmpfs rw 0 0
could some one please tell me how to do this?
Bookmarks