I ordered 2 SSDs from my provider.
However, which drive is the main drive?
How do I know which drive is the new SSD drives?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You could check it by using the command
It will give you all the mounted file systems. What you are interested is where the root file system is mounted (i presume thats what you mean by main drive).
This is my sample output of the mount command (just the line which contains the main disc)
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
What it says is that the partition sda1 (just sda represents the disn, sda1 represents the partition) is mounted as root. So now we know that the main disc is sda. Now we have to check what disc is actually sda.
Chech that with
sudo lshw -class disk
My output is
*-disk description: ATA Disk product: TOSHIBA vendor: ... physical id: .... bus info: ... logical name: /dev/sda version: ... serial: ... size: 465GiB (500GB)
From which we can see that sda is the 500GB Toshiba disc.
sudo fdisk -l sda
Disk sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00024cba
If you have ordered and received two new drives then the simple way to determine which is which is to first list the devices you have connected before you connect them. You can do this using (as root)
fdisk -l or as non-root (if you can use
sudo fdisk -l
Then connect one drive at a time and repeat this and you can work out which is which.
You can look to see what the the UUID and/or the label are by...
ls -l /dev/disk/by-*
If labels are set then they will point to the device and appropriate entries can be made in your
/etc/fstab. If labels are not set and you wish to set them then you can do so using