Tag Info

New answers tagged

0

Too fast diagnosis I read online that this might be resolved by repairing permission on the drive. Unfortunatly, from the description of your problem, this is wrong. What need to be repaired is the filesystem on your external disk SEAGATE. Analysis of lsof The output of your lsof command tells that the command mds (1st column) is actually reading ...


0

It appears that Spotlight is indexing this drive. There could be a problem that is causing Spotlight to hang up and constantly pound this drive. The mds process is the metadata server. Try killing this process and then tell spotlight to not index this drive. To disable spotlight indexing go to System Preferences -> Spotlight -> Privacy and add the disk to ...


1

I didn't bother researching how to import missing modules and such. That's a pretty steep learning curve for my taste, as I am only starting to use GNU/Linux. Instead, I formatted the UFD with ext4 using a healthy Ubuntu installation on another PC. I was then able to mount it on the patient PC, and from there I only had to copy the file. In terminal on the ...


0

Like the error message notes, it's often caused by Windows's Hybrid Boot(tm) aka fast startup. It's sort of midway between hibernation and normal shutdown and often leaves drives dirty. Disable it if you run into this problem again.


2

Further to Basile's answer, once you are able to successfully mount the ntfs partition you may need a driver such as ntfs-3g in order to be able to write/copy data from it.


2

As I commented, the (NTFS) file system was dirty, as the error message was saying. So checking it (on Windows) with a chkdsk command (or the Windows equivalent of fsck) -to clean it- then rebooting Linux could be enough. If you absolutely need Windows with some data shared with Linux, you could consider using an Ext4 (or Ext3) file system (shared with ...


0

I think the command you're looking for here is udevadm. You'll use the trigger and test parameters to trigger a rescan of the udev events, and to test a specific event, respectively. I learned this the hard way when putzing around with the new network device naming in EL 7. Good luck!


1

External media/drives mounting is handled by udisks2 on most modern distros. I don't think there's any trivial way to change the default mount options as they are hard-coded (see FSMountOptions in udiskslinuxfilesystem.c) that is, they're not configurable (at least not yet1). Your options are quite limited: unmount the partition and remount it with different ...


0

Linux Mint 17.1 Cinnamon 64-bit or a recent Ubuntu/Debian distribution. sudo apt-get update sudo apt-get install mtp-tools Unplug the USB cable and reconnect your Android device. The Android device should now be recognised as expected. If you are still having problems, please try the following. Check if you have other MTP software installed, run the ...


4

UUID=e67dc3e4-1ac3-4a68-b43f-c77c4dc965d9 is the partition, which can be identified either by its name, its label, or its UUID (Universal Unique Identifier) as in this case / is the mount point; here the partition will be mounted at the root ext4 is the filesystem type; here's the EXT4 journaling filesystem, successor of EXT3 and the most used filesystem ...


2

In Linux, you can get this information from /proc/<pid>/mounts where <pid> is the ID of the process you are interested in. There is also: /proc/<pid>/mountinfo which contains additional information but it is in a different, non-/etc/mtab-compatible format.


2

If this busybox comes with findfs you can do mount $(findfs UUID=cb586ec4-e121-437c-83db-e46df501e046) /mnt/dest mount $(findfs LABEL=foobar) /mnt/dest Otherwise you'll just have to find room for a better version of busybox I guess? You can download some precompiled ones for various architectures here: http://www.busybox.net/downloads/binaries/latest/


1

From build_VM, you will probably have to export the newly created and mounted filesystem. Then you'll probably have to mount that (possibly in a different location) on your "local machine". In general this is a NFS thing not a VM thing. When you export a filesystem in NFS, you don't export other NFS mounted file systems underneath that.


0

df $(dirname/your/destination/directory/filename) The basename is used in case the filename does not already exist. The directory should already exist. If it doesn't keep taking the basename until it does.


1

The proper solution is really to mount it twice. On the command line: mount -t none -o bind /source/dir /destination/dir mount -t none -o bind,remount,ro /source/dir /destination/dir In /etc/fstab: /source/dir /destination/dir none bind 0 0 /source/dir /destination/dir none remount,bind,ro 0 0 The manual (man ...


0

I suspect it is because the mount point is owned by root, I've had that happen to me on my Chromebook Ubuntu crouton environment. Check the owner and permissions of the mount directory.


0

To automatically mount everything in your /etc/fstab, but try to make the mount points first, you can use a one-liner like: $ grep -E '^\s*/dev' /etc/fstab | awk '{ print $2 }' | xargs mkdir -p $ mount -a Broken down: Search for all fstab entries which mounting physical devices (not e.g. the procfs or tempfs): grep -E '^\s*/dev' /etc/fstab Select the ...


1

write a udev rule which first mounts the USB-drive and second runs my-script # cat /etc/udev/rules.d/11-media-by-label-with-pmount.rules KERNEL!="sd[a-z]*", GOTO="media_by_label_auto_mount_end" ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="media_by_label_auto_mount_end" # Get label PROGRAM=="/sbin/blkid -o value -s LABEL %N", ENV{dir_name}="%c" # use ...


0

Windows is hibernated, refused to mount Chances are that Windows really is hibernated. Windows does this automatically when you tell it to shutdown normally. The benefit is that you get a faster apparent start-up time. To shutdown Windows without hybernating, issue the following at a command-prompt (in Windows): shutdown /s You might also want ...


1

Mounting a CD image makes the files from that CD image available. The files are still stored on the CD image. Mounting doesn't copy anything, it just makes some files accessible. When the CD image is unmounted, the files will no longer be accessible. Extracting the CD image (the ISO file) copies the files from the image to some other location. One way to ...


1

1- You can use mount|grep <directory name> or simply mount command also. 2- The preexisting files will not be accessible because the directory is pointing to the new data and not the previously existed directory. In other words, No change will be applied on previously existing files and you will not see the previous files, But they are existing on the ...


0

Per a RHEL Support Tech: We strongly recommend updating to the latest kernel and cifs-utils package to mount shares on Windows 8 and newer systems as there's been many improvements made to CIFS in these packages since RHEL's 6.0 release. However, first I'd suggest trying the ntlmssp security mode, which may be required by Windows 8. This is available in ...


0

It turns out that you just have to specify the id of the subvolume. To find it, do # btrfs subvolume list <path to btrfs drive/fs> For fstab, the line will be very similar to the line for the btrfs drive in general, but with the subvolid option set. Mine looks like this since I'm using LVM: /dev/mapper/ubuntu--vg-vmdrive /mnt/vmdrive btrfs ...


1

Nowadays removable drives are handled by udisks. You can use udisksctl utility on command line. $ udisksctl status MODEL REVISION SERIAL DEVICE -------------------------------------------------------------------------- HITACHI HTS545032A7E380 GGBZB6C0 TA8B113VHLXE6N sda M4-CT256M4SSD3 000F ...


3

A directory is a mount point if the st_dev field returned by stat is different from the value in its parent. This is the criterion that most tools use (find -xdev, rsync -x, du -x, …). This is provided as the os.path.ismount function in Python. This won't help you directly, because if a directory is empty, that doesn't mean that it was a mount point at some ...


2

SSHFS doesn't implement the inotify API. Making that work would require a fundamental redesign for two reasons: SSHFS uses SFTP to communicate with the server. The SFTP protocol has no facility to be notified of file changes on the server side. The server might not even have a file change notification mechanism — this could be made an optional feature of ...


1

Linux has no hook that runs when a device is mounted in all circumstances. Udev handles devices when they appear in the system. It can run a command at that point (example). Although you can run mount from udev, this conflicts with Udisks, and in particular doesn't work on systems using systemd. It's possible to monitor mounts performed by Udisks, but I ...


4

You can use mountpoint to check if the given directory is a mount point. Example mountpoint /mnt/foo; printf "$?\n" /dev/foo is a mountpoint 0 mountpoint /mnt/bar; printf "$?\n" /dev/bar is not a mountpoint 1 As the return value indicates, this can easily by used in an if statement in a script.


3

You need to create a filesystem on the new partition still. You created the partition, but it doesn't have a filesystem on it (as shown by its lack of entry in df -T). Do mkfs -t ext4 /dev/sda4 then try to mount it after


1

It is impossible to distinguish from the server side an SFTP session that the client accesses via SSHFS from an SFTP session that the client accesses via some other client software. But you can definitely obtain more information about the SFTP session. Each SFTP session has an associated sftp-server process. On Linux, you can list the process IDs running ...


0

Consider using fuse: user mode file-system. It allows ordinary users to mount file-systems. If there is a fuse file system available.


1

Try genisoimage. It has all you need to handle ISOs. After you install it you'll also be able to use mc to view ISO content.


0

It'd appear you're using a compression algorithm that has been patched in to the Xbian kernel, but not the Ubuntu kernel. It looks like Xbian patched in and defaulted to lv4. That patch hasn't made it to the mainline kernel (see, e.g., [1] and [2].) So you'd probably have to rebuild your Ubuntu kernel with the Xbian LZ4 patch (the only way you wouldn't is ...


4

If the remote directory is mounted, it will be listed in the output of mount. That contains most of the information you need: $ mount -t fuse.sshfs terdon@123.456.7.8:/remote/path/dir/ on /home/terdon/foo type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=1001,group_id=1001) With that in mind, you could write a little script that parses the output and ...


0

10- as mentioned by jasonwryan, use high numbering (90's good). So you rule is not going to be overridden by another one. Use the minimum keys just as you really need. Example, != & GOTO/LABEL instead of directly == ACTION=="add", KERNEL=="sdb*", RUN+="/usr/bin/mount /dev/sdb1 /media" Your target was sdb1 with fixed command, minimize the blind match ...


0

This answer might not be immediately relevant, but I found it during a chroot rescue. My circumstance: I installed Windows after Ubuntu on my computer and my boot loader(grub) got corrupted and os-prober couldn't see the Ubuntu images on the system. Here is what I did: 1) Booted using a Ubuntu Live CD. 2) From the disk manager found out the location of ...


0

Here is the wiki for configuring polkit rules for udisks/udisks2 in order to mount partitions by non-root (e.g. users) group. Save the code below to /etc/polkit-1/rules.d/50-udisks.rules polkit.addRule(function(action, subject) { var YES = polkit.Result.YES; var permission = { // only required for udisks1: ...


1

It is possible to generate an fstab entry as described here: https://wiki.archlinux.org/index.php/ECryptfs#Auto-mounting_2 Using the mount command one can get the correct mount options and add this to the fstab file /path/to/encrypted/dir /path/to/decrypted/dir ecryptfs ...


0

I discovered that the grub2 boot commands for my Arch partition look for the UUID in order to figure out which partition to mount. So, the fix is, use gparted to change the partition UUID of the copied partition, and the original Arch partition works as before.



Top 50 recent answers are included