mount command, allows mounting of a file system at a specified point in the file hierarchy.

learn more… | top users | synonyms

0
votes
1answer
93 views

sudo mount from webserver (Apache) by mod_php, result not visible by root

Intial question: http://stackoverflow.com/questions/19598201/umounting-through-exec-with-sudo-the-user-is-a-sudoer-with-nopasswd Basically, I have a PHP script, that: exec('sudo mount ...
3
votes
1answer
664 views

USB Media filesystem problem

My USB is not detected recently, I tried mount, fdisk, dd, gparted, mkfs.vfat :~# tail -f /var/log/syslog Oct 27 12:54:29 mohammad-Inspiron-N5110 kernel: [18843.105772] usb 3-2: New USB device ...
0
votes
1answer
726 views

Questions regarding mounting CD-ROM on linux

I am trying to mount the dvd+rw drives in my Debian 7 PC. There are two drives and I can see that these exist in /dev: $ ls -la /dev/dvd* lrwxrwxrwx 1 root root 3 Oct 26 07:47 dvd -> sr1 ...
2
votes
2answers
1k views

Format windows (NTFS) hard drive on Ubuntu using command line

This is really a two part question. I've never formatted a hard dirve on Linux/Unix, so please bear with me. I had an old Windows machine which recently died. So I decided to put the hard drive into ...
1
vote
1answer
411 views

Can't copy files from a loop-mounted ISO image: Input/Output error

Please advise - why do I get an "Input/output error" when I try to copy some files from my ISO mount to /var/tmp I mount the .iso file under /mnt and try to copy files from the isolinux directory to ...
1
vote
1answer
295 views

What could cause a run time remounting of my /var partition to be read only?

I have a buildroot generated embedded linux system (x-86 geode processor) using an initramfs but with /var and /etc mounted onto a compact flash device using the default mount options specified in ...
1
vote
1answer
150 views

Cannot mount filesystem under luks. Device does not exist

I made one big luks device and re-used it on my debian install, then i ran into some boot problems and i need to acess the filesystem. The problem is, i decrypt the luks device and when i try to ...
7
votes
4answers
979 views

Allow non-superusers to mount any filesystem

Is it possible to allow some particular users (e.g. members of a group) to mount any filesystem without superuser privileges on Linux? (Another question might have been "in what ways a user can harm ...
2
votes
1answer
100 views

Minimizing “idle” writes on a file system

Leaving out many details, I need to create a read/write file system on a device with the following main goals: Eliminate all writes while data is not being explicitly written. Reduce all indirect ...
3
votes
1answer
80 views

Securing /tmp on OpenVZ [closed]

/tmp should be mounted as a separate filesystem with the noexec,nosuid options set /var/tmp should either be symlinked to /tmp or mounted as a filesystem /dev/shm is not mounted with the noexec,nosuid ...
0
votes
1answer
137 views

RHEL - df -h v/s graphical disk usage analyzer tool

I am trying to understand the disk usage in my RHEL system. When I run the Disk Usage Analyzer tool graphically, my screen shows the below output. However, if I run the command df -h I get the ...
3
votes
1answer
67 views

Why does a manual mount set different file ownership?

I've been using the terminal for almost everything: in fact, I often don't even log in through the interface, I use the tty1 and go to the web with text-browsers. So, the external drive doesn't ...
2
votes
1answer
185 views

Mount NTFS drive with 777 permissions

I need to mount a NTFS drive with permissions set to 777. The code i have in fstab now is: /dev/sdb2 /disk ntfs defaults,nls=utf8,umask=000,uid=1000,windows_names 0 0 But ...
2
votes
3answers
392 views

vfat not recognized in debian

I want to mount my usb drive (kindle vfat32). When I do mount -t auto /dev/sdf1 /mnt/usb I get mount: unknown filesystem type 'vfat' I checked if the drive is recognized with sudo fdisk -l and ...
66
votes
12answers
5k views

Why is Linux's filesystem designed as a single directory tree?

Can anyone explain why Linux is designed as a single directory tree? Whereas in Windows we can have multiple drives like C:\, and D:\, there is a single root in Unix. Any specific reason there?
1
vote
1answer
369 views

autofs error - “No such file or directory”

I am trying to link a remote RHEL machine to our network. I can now ssh between the machines using fixed NAT addresses. I have copied the /etc/auto.misc, /etc/auto.master and /etc/exports files from ...
1
vote
1answer
79 views

How to change mountpoint name?

This question has been asked before, but because I have a few more doubts about the process. I am working in ubuntu, this is what df -h shows: Filesystem Size Used Avail Use% Mounted on ...
0
votes
0answers
83 views

fstab doesn't mount after boot of a virtual machine

I created virtual machine out of WordPress turnkey appliance (I believe it's based on Ubuntu) inside Virtual Box. I am able to mount a folder on turnkey from the host (Windows7) manually. So I added ...
1
vote
1answer
555 views

Cannot mount LVM2 partitions [closed]

I have a 160GB hard drive here with an LVM2 partition that contains two EXT3 partitions that I'm trying to mount. However, when I try to mount either of those two partitions inside the LVM2, I get ...
3
votes
1answer
389 views

umount failed: device busy

I have a folder in /tmp that is mounted as ramfs. After some action that my script does, I delete everything inside said folder with the command: rm -R -f "$tmp_dir"/{*,.*} Then, I try to unmount ...
0
votes
2answers
88 views

What happened to the old files if we mount a drive to the directory? [duplicate]

mkdir /home then we mount something on /home. Say /home already contains files. What happen to the old files after a new drive is mounted to that directory?
0
votes
2answers
350 views

Regarding the output of “df -h” in Linux

Regarding the output of "df -h" in Linux. [root@]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 193G 82G 101G 45% / tmpfs 1.9G 272K 1.9G ...
1
vote
3answers
286 views

udisks2: permission denied

When I mount blank btrfs partition in Dolphin, I get "Permission denied" on write. You can see that it's mounted on /run/media/%username% dir which is correct, but owner is root. [doctor@doctoror ...
1
vote
1answer
170 views

How to trigger mount/umount before/after hibernation?

How to trigger mount/umount before/after hibernation? I use s2disk. Note: Debian
4
votes
1answer
2k views

Samba share permission denied user writing file but still shows

Very strange issue... Samba share on remote: [javaerpm] path = /u/abas/erpm/java force user = erpm guest ok = yes read only = no writeable = yes Mount command on local using ...
0
votes
2answers
216 views

fstab mount drive as my /home

I am trying to: mount my 2TB external USB hard drive as my home directory at /home/peter ensure that the home directory is owned by me (not root) do all this automatically at bootup Currently: ...
1
vote
2answers
82 views

mknod of content in directory

I would like to create a virtual device from a directory i.e. you know, there's these cloud storage providers like dropbox and co and they generally have a software client and then give you access to ...
0
votes
0answers
540 views

USB hard drive not recognized

My computer runs Cruncbang Linux (debian based). When I try to connect my friends external USB hard drive, it's not recognized. sudo fdisk -l doesn't show any new devices when I plug the USB drive in. ...
2
votes
0answers
26 views

Cannot Remove (Unmount) Server Share (NFS) from Mount List [duplicate]

Note on Duplicate - This has been marked as a duplicate quite a few times, so can someone link me to a solution which works for me? Because everything I've tried in all the other posts I've found, ...
1
vote
2answers
490 views

Can anyone explain the output of mount?

I'm getting the following output when the mount command is executed. [root@]# mount /dev/sda2 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type ...
1
vote
3answers
181 views

Can't change group of files on mount point

I have mounted some ntfs drives. /etc/fstab looks like this: /dev/mapper/fedora-root / ext4 defaults 1 1 UUID=b6603ac8-e004-4cd6-b141-9bc95409e32a /boot ...
1
vote
1answer
180 views

sshfs - can't unmount the point

I mounted a folder on a remote machine using sshfs, but didn't specify -o allow_other flag thus can't access the mounted directory. When I try to mount over with -o allow_other option sshfs gives me ...
4
votes
1answer
287 views

How to use nemo actions to mount an iso file?

I read these articles: https://wiki.archlinux.org/index.php/Nemo https://wiki.archlinux.org/index.php/Mounting_images_as_user and try use Nemo Actions to mount iso files but nothing happened ...
2
votes
0answers
172 views

How to add a dependency to a systemd.mount that is activated by /bin/mount?

I want systemd on mount /mnt/test to automatically call a program (in real life cryptsetup to unlock the underlying device, for testing here echo) before the file system is mounted and after it is ...
2
votes
4answers
7k views

How to undelete just deleted directory with “rm -R” command?

I deleted an important directory with rm -R command. This is an very populer host data. It was located /var/zpanel/hostdata/ayrintilih After remove ayrintilih directory has gone everything. I tried ...
3
votes
2answers
283 views

How to check if a partition is mounted as 'noexec'?

Currently, I'm using grep '\s/location/\s.*noexec' /proc/mounts. (Is that a right way of checking this?)
4
votes
3answers
122 views

ls on device without mounting it

Is it possible to run ls on a device without mounting it first? Something like this: # ls /dev/sda1
4
votes
3answers
382 views

How to remove a USB drive without worrying if its been unmounted?

Sometimes I unplug my usb drive only to find out files were not written to it. I suppose the only way to ensure files are written to it is to right click on the USB drive on the desktop and then ...
2
votes
1answer
33 views

AppArmor and bind-mounts

Can someone outline the semantics of AppArmor with respect to bind-mounted folders? As I understand after reading the documentation (1, 2, 3, 4) - yes, I am using Ubuntu 12.04 with the 3.8 kernel - ...
6
votes
3answers
244 views

How to get mount point of filesystem containing given file

I am looking for a quick way to find the mount point of the file system containing a given FILE. Is there anything simpler or more direct than my solution below? df -h FILE |tail -1 | awk -F% ...
-2
votes
2answers
333 views

How to remove a USB drive without worry if its been unmounted? [closed]

Sometimes I unplug my usb drive only to find out files were not written to it. I suppose the only way to ensure files are written to it is to right click on the USB drive on the desktop and then ...
3
votes
1answer
220 views

My HFS+ (hfsplus) partition won't mount with exec permissions

I'm dual-booting an old MacBook Pro with OS X 10.5 and Ubuntu Studio 13.04. I've partitioned my internal SATA drive as follows: /dev/sda1: LABEL="EFI" UUID="3F3C-1AF6" TYPE="vfat" (EFI Boot ...
1
vote
1answer
590 views

Linux fails to mount Android device in USB MSC mode

I was referred here from android.stackexchange.com. I wish to mount my Sony Xperia ST21i (Android 4.0.4) under Linux (Debian) via USB. However, I get this error: # mount /dev/sdb /mnt mount: no ...
0
votes
1answer
40 views

Is it Possible to Boot a New OS While Currently Running?

Let's assume I'm running CentOS (actually, if this question only applies to certain distros, which ones?). I have another drive (that I can boot from - it's got everything installed) mounted into my ...
3
votes
1answer
116 views

Odd behavior with a gzip compressed file

I've got a very bizarre issue occurring with a Redhat system. We have a Gzip-compressed TAR file that contains hundreds of small text files with absolute paths. It's only 8 MB. We copy this file to a ...
2
votes
1answer
195 views

systemd - umount device after service which depends on it finishes

I'm trying to implement a mechanism of automated backup using udev rules and systemd. The idea is to launch a backup routine upon hot-plugging a specific storage device, quite similar to this ...
3
votes
2answers
45 views

Zsh completion for mounts (/run/media/DISK-LABEL)?

I am looking or zsh functionality to expand disk-labels into mountpoins: Example: I have disk with label DISK-LABEL1 mounted on /run/media/god/DISK-LABEL1. Is there a plugin which expands input ...
3
votes
1answer
84 views

Enumerating\writing files in a specific directory hangs the command

I'm communicating with a machine remotely through ssh. This machine runs a custom-built Linux and it has very limited set of commands. At some point, a specific directory refuses files to be written ...
0
votes
1answer
875 views

Can't mount external USB driver - on Ubuntu 12.04

When I plug in external usb driver I saw next prompt: Error mounting: mount exited with exit code 1: helper failed with: Unprivileged user can not mount NTFS block devices using the external FUSE ...
5
votes
1answer
93 views

mount options for bindmount

Due to some complex requirements, I had to put the following two lines in /etc/fstab: /dev/xvdg1 /srv/storage ext4 $OPTIONS1 0 2 /srv/storage/dir /var/opt/dir none bind,$OPTIONS2 0 0 ...