# Mounting My Linux Library

**URL:** <https://forums.plex.tv/t/mounting-my-linux-library/686573>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [February 4, 2021, 1:11am UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573 "2021-02-04T01:11:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Celestialbiscuit](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@Celestialbiscuit](https://forums.plex.tv/u/Celestialbiscuit)\
**Post date:** [February 4, 2021, 1:11am UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/1 "2021-02-04T01:11:01Z")

</div>

Hi there,

I’m a non-tech professional, attempting to be snazzy and self-autonomous, but I seem to have gone as far as I am able, on my own.

I’m trying to get Plex to recognise my USB hardrives, where my library is, using the the Tips & Tricks guide, here:

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/2):
>
> Using other hard drives (Windows or Linux) with PMS This How-To is written to help with Internal and External drives. It also is written to demonstrate how to cope with NTFS and EXT4 formatted drives. By logical extension, any format supported by Linux can be handled using the technique shown here. In all cases, the goal is to give user plex permission to read your media files which Linux doesn’t allow by default due to its strict security model. We will walk through the steps needed …

And I am unable to follow, past, this:

> Having created the directories as root, verify empty (unmounted) directory permissions are 0755 before mounting

The code example is this:

```auto
# The location 
[root@lizum chuck]# mkdir /disks /disks/c /disks/media3 /disks/chuck2t
[root@lizum chuck]# chown -R chuck:chuck /disks

[root@lizum chuck]# ls -la /disks
drwxr-xr-x 3 chuck chuck 4096 Jul 27 11:14 .
dr-xr-xr-x. 30 root root 4096 Jul 27 11:14 ..
drwxrwxrwx 4 chuck chuck 4096 Jul 27 11:04 c
drwxrwxrwx 4 chuck chuck 4096 Jul 27 11:04 chuck2t
drwxrwxrwx 4 chuck chuck 4096 Jul 27 11:04 media3
[root@lizum chuck]#

```

… and mine is this:

```auto
drwxr-xr-x 4 rudy rudy 4096 Feb 4 00:48 .
drwxr-xr-x 27 root root 4096 Feb 4 00:48 ..
drwxr-xr-x 2 rudy rudy 4096 Feb 4 00:48 New
drwxr-xr-x 2 rudy rudy 4096 Feb 4 00:48 Toshy

```

I hope this makes sense enough for you to help me, and not to have to instantly apologize for my stupidity. Ahem.

Thank you in advance, lovely people.

EDIT:

Just noticed one of my USB drives was originally called New Volume, but seemed like it was unwise as it already become just “New” while trying to mkdir, so tried to rename with disks, and in the terminal…

```auto
ntfslabel /dev/sdb2 Westie

```

…and got this error, each time:

> Please boot into Windows TWICE, or use the ‘force’ option.  
> NOTE: If you had not scheduled check and last time accessed this volume  
> using ntfsmount and shutdown system properly, then init scripts in your  
> distribution are broken. Please report to your distribution developers  
> (NOT to us!) that init scripts kill ntfsmount or mount.ntfs-fuse during  
> shutdown instead of proper umount.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [February 4, 2021, 2:35am UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/2 "2021-02-04T02:35:56Z")

</div>

One thing you might want to do here is make the NTFS drive “clean” from the linux perspective.

If you see it mounted now. wherever it is, remember where it’s mounted (the device & partition info)

```auto
sudo umount /dev/sdxx
sudo ntfsfix /dev/sdxx

```

Now check the label to make sure it’s what you want:

```auto
sudo ntfslabel /dev/sdxx

```

If not right,

```auto
sudo ntfslabel /dev/sdxx NewLabelName

```

Lastly, if the UUID info is correct,

```auto
sudo mount /ntfs/partition/mount/point

```

This last step confirms everything in /etc/fstab is correct for that drive.

---

<div class="post-metadata">

**Author:** ![Celestialbiscuit](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@Celestialbiscuit](https://forums.plex.tv/u/Celestialbiscuit)\
**Post date:** [February 7, 2021, 5:11pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/4 "2021-02-07T17:11:08Z")

</div>

Hi Chuck,

I arrived at:

> sudo nftslabel /dev/sdxx

And was given:

> Volume is scheduled for check.  
> Please boot into Windows TWICE, or use the ‘force’ option.  
> NOTE: If you had not scheduled check and last time accessed this volume  
> using ntfsmount and shutdown system properly, then init scripts in your  
> distribution are broken. Please report to your distribution developers  
> (NOT to us!) that init scripts kill ntfsmount or mount.ntfs-fuse during  
> shutdown instead of proper umount.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [February 7, 2021, 6:37pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/5 "2021-02-07T18:37:19Z")

</div>

Did you use `ntfsfix`

```auto
[chuck@lizum ~.501]$ ntfsfix --help
ntfsfix v2017.3.23AR.3 (libntfs-3g)

Usage: ntfsfix [options] device
    Attempt to fix an NTFS partition.

    -b, --clear-bad-sectors Clear the bad sector list
    -d, --clear-dirty Clear the volume dirty flag
    -h, --help Display this help
    -n, --no-action Do not write anything
    -V, --version Display version information

For example: ntfsfix /dev/hda6

Developers' email address: ntfs-3g-devel@lists.sf.net
News, support and information: http://tuxera.com
[chuck@lizum ~.502]$ 

```

---

<div class="post-metadata">

**Author:** ![Celestialbiscuit](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@Celestialbiscuit](https://forums.plex.tv/u/Celestialbiscuit)\
**Post date:** [February 7, 2021, 10:41pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/6 "2021-02-07T22:41:59Z")

</div>

Hello chuck, I do appreciate the quick responses, even on a Sunday, matey.

So, I did indeed, just gave it a reboot, and another run through and I’m still at our error message, there.

> sudo umount /dev/sdb2  
> sudo ntfsfix /dev/sdb2  
> Mounting volume… OK  
> Processing of $MFT and $MFTMirr completed successfully.  
> Checking the alternate boot sector… OK  
> NTFS volume version is 3.1.  
> NTFS partition /dev/sdb2 was processed successfully.  
> sudo ntfslabel /dev/sdb2  
> Volume is scheduled for check.  
> Please boot into Windows TWICE, or use the ‘force’ option.  
> NOTE: If you had not scheduled check and last time accessed this volume  
> using ntfsmount and shutdown system properly, then init scripts in your  
> distribution are broken. Please report to your distribution developers  
> (NOT to us!) that init scripts kill ntfsmount or mount.ntfs-fuse during  
> shutdown instead of proper umount.

---

<div class="post-metadata">

**Author:** ![Volts](https://avatars.discourse-cdn.com/v4/letter/v/a5b964/32.png) [@Volts](https://forums.plex.tv/u/Volts)\
**Post date:** [February 7, 2021, 11:28pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/7 "2021-02-07T23:28:49Z")

</div>

@Celestialbiscuit, did you see this:

> [@ChuckPa](#):
>
> ```auto
> -d, --clear-dirty Clear the volume dirty flag
> 
> ```

The reason it’s suggested to use Windows to check/fix the drive is that Windows understands NTFS _best_, and does the _best_ job of fixing any errors, if there are errors.

But since `ntfsfix` doesn’t see anything wrong, you can also use `ntfsfix -d` to clear the **dirty** flag on the disk. That’s why you’re getting the **Volume is scheduled for check.** message.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [February 7, 2021, 11:31pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/8 "2021-02-07T23:31:03Z")

</div>

which ntfs packages installed ?  
distro?

it definitely looks like the os has it mounted

---

<div class="post-metadata">

**Author:** ![Celestialbiscuit](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@Celestialbiscuit](https://forums.plex.tv/u/Celestialbiscuit)\
**Post date:** [February 7, 2021, 11:34pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/9 "2021-02-07T23:34:56Z")

</div>

I’m on Kubuntu?

I don’t know how to tell you the ntfs packages, I’m afraid.

Is it safe to re-run with -d flag on ntfsfix?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [February 7, 2021, 11:36pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/10 "2021-02-07T23:36:18Z")

</div>

Kloned Ubuntu ? 🙄 LOL

you need to learn how to do things like get package listings. (_cough_) 😉

```auto
sudo dpkg -l | grep ntfs

```

now run `mount` and see if it’s mounted

---

<div class="post-metadata">

**Author:** ![Celestialbiscuit](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@Celestialbiscuit](https://forums.plex.tv/u/Celestialbiscuit)\
**Post date:** [February 7, 2021, 11:38pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/11 "2021-02-07T23:38:53Z")

</div>

> rudy@hope:~$ sudo dpkg -1 | grep ntfs  
> dpkg: error: unknown option -1
> 
> Type dpkg --help for help about installing and uninstalling packages [\*];  
> Use ‘apt’ or ‘aptitude’ for user-friendly package management;  
> Type dpkg -Dhelp for a list of dpkg debug flag values;  
> Type dpkg --force-help for a list of forcing options;  
> Type dpkg-deb --help for help about manipulating \*.deb files;

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [February 7, 2021, 11:39pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/12 "2021-02-07T23:39:38Z")

</div>

lowercase L

```auto
[chuck@lizum tv2.513]$ sudo dpkg -l | grep ntfs
ii libntfs-3g883 1:2017.3.23AR.3-3ubuntu1 amd64 read/write NTFS driver for FUSE (runtime library)
ii ntfs-3g 1:2017.3.23AR.3-3ubuntu1 amd64 read/write NTFS driver for FUSE
[chuck@lizum tv2.514]$

```

---

<div class="post-metadata">

**Author:** ![Celestialbiscuit](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@Celestialbiscuit](https://forums.plex.tv/u/Celestialbiscuit)\
**Post date:** [February 7, 2021, 11:40pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/13 "2021-02-07T23:40:48Z")

</div>

```auto
ii libntfs-3g88 1:2017.3.23-2ubuntu0.18.04.2 amd64 read/write NTFS driver for FUSE (runtime library)
ii ntfs-3g 1:2017.3.23-2ubuntu0.18.04.2 amd64 read/write NTFS driver for FUSE

```

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [February 7, 2021, 11:45pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/14 "2021-02-07T23:45:57Z")

</div>

And is it mounted? Did you forget ? LOL

(it’s complaining about the init scripts/service so something is amiss there)

---

<div class="post-metadata">

**Author:** ![Celestialbiscuit](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@Celestialbiscuit](https://forums.plex.tv/u/Celestialbiscuit)\
**Post date:** [February 7, 2021, 11:48pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/15 "2021-02-07T23:48:03Z")

</div>

```auto
/dev/sdb2 on /media/rudy/New Volume type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default
_permissions,allow_other,blksize=4096,uhelper=udisks2)

```

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [February 7, 2021, 11:53pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/16 "2021-02-07T23:53:53Z")

</div>

DUH!!!

you can fix a mounted volume! 🔨  
(that’s why Windows forces you to reboot)

1. Unmount the volume
2. Now fix the partition
3. Next change the label
4. Mount the partition

😉

---

<div class="post-metadata">

**Author:** ![Celestialbiscuit](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@Celestialbiscuit](https://forums.plex.tv/u/Celestialbiscuit)\
**Post date:** [February 7, 2021, 11:59pm UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/17 "2021-02-07T23:59:23Z")

</div>

Heh. Chuck’s mood is improving, I am pleased to aid in this process.

What am I typing to fix the partition, exactly? To check, I’m to do something other than this again, right?

sudo umount /dev/sdb2  
sudo ntfsfix /dev/sdb2  
sudo ntfslabel /dev/sdb2

As I again got our old favourite error message, repeating these steps.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [February 8, 2021, 12:01am UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/18 "2021-02-08T00:01:26Z")

</div>

Improving? 💥

🤣

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [February 8, 2021, 12:02am UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/19 "2021-02-08T00:02:14Z")

</div>

Show me the console output please?

I may be good at this but not a mindreader 😉

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [February 8, 2021, 12:04am UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/20 "2021-02-08T00:04:07Z")

</div>

You’ll probably need to close all the graphical windows plus anything which refers to the drive.

Then –

```auto
sudo umount -f /dev/sdb2

```

If it still complains – Reboot the box

---

<div class="post-metadata">

**Author:** ![Celestialbiscuit](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@Celestialbiscuit](https://forums.plex.tv/u/Celestialbiscuit)\
**Post date:** [February 8, 2021, 12:06am UTC](https://forums.plex.tv/t/mounting-my-linux-library/686573/21 "2021-02-08T00:06:12Z")

</div>

```auto
rudy@hope:~$ sudo umount /dev/sdb2
[sudo] password for rudy: 
rudy@hope:~$ sudo ntfsfix /dev/sdb2
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb2 was processed successfully.
rudy@hope:~$ sudo ntfslabel /dev/sdb2
Volume is scheduled for check.
Please boot into Windows TWICE, or use the 'force' option.
NOTE: If you had not scheduled check and last time accessed this volume
using ntfsmount and shutdown system properly, then init scripts in your
distribution are broken. Please report to your distribution developers
(NOT to us!) that init scripts kill ntfsmount or mount.ntfs-fuse during
shutdown instead of proper umount.

```

[Next page](https://forums.plex.tv/t/mounting-my-linux-library/686573.md?page=2)
