I recently set up a new dual-boot system with Ubuntu and Windows 10. The computer has an internal 256gb SSD, which contains the operating system partitions, and a 2tb HDD, formatted NTFS, which contains files that are shared between the two systems. The NTFS volume is mounted in fstab as /DATA/, and this folder appears in the Ubuntu file explorer:      Text and image files on the volume can be edited without issue, and some programs can access it just fine -- for example, Firefox will save files to /home/[user]/Download, which is a symlink to /DATA/Downloads.  I have several video files of different types on this volume, and none of them are able to play with VLC, nor are they able to play with the pre-installed Videos application. This error message appears when attempting to open the video files in VLC:    I tried to find the log file, but despite turning on the log-to-file option (With debug verbosity) in preferences and supplying a non-read-only path for the file, no log file appeared.   If I move the video files out of /DATA/ and onto the ext4 volume, they play without issue.  It may also be worth noting that video files on the Windows system partition, which is also NTFS but is NOT mounted in fstab and is accessed through "Other Locations," play without issue.  Upon further investigation, multiple applications that have the option to open files using a "Browse" feature are unable to access the /DATA/ folder. Here is a screenshot of the file explorer interface when attempting to open a video file through an already-open VLC window:    As you can see, /DATA/ is absent. This screenshot is of the file browser in Discord, which is also unable to access the /DATA/ folder:    The drag-and-drop functionality in Discord also does not work.  The entry for this drive in /etc/fstab is the following:  UUID=[redacted] /DATA ntfs defaults,uid=1000,gid=1000 0 0   I also tried using this alternative line, following an online tutorial, but it didn't seem to change anything.  UUID=[redacted] /DATA ntfs-3g defaults,nls=utf8,uid=1000,gid=1000,umask=022 0 0   Thanks in advance for any help! I'd like to use Ubuntu more, but this pesky issue is unfortunately causing me to stay on the Windows side of my machine more than I'd like.  EDIT: It has been suggested that this issue is a duplicate of an issue relating to snaps accessing removable media. The fix for this other issue is changing a setting within Ubuntu Software; however, I found this setting to be set to the "correct" value by default. Curiously, even with the setting enabled, the snap version of VLC is still unable to access actual removable media (in addition to the non-removable drive mounted to /DATA/), so it appears that this option does not function properly for VLC at all. The apt-get version, however, can access everything.
75
I have Ubuntu 18.04 LTS installed. I inserted USB-flash to my laptop. It was automounted to /media/username/DISKLABEL and opened in Nautilus. I can read and write objects to it. How can I access it from the application, which is installed as Snap? I tried snaps of the following applications such as gedit, arduino-mhall119, organize-my-files. All them show me errors if I navigate to /media folder:    Could not read the contents of Media Error opening the directory of '/media': permission denied  Output of active Snap  is below: $ snap interfaces  | grep -v &quot;.*-$&quot; Slot                             Plug :browser-support                 organize-my-files :core-support                    core:core-support-plug :cups-control                    gedit :desktop                         gedit,organize-my-files :desktop-legacy                  gedit,organize-my-files :gsettings                       gedit,organize-my-files :home                            arduino-mhall119,gedit,organize-my-files :network                         arduino-mhall119,gedit,organize-my-files,pulsemixer :opengl                          organize-my-files :pulseaudio                      organize-my-files,pulsemixer :unity7                          arduino-mhall119,gedit,organize-my-files :wayland                         gedit :x11                             arduino-mhall119,organize-my-files,pulsemixer gnome-3-26-1604:gnome-3-26-1604  gedit gtk-common-themes:gtk3-themes    gedit gtk-common-themes:icon-themes    gedit gtk-common-themes:sound-themes   gedit -                                arduino-mhall119:serial-port -                                gedit:avahi-observe -                                gedit:mount-observe  Updates:  connecting mount-observe to Gedit with snap connect gedit:mount-observe does not help. it seems that we need special Snap with support of  interface.
27060
Sorry if this question is already solved.  I changed my Operating System, from Windows to Linux Ubuntu 13.04.   I have 2 partitions:   C: (system) and  M: It's NTFS; there I have my information, music, photos. When I want to access the Disk to use the information, I can't get past this error:   Error mounting /dev/sda2 at /media/love/Mis Archiivos: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda2" "/media/love/Mis Archiivos"' exited with non-zero exit status 14:  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.    Clarification: I don't have 2 OSes. I only have Linux installed.
94248
When I installed Ubuntu 12.04, I didn't know how to properly set the mounting points for the partitioned logical drives. So, I just set it randomly. Now when I open the Home folder I cannot see any of the logical drives on the left pane. I tried to change their mounting point but couldn't.  The contents of my fstab file /etc folder is:  # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # &lt;file system&gt; &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt; proc            /proc           proc    nodev,noexec,nosuid 0       0 # / was on /dev/sda1 during installation UUID=691fa0bd-350f-4378-b5c7-82d277dd83c2 /               ext4    errors=remount-ro 0       1 # /srv was on /dev/sda8 during installation UUID=753d012e-ac3c-42fd-b388-d83115e88d26 /srv            ext4    defaults        0       2 # /tmp was on /dev/sda5 during installation UUID=34d8c35a-7900-4acd-988d-880792849673 /tmp            ext4    defaults        0       2 # /usr was on /dev/sda6 during installation UUID=4f7f4287-5feb-4b2b-86bb-93fe74905149 /usr            ext4    defaults        0       2 # /var was on /dev/sda7 during installation UUID=e2933e36-7906-48ac-b2ac-93500537cd4a /var            ext4    defaults        0       2   My Partitions are mounted at the following locations: /dev/sda5 is mounted at /tmp; /dev/sda6 is mounted at /usr; /dev/sda7 is mounted at /var; /dev/sda8 is mounted at /srv.  If I attempt to change the contents of fstab file, it says that only root can change the contents.  How do I change the mounting points of the partitions such that they show up in the Home folder?
34658
I dual boot Ubuntu 16.04 and Windows 8.1.  All of Ubuntu lives on an SSD, and the core Windows stuff lives there too, in a separate partition.  The main User folders for Windows (Documents, Downloads, etc.) live on a separate hard drive.  I'm running out of space in Ubuntu. I'd like to move /opt and /usr/local to the hard drive.  All the Q&amp;A I've found about this, however, starts with the assumption that these folders are already mounted on a different partition, or that I can format the destination drive. Neither of these is true for me.  I don't remember exactly what I did when I set this computer up, but I do know the hard drive is accessible from Ubuntu (and is at /dev/sdb1, mounted at /media/steve/storage).  Is it possible to do what I'm asking?
60083
I have the following instruction written in /etc/fstab used to mount a samba shared NAS at boot of my Ubuntu server  //192.168.100.104/creativelab /home/pec/CreativeLab cifs credentials=/home/pec/.creativelabcredentials,vers=1.0,sec=ntlm,_netdev,iocharset=utf8,users 0 0   It used to be working with Ubuntu 16.04, but when I upgraded my server to 18.04 stopped working.  I tried changing several options like vers=2.0, vers=3.0, sec=ntlmv2, sec=ntlmssp removing _netdev, removing users and infinite combinations of them, but none solved the problem.  If I digit sudo mount -a once logged in I get the device mounted, while I get an error if I try to change vers parameter in /etc/fstab, but I cannot connect the share on boot.  dmesg returns the following lines about cifs  [   24.637155] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount. [   25.894015] e1000e: eno1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None [   25.894054] IPv6: ADDRCONF(NETDEV_CHANGE): eno1: link becomes ready [   26.713777] CIFS VFS: Dialect not supported by server. Consider specifying vers=1.0 or vers=2.0 on mount for accessing older servers [   26.713791] CIFS VFS: cifs_mount failed w/return code = -95   It seems like instruction vers=1.0 in /etc/fstab is ignored.
41798
I have updated to ubuntu 11.10. The problem is when I plug in my external harddisk,all the files are trying to get opened with movie player. Also when I click the icon of external harddisk which shows up automatically when we plug in external harddisk in the right side panel, movie player opens up and try to open the files in it.   How can I change this default opening program from movie player to file browser?
61616
I have dual booted ubuntu 13.10 and windows 8.1 in my laptop. Earlier my window partition(C drive)  and other NTFS partition was accessible from ubuntu.  Now its giving me this error and not mounting:  Error mounting /dev/sda3 at /media/waqar/120ABDC90ABDAA5D: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda3" "/media/waqar/120ABDC90ABDAA5D"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda3': 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.   C drive(window partition) is giving this error:  Error mounting /dev/sda2 at /media/waqar/BAD4D962D4D92185: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda2" "/media/waqar/BAD4D962D4D92185"' exited with non-zero exit status 14: Windows is hibernated, 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.   I have restarted my system, booted in windows and then again shut down the system properly but its continuously giving me the same error.   Any help?
52866
Why, when I create a file from within Windows for example, can I not see it under the Linux sub system in Windows 10 (bash.exe)   The screenshot should explain.  Folder: OMG was created from within Windows Explorer.  Folder OMGBash was created from with Linux sub system bash.exe  When a folder OR file is created outside of bash.exe I can never see it, regardless of permissions and ownership.  To show the information I have had to use Cygwin to show file permissions, I have also altered the permissions to see if the folder would appear. (The two command windows at the bottom)   Screenshot showing folder, bash.exe and Cygwin permissions:    I am trying to move all my Cygwin scripts over to the Linux subsystem, but I don't fancy recreating every file, then having to copy and past using bash, then reformatting then using Dos2unix (very long winded).  Found this on GitHub for the Linux subsystem:      copying directly into the Linux subsystem from Windows is not   supported, according to discussion on other tickets. There is a   directory under AppData somewhere (I forget where) that appears to   contain the files for the WSL filesystem. But if you put new files   there, or modify existing files there, your changes are not reflected   correctly inside WSL.      My best guess is that Linux needs to store different metadata (and   more caching information, etc, since its disk-buffering model is also   different) about its files than Windows does, and that this is   currently implemented by storing the master copy of the structure of   the Linux filesystem in a database of some sort, and just using the   Windows filesystem as a convenient BLOB-store for that database.      If you really need to do this, a workaround would be to write a   drag'n'drop .bat script or somesuch that does bash.exe -c "mv %1   /home/$USER/". (You'll have to do some clever work with sed and tr,   probably, to translate %1 to a valid WSL path.)      Alternatively -- could you put your files in a Windows directory and,   within WSL, do "cd ~; ln -s /mnt/c/path/to/my/files" to make them   appear to be in your WSL homedir?
93191
I am running Ubuntu 14.04 on LEGACY and Windows 8.1 on UEFI . I have my media ( movie songs and video songs) in "MY MUSIC" and "MY VIDEOS" folders in windows.   I am able to access different hard drives except C drive ( windows ). Now can someone please tell me how to access those "my music" and "my videos" folders in UBUNTU? because i cant find them in ubuntu.  Output of lsblk:  NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT sda       8:0    0 465.8G  0 disk  ├─sda1    8:1    0   260M  0 part  ├─sda2    8:2    0   1.5G  0 part  ├─sda3    8:3    0   260M  0 part  ├─sda4    8:4    0   128M  0 part  ├─sda5    8:5    0 245.7G  0 part  ├─sda6    8:6    0   350M  0 part  ├─sda7    8:7    0  97.7G  0 part  ├─sda8    8:8    0  72.3G  0 part  ├─sda9    8:9    0  25.4G  0 part / ├─sda10   8:10   0  22.3G  0 part  ├─sda11   8:11   0     2M  0 part [SWAP] └─sda12   8:12   0     1M  0 part  sr0      11:0    1  1024M  0 rom
57979
I followed the steps for sharing folders between Windows 7 and Ubuntu in VirtualBox.  Despite that the folder appears with a X sign and gives me the following message when a try to open it:     The folder content could not be displayed   When I choose Shared Folder from the VirtualBox Device menu, the following warning is displayed:     On the system page, you have assigned more than 50% of your computer's memory (2.93 GB) to the virtual machine...   How can I successfully share folders between Windows and Ubuntu using VirtualBox?
72461
It's pretty clear that Windows' 10 "host" filesystem is mounted at /mnt/c/ from "Linux" perspective of view. But is it possible to get an access to "Linux" filesystem from Windows? If so, where it is?
110523
This is a followup on my original post  which may be deleted in the future.  In the process of backing up my audio books, I "permanently" removed a folder (with subfolders) that I had already exclusively moved to that drive. It's path is /media/gratis/Seagate Expansion Drive/Audiobooks/Jason Dark. The sole folder in that should be called John Sinclair; but I'm not sure about that.  Which tool offers the best chances to recover those files? I haven't written plenty on that drive afterwards; so I hope for the best. It's not that other methods failed; I just cant get my head around what to do and I want to be cautious. It's a NTFS Drive.  According to testdisk it has an "EFI GPT" Partition table.  Disk /dev/sdb - 5000 GB / 4657 GiB - CHS 608001 255 63, sector size=512 - Seagate Expansion Desk, FW:9401   Information According to "Disks" (Ubuntu Standard Software):  NTFS; GUID Partition Table; [...] Partition Type: Microsoft Reserved   Attempt 1: First off, ntfsprogs seems to no longer be in repos (those mentioned by another user); but it is already installed on my machine so no problems there. I always get the error:     Access is denied because the NTFS volume is already exclusively opened. The volume may be already mounted, or another software may use it which could be identified for example by the help of the 'fuser' command. You can use force option to avoid this check, but this is not recommended and may lead to data corruption.   Although I only just plugged it in and even quit Nautilus by force (nautilus -q).   Therefore, I ran sudo ntfsundelete /dev/sdb2 -f. That gave me a list of a bunch of files, 205013 to be exact. Now, what I want is the content of the directory .../Audiobooks/Jason\ Dark/ to be restored. What do I have to do? It's contents are .m4b &amp; .opus files and folders, of course.
119082
Hey i have dual boot windows and Ubuntu. When i installed ubuntu all Local Disks worked well but when some time past i can not access to local disk D. I have very important files there. I cant access to windows too it is broken. When i try to mount local disk D it shows me the error:     Error mounting system-managed device /dev/sda3: Command-line `mount   "/mnt/94EE82ACEE8285E8"' exited with non-zero exit status 13:   ntfs_attr_pread_i: ntfs_pread failed: Input/output error Failed to   calculate free MFT records: Input/output error NTFS is either   inconsistent, or there is a hardware fault, or it's a   SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows   then reboot into Windows twice. The usage of the /f parameter is very   important! If the device is a SoftRAID/FakeRAID then first activate it   and mount a different device under the /dev/mapper/ directory, (e.g.   /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation   for more details.   Can i mount local disk somehow from Ubuntu?
30817
Note: TL;DR, scroll to bottom for summary. I recently set up my computer for a dual boot between Ubuntu 9.10 and Windows 7. My current drive setup is as follows.  | A1 |     A2       | | B1    |  B2  | B3 |        A1: 100 mb, windows 7 "System   Reserved" boot partition      A2: 230 gb, data section, this one   needs to be shared between the   operating systems      B1: 125 gb, windows 7 OS      B2: 123 gb, ubuntu OS      B3: 2gb, linux swap space     Pretty much I want to have my documents, music, pictures, videos, etc accessible from both operating systems. My first attempt involved making the data (a2) partition NTFS, and moving my home folder from ubuntu to the data partition. However, as I read NTFS does not work nice with permission, and it messed up my home folder. My next idea is one of the following: 1) format the data partition to ext2/3/4 and move my home folder from linux there, and get a driver to read ext partitions in windows 7. The problem with that is that most of the ext drivers/software are not compatible with windows 7 or do not integrate with windows explorer (I really don't want to open a separate software window just to access my data, plus it's probably not compatible with other software.)  looks promising, but I'm not sure how it works with ext4 and windows 7 (not officially supported, when trying in Vista Compatibility Mode, it tells me I need to format the ext drive to use it). My next idea, 2) keep the home folder in ubuntu where it is, but create symlinks for the Documents, Music, etc folders to an NTFS formatted Data (A2) partition, and add those locations to the windows 7 libraries. I'm not totally sure how the permissions would work out, but it should be fine since it's only the documents, music, etc and not the important config files in the rest of /home/user/. Correct me if I'm wrong. Currently, symlinks is my best idea, although i'm not sure how it will work.  Any suggestions, additions to my ideas, links, pointers, whatever would be greatly appreciated. Even if it means I should reformat both my drives and repartition (2 250gb drives if you want to suggest a setup for that), I won't be too opposed if that's the best suggestion (I've gone through the format/install/format/reinstall process 5 times over the past 3 days, once more won't hurt me).    TL;DR, summary:  I have two hard drives. One is partitioned for Ubuntu and Windows 7, the second one I want accessible to both operating systems to store documents, music, pictures, videos, etc. Suggestions on how to set up the data drive.    P.S. bonus if I can get an apache server document root folder working between the two OS's as well (permissions could become very complicated, so don't worry too much about that)  P.P.S. Related question, but data viewing is one way:
3468
I've set up fstab to auto mount media drives on a Linux Mint machine. The OS is installed on a IDE/ATA Disk while 3 SATA disks hold data to share. The BIOS has the ATA disk as first boot device. All SATA drives are NTFS non bootable with a single partition.    When I installed the OS: The ATA disk was seen as sda and the other drives as sdb, sdc and sdd. The problem is that every so often when I reboot, the drives are changing: sda becomes sdd, sdb becomes sda, etc... It doesn't seem to affect the OS, but obviously my fstab config sends errors.   All the drives seem fine, and none of them is ever missing.  So, question: can I force to map the drives with fixed path? I tried using Labels but it didn't seem to work.  Also, I don't know if it is abnormal and/or relevant but my ATA drive has four partitions: - sda1 => OS - sda2 => Empty EX4 partition, maybe concurrent OS in the future - sda4 => Extended partition - sda5 => Swap - sdb4 => SATA HDD 1 - sdc1 => SATA HDD 2 - sdd1 => SATA HDD 3    Isn't there something weird? I'd have thought I would get sda1 to 4, then sdb1, sdc1, and sdd1.  Thanks for your help!
94267
Ive been tearing my hair out for about a week now trying to figure out how to do this.  I have two HDD's in my server, both 250gig. They both have ubuntu installed, one is currently booted. I want to mount the second (old) drive to /mnt/external  If I mount through /dev/disk/by-uuid It just mounts the boot partition, and not my actual data.  I also tried vgs-v to determine, but the names are the same, and don't know where to go from here.  root@onlinelabtests:~# vgs -v Finding all volume groups Finding volume group "SysVolGroup" Archiving volume group "SysVolGroup" metadata (seqno 3). Archiving volume group "SysVolGroup" metadata (seqno 3). Creating volume group backup "/etc/lvm/backup/SysVolGroup" (seqno 3). Finding volume group "SysVolGroup" Archiving volume group "SysVolGroup" metadata (seqno 3). Archiving volume group "SysVolGroup" metadata (seqno 3).` Creating volume group backup "/etc/lvm/backup/SysVolGroup" (seqno 3). VG          Attr   Ext   #PV #LV #SN VSize   VFree VG UUID       SysVolGroup wz--n- 4.00m   1   2   0 233.72g    0  812dMv-qSf3-xnpP-khlB-mkIf-q64l-Z2Rawf      SysVolGroup wz--n- 4.00m   1   2   0 233.72g    0  Z3IbWM-FEvq-n6fs-lhm9-5uQq-mdxj-QNfDLJ   and this  root@onlinelabtests:~# vgchange -a y 2 logical volume(s) in volume group "SysVolGroup" now active 2 logical volume(s) in volume group "SysVolGroup" now active   But /dev/disk/by-uuid still doesnt show anything else. Any help appreciated.
116575
I installed Ubuntu 13.04 alongside Windows 8 but when I want to access Windows drives I see this error massage:  Error mounting /dev/sda1 at /media/xalid/3A56A42656A3E0BD: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda1" "/media/xalid/3A56A42656A3E0BD"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda1': 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.   As a workaround I tried this:  mkdir /media/sd4 mount -t ntfs-3g -o ro /dev/sda1 /media/sd4   This allows me to access the partition, but I am unable to change anything on the drive since it was mounted as read only.   How can I access to my Windows drives whenever I login to Ubuntu?