Difference between revisions of "Installing New Harddisk in Ubuntu"

From stgo
Jump to: navigation, search
m
Line 7: Line 7:
 
# plug the disk in
 
# plug the disk in
 
# (install +) start GParted
 
# (install +) start GParted
# add the disk
+
# partitioning and adding the disk
 
#* select the new disk (top right)
 
#* select the new disk (top right)
 
#* created a ''msdos'' partition table (under menu entry "Device")
 
#* created a ''msdos'' partition table (under menu entry "Device")
Line 17: Line 17:
 
#* change the folder permissions for ''/media/data'' so that everybody can read and write(!) with ''chmod 777 -R''
 
#* change the folder permissions for ''/media/data'' so that everybody can read and write(!) with ''chmod 777 -R''
 
#* it now possible to mount the disk using <code>sudo mount /dev/sdb1 /media/data</code> (However, I haven't tested it, and instead mounted and unmounted the disk via a mouse on the new desktop icon)
 
#* it now possible to mount the disk using <code>sudo mount /dev/sdb1 /media/data</code> (However, I haven't tested it, and instead mounted and unmounted the disk via a mouse on the new desktop icon)
# to have the new disk booted on startup:
+
# make sure we have the new disk available on startup:
 
#* check what is the UUID using <code>sudo blkid</code>
 
#* check what is the UUID using <code>sudo blkid</code>
 
#* perhaps make a copy of it first: <code>sudo cp /etc/fstab /etc/fstab_copy_24abril2015</code>
 
#* perhaps make a copy of it first: <code>sudo cp /etc/fstab /etc/fstab_copy_24abril2015</code>

Revision as of 17:54, 24 April 2015

>> return to Accessing server infra


For installing the new SATA3 2TB hard disk on my Ubuntu 12.04 workstation, I basically took all info from the following page:
http://askubuntu.com/questions/488213/how-to-add-a-second-hard-drive-to-an-already-installed-xubuntu-14-04

The install steps were as follows:

  1. plug the disk in
  2. (install +) start GParted
  3. partitioning and adding the disk
    • select the new disk (top right)
    • created a msdos partition table (under menu entry "Device")
    • created a new primary partition with ext4 file system
    • execute the settings by clicking on the checkmark button
    • checked with sudo fdsik -l if there is a new disk
      => the disk was there as /dev/sdb
    • created a new folder /media/data to mount the disk there later on
    • change the folder permissions for /media/data so that everybody can read and write(!) with chmod 777 -R
    • it now possible to mount the disk using sudo mount /dev/sdb1 /media/data (However, I haven't tested it, and instead mounted and unmounted the disk via a mouse on the new desktop icon)
  4. make sure we have the new disk available on startup:
    • check what is the UUID using sudo blkid
    • perhaps make a copy of it first: sudo cp /etc/fstab /etc/fstab_copy_24abril2015
    • edit fstab sudo nano fstab.
      so in my case I added the line: #UUID=8bd20968-2af2-4bf4-a898-e692f391134c /media/data ext4 defaults 0 2
    • now reboot or: mount the new disk with sudo mount /media/data (=> its a bit weird, but this command is without defining the place where to mount is)