it seems your 1TB disk has been used for a swap partition
you can create an additional partition on that disk:
Code: Select all
root@host# fdisk /dev/sdb
n for new partition
p for primary
2 for the partition number
accept the defaults for the partition start and ending (<enter>, <enter>) which is by default the first available block and fills the partition up till the end
t for type
83 (= type Linux ext)
w for writing the changes to disk, you should then drop back into your shell
Once you've done all that you can create a filesystem on the partition (substitute mkfs.ext3 for your preferred flavor like ext4):
then mount the partition where you want it (e.g. /mnt/test, substitute this with your own e.g. /var/hda/files/pictures)
Code: Select all
root@host# mount /dev/sdb2 /mnt/test
check if you can read/write on the mount point and check the mounts (just the command "mount"), the new mount should be listed.
unmount the drive; add it to /etc/fstab:
Code: Select all
root@host# cp /etc/fstab /etc/fstab.old
vi /etc/fstab
<--add the following line-->
/dev/sdb2 /mnt/test ext3 defaults 1 2
make sure you match your own desired mount point and the filesystem type (ext3, ext4) you chose.
run "mount -a" and check that you don't get any errors.
run "mount" to see if the disk is mounted.
run "df -h" to see the available space.
enjoy!