Difference between revisions of "Installing New Harddisk in Ubuntu"
From stgo
m |
m |
||
(One intermediate revision by one user not shown) | |||
Line 20: | Line 20: | ||
#* 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> | ||
− | #* edit fstab <code>sudo nano fstab</code>. | + | #* edit ''fstab'' file: <code>sudo nano fstab</code>. |
#*: so in my case I added the line: <code>#UUID=8bd20968-2af2-4bf4-a898-e692f391134c /media/data ext4 defaults 0 2</code> | #*: so in my case I added the line: <code>#UUID=8bd20968-2af2-4bf4-a898-e692f391134c /media/data ext4 defaults 0 2</code> | ||
− | #* now ''reboot'' or: mount the new disk with <code>sudo mount /media/data</code> (=> its a bit weird, but this command is without defining the place where to mount is) | + | #* now ''reboot'' or: mount the new disk with <code>sudo mount /media/data</code> (=> its a bit weird, but this command is without defining the place where to mount is, so I guess the system reads this info from the fstab entry) |
Latest revision as of 17:55, 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:
- plug the disk in
- (install +) start GParted
- 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)
- 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 file:
sudo nano fstab
.- so in my case I added the line:
#UUID=8bd20968-2af2-4bf4-a898-e692f391134c /media/data ext4 defaults 0 2
- so in my case I added the line:
- 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, so I guess the system reads this info from the fstab entry)
- check what is the UUID using