Blog Archive

Wednesday, February 18, 2015

Given Ubuntu is installed on SSD, how to install a new drive

Date:  Feb 18, 2015
Step 1: check disk's logic name

sudo lshw -C disk

  *-disk                  
       description: ATA Disk
       product: Samsung SSD 840
       physical id: 0.0.0
       bus info: scsi@0:0.0.0
       logical name: /dev/sda
       version: EXT0
       serial: S1DHNSAFB93273A
       size: 465GiB (500GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 sectorsize=512 signature=00018455
  *-disk
       description: ATA Disk
       product: WDC WD1003FBYZ-0
       vendor: Western Digital
       physical id: 0.0.0
       bus info: scsi@1:0.0.0
       logical name: /dev/sdb
       version: 01.0
       serial: WD-WCAW30RKR90L
       size: 931GiB (1TB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 sectorsize=512 signature=b8d46e5e
  *-cdrom
       description: DVD-RAM writer
       product: CDDVDW SH-224DB
       vendor: TSSTcorp
       physical id: 0.0.0
       bus info: scsi@2:0.0.0
       logical name: /dev/cdrom
       logical name: /dev/sr0
       version: SB01
       capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
       configuration: ansiversion=5 status=nodisc
Here,  /dev/sda,  /dev/sdb
corresoponds to:
500T SSD
and
1T hard drive,
respectively.
Our goal is to install the 1T hard drive.


Step 2: parition
sudo fdisk /dev/sdb
m
n
p
1
enter
enter

Your will see /dev/sdb1 is there
ll /dev/sdb1

Step 3: format:
sudo mkfs -t ext3 /dev/sdb1

Step 4: create a mount point
sudo mkdir /media/oneT

Step 5: mount the drive

sudo apt-get install gksu
gksu gedit /etc/fstab
Add this line to the end (for ext3 file system):
  •   /dev/sdb1    /media/oneT   ext3    defaults     0        2
sudo mount -a

###### Reference:
https://help.ubuntu.com/community/InstallingANewHardDrive

No comments:

Post a Comment