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.
1 Answer
Create a mountpoint directory for your hdd:
sudo mkdir /media/hdd2Run
sudo blkid, get the UUID of the/dev/sdZXpartition and add it to/etc/fstab(make backup of fstab befor modifying it):Add a line to
/etc/fstabUUID="XXXXXXXXXXXX" /media/hdd2 ntfs-3g permissions,defaults 0 2Mount 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...
Take ownership of the drive
sudo chown -R $USER:$USER /media/hdd2