Developer Blog - Inventic.eu
  • Skipper - The ORM Designer
  • VsBuilds - Parallel building
  • Pulpo - Free Skipper CLI

Tag: #hdd

How to add new drive to ubuntu

Step one: install drive

It's easy.... ;-)

Step two, check if drive is connected

sudo fdisk -l<br />

Create partitions

sudo fdisk /dev/sdb</p>
<p>#Create partition<br />
#----------------<br />
#press u (units to sectors)<br />
#press n (create new partition)<br />
#press p (primary partition)<br />
#press 1 (first partition)<br />
#press enter (default start at begin)<br />
#press enter (default end at end)</p>
<p>#Format partition<br />
#----------------<br />
#press L (list of formats)<br />
#?? need tye 83, don't know how to enter ;-)</p>
<p>#press W (write changes to hdd and quit)</p>
<p>#update kernel with changes we have made<br />
sudo partproble /dev/sdb</p>
<p>#format drive<br />
sudo mkfs /dev/sdb1 -t ext4</p>
<p>#create directory mount point<br />
sudo mkdir /home/dev/dev<br />
sudo chmod 777 /home/dev/dev</p>
<p>#mount it<br />
sudo mount /dev/sdb1 /home/dev/dev -t ext4</p>
<p>#try to write something<br />
touch /home/dev/dev/test.txt<br />
ls /home/dev/dev</p>
<p>#setup auto-mounting point<br />
sudo nano /etc/fstab</p>
<p>#add line<br />
/dev/sdb1 /home/dev/dev ext4 defaults 0 0</p>
<p>

External ref:

13 Feb 2013

Posted by: ludek.vodicka

Linux #Linux #system #hdd #partitions