I have 2 samsung 840s in my computer, one boot and the other expanded storage but Ubuntu recognizes the second as a removable drive but I want them both to be recognised as internal drives, how do I get it to mount as an internal drive?
You have to enter your 2nd hard disk information to
/etc/fstab file. Then your 2nd hard disk will be treated by internal hard drive.
Just go for following step:
First take back up of
/etc/fstaband unmount all 2nd HDD partitions
sudo cp /etc/fstab /etc/fstab.backup sudo umount /dev/sdb*
Execute following command to get your 2nd HDD UUID information that will help you to configure
Search for your 2nd hard disk UUID of all partitions. Your 2nd HDD partitions shouls be displayed like:
/dev/sdb1: LABEL="Backup" UUID="00A0CE7EA0CE7A24" TYPE="ntfs"and so on. It is just an example but format will be same.
Now copy the UUID of the partitions of 2nd HDD which you want to insert in
/etc/fstabfile and insert entry for your HDD partitions on the last line of
/etc/fstabfile. Take help from previous entry, for format etc:
sudo gedit /etc/fstab
When opened your entry would be like this:
UUID=<your_UUID_for_2nd HDD partitions> /media/<location_where_you_want_to_mount> ntfs errors=remount-ro 0
Just an example:
UUID=00A0CE7EA0CE7A24 /media/Backup ntfs errors=remount-ro 0
Now create location where to mount your 2nd HDD partitions. Create a folder for each partitions to mount. For example:
sudo mkdir /media/Backup
Then execute this command once finished:
sudo mount -a
You can refer this link for further help: Auto mounting with /etc/fstab Hope it works for you..
For anyone using Ubuntu 16.04 and wanting to do this with a GUI, I found an easy way. (I presume it would be similar for other versions of Ubuntu, but I haven't tested)
- Start the 'disks' utility.
- Select your disk
- Click gears
- Select 'Edit mount options...'
- Set to manual, if not already
- Untick "Show in user interface"
(You can also set the mount point in this dialog)