Ubuntu 18: How to add a new HDD disk?

Today I installed Ubuntu 18 at my SSD, but I also have plugged my second HDD with old windows files (music, games etc). I don't wanna format this disk to keep all my files and games.

And now my question is:
How can I add this disk to a Linux system as a secondary disk?
My Ubuntu see this disk in "other location" as "new volume", I can explore files but some programs cannot see this HDD. I wish to use Wine for play my windows games.

2

1 Answer

  1. Create a mountpoint directory for your hdd:

    sudo mkdir /media/hdd2

  2. Run sudo blkid, get the UUID of the /dev/sdZX partition and add it to /etc/fstab (make backup of fstab befor modifying it):

  3. Add a line to /etc/fstab

    UUID="XXXXXXXXXXXX" /media/hdd2 ntfs-3g permissions,defaults 0 2

  4. Mount it to test:

    mount -av

If you get an error like Failed to mount '/dev/sdZX': Operation not permitted The NTFS partition is in an unsafe state. it means a "non-complete" shutdown on this drive and you must run Windows on it...

  1. Take ownership of the drive

    sudo chown -R $USER:$USER /media/hdd2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like