Author Message

drcrazy

Administrators

Online status

65 posts
Location: MSQ
Occupation: drcrazy
Age: 44

#100   04/05/2014 15:57 GMT      
https://help.ubuntu.com/community/InstallingANewHardDrive


Code:
$> sudo lshw -C disk
*-disk
       description: ATA Disk
       product: WDC WD30EFRX-68E
       vendor: Western Digital
       physical id: 0.0.0
       bus info: scsi@2:0.0.0
       logical name: /dev/sdb
       version: 80.0
       serial: WD-WMC4N1692810
       size: 2794GiB (3TB)
       configuration: ansiversion=5 sectorsize=4096

$> sudo fdisk /dev/sdb
m->p->1->Enter->Enter
w
$> sudo mkfs.ext4 -m 1 /dev/sdb1
$> sudo mkdir /media/data
$>  ls -l /dev/disk/by-uuid
lrwxrwxrwx 1 root root 10 May  4 18:38 7c4d7fcd-fce2-4df4-9924-bb87c100e934 -> ../../sdb1
$> sudo nano -Bw /etc/fstab

Add:
Code:
# 3TB data harddrive
UUID=7c4d7fcd-fce2-4df4-9924-bb87c100e934 /media/data   ext4    defaults 0      2

Code:
$> sudo chgrp plugdev /media/data
$> sudo chmod g+w /media/data
The pleasure of satisfying a savage instinct, undomesticated by the ego, is incomparably much more intense then the one of satisfying a tamed instinct. S.Freud.