So I put Plex Media Server on my laptop that I installed Ubuntu Server on for the purpose of only running Plex Media Server (the monitor broke). The only problem with hosting the media server is my laptop hard drive isn't big enough to hold my media library. It does however fit on an external USB drive (for now, though I might need a bigger one in not too long). So I decided to see if I could run it with the media library on the external drive. The only problem was mounting the drive. I realized I had no clue how to do that from the command line really. So I searched for a way to do this. The answer wasn't very difficult and was explained well on the ubuntu wiki here. just two commands:
sudo mkdir /media/external
To create a mount location and, since the drive was formatted with ntfs:
sudo mount -t ntfs-3g /dev/sdb1 /media/external
to mount the drive. To find out which device it is (in case it isn't sdb1) you can run
sudo fdisk -l
to find which one it is.
I tried pmount and various other tools but this one seemed to be the only one that really worked well and did what I wanted it to. I believe with it being ntfs it will give the user permission to the drive. Whereas if it was some type of fat system you would need to finish it off with the -o flag and some arguments.
And to unmount the drive (which I never really do since it is my library) you simply:
sudo umount /media/external
No comments:
Post a Comment