Mount external USB drive in read-only mode

  • Good day to all.


    Double whammy here - complete newbie to both Linux and OMV. Requesting help.


    I am trying to copy files from a hard-drive pulled from my old Window Home Server (WHS) box into my new OMV setup. I currently have the drive mounted in an external USB enclosure connected to the OMV box via USB. OMV version is OMV3, patched to today's date.


    The drive shows up in the File System tab but I get an error message when I try to mount the drive:


    The disk contains an unclean file system (0, 0).
    Metadata kept in Windows cache, refused to mount.
    Failed to mount '/dev/sda2': Operation not permitted
    The NTFS partition is in an unsafe state. Please resume and shutdown
    Windows fully (no hibernation or fast restarting), or mount the volume
    read-only with the 'ro' mount option.
    The disk contains an unclean file system (0, 0).
    Metadata kept in Windows cache, refused to mount.
    Failed to mount '/dev/sdb1': Operation not permitted
    The NTFS partition is in an unsafe state. Please resume and shutdown
    Windows fully (no hibernation or fast restarting), or mount the volume
    read-only with the 'ro' mount option.


    The old Windows box isn't currently available.


    Question: how do I mount the drive with the 'ro' option?


    Many thanks!


    dwayne

  • I'm about to show just how clueless I am.


    First: there are 3 filesystems listed under the File Systems tab:
    /dev/md0 (with label Storage)
    /dev/mmcblk0p1 (no label)
    /dev/sde2 (with label DW)_F)


    I created a directory:


    root@helios4:~# mkdir ntfs_tmp


    Confirmed that the directory exists:


    root@helios4:~# ls
    ntfs_tmp



    I next attempted to mount the USB drive as follows:


    root@helios4:~# mount -r /dev/sde /dev/md0/ntfs_tmp
    mount: mount point /dev/md0/ntfs_tmp is not a directory


    I'm trying to become less clueless - I really am. But I think that it's gonna take a while.


    Can someone guide me in the right direction.


    Another question while we are at it: How do control where I'm creating the new directory? There are two filesystems on this box: the SD card containing the operating system and the raid 10 array where I want to store all of my files. How does Linux know where I want to create the directory?


    Many thanks!


    dwayne

  • Based upon your two responses above, I tried it myself but without success.


    root@helios4:~# mount -r /dev/sde /srv/dev-disk-by-id-md-name-helios4-0/ntfs_tmp
    mount: mount point /srv/dev-disk-by-id-md-name-helios4-0/ntfs_tmp does not exist
    root@helios4:~#


    Here is the screenshot

  • And that seems happy. Many thanks!


    I kinda thought that I might have created my original ntfs_tmp directory in the wrong partition. But I didn't know enough about how all this stuff works.


    I grew up with all the old versions of DOS - starting with DOS 1.0 and progressing all the way up into the various generations of Windows. But this Linux thingy is pretty far removed from what I learned all those years ago.


    I appreciate your guidance and am looking forward to more learning experiences.


    dwayne

  • More newbie questions, if that's okay.


    Now I want to copy the contents of my USB drive to the raid array.


    root@helios4:~# ls /srv/dev-disk-by-id-md-name-helios4-0/ntfs_tmp
    PoolPart.e8654574-c6b2-42b8-b03b-3621eaeaa8e1 System Volume Information
    $RECYCLE.BIN
    574-c6b2-42b8-b03b-3621eaeaa8e1k-by-id-md-name-helios4-0/ntfs_tmp/PoolPart.e8654
    03e52b5d82940e088b05e4d9 Dwayne Recorded TV Temp
    Backups Movies $RECYCLE.BIN Trinity
    Download Music Software uTorrent
    Dropbox Public System Volume Information Windows10Upgrade
    root@helios4:~#


    The folders that I want to copy are in that weird PoolPart.whatever above.


    So: I look inside that directory. I enter:
    root@helios4:~# ls /srv/dev-disk-by-id-md-name-helios4-0/ntfs_tmp/PoolPart.e8654574-c6b2-42b8-b03b-3621eaeaa8e1


    and get:
    4574-c6b2-42b8-b03b-3621eaeaa8e1k-by-id-md-name-helios4-0/ntfs_tmp/PoolPart.e865
    03e52b5d82940e088b05e4d9 Dwayne Recorded TV Temp
    Backups Movies $RECYCLE.BIN Trinity
    Download Music Software uTorrent
    Dropbox Public System Volume Information Windows10Upgrade
    root@helios4:~#


    Notice that the command line wraps - I'm guessing that I don't have PuTTY configured correctly.


    I have already created shared folders in the raid array:
    Movies
    Music
    Photos
    TV


    I've been playing around with Rsync but not getting anywhere.


    How do I go about copying all those folders from my old drive to the new raid array?


    Many thanks!


    dwayne

  • Ookay - I got something going with Rsync but I'm not quite sure what worked. I'll gladly accept any guidance in the meantime and when the copying has finished, I'll look at what I did, post what I did, and ask for suggestions as to the "Proper" way to do things.


    Many thanks!


    dwayne

    • Offizieller Beitrag

    Create a shared folder for ntfs_tmp/Pool...


    In rsync select a local type job with source with the folder above and destination any other shared folder, not in ntfs_tmp. Turn off the checkboxes of permissions and archive mode. Then set the task as disable. Hit the run button in the grid for the selected task and wait.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!