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

learn more… | top users | synonyms

11
votes
3answers
10k views

Does mount always require root privileges?

I was under the impression that any sort of call to mount requires root privileges. But recently I was told "You should instead create appropriate entries in /etc/fstab so that the filesystems can be ...
4
votes
2answers
2k views

How do you protect a plain text credentials file with the username and password?

I am trying to setup an auto-mounting network drive. The network drive requires a user/pass. In the man page for "mount.cifs" there are two ways to provide the user/pass. [not recommended] put the ...
3
votes
1answer
706 views

NFS mount to a subdirectory of already mounted directory

We have a strange scenario (AIX 5.3) - There is a directory /mnt to which an NFS share from windows server1 is mounted Then there is another directory /mnt/subdir1 to which NFS share from windows ...
10
votes
1answer
2k views

Is it possible to run a webdav fuse client with no root access?

I have seen examples showing how to use davfs2 under linux, but each has involved one of these things: Running mount as root Adding an entry to /etc/fstab Running mount.davfs setuid, which, alas, ...
4
votes
2answers
8k views

umount - device is busy

Sometimes when I want to umount a device, e.g. sudo umount /dev/loop0 I will get the message umount: /mnt: device is busy. (In some cases useful info about processes that use the ...
4
votes
2answers
2k views

Permission denied (even as root) on a mounted ISO image with Furius ISO Mount

I mounted a ISO image with Furius ISO Mount. I cd to the mounted directory and tried to copy a file with sudo cp file /dir but cp writes error message cp: cannot stat `file': Permission denied ...
3
votes
1answer
361 views

advantages and disadvantages of manually un/mounting drives.

What are the advantages or disadvantages of manually un/mounting internal drives? I've never really bothered un-mounting internal HDDs after mounting them the first time around but would like to know ...
2
votes
2answers
858 views

Mount points in a chroot

I have some device (say /dev/sda1) mounted at /home/user1. I also have a full Linux system under /tmp/chroot, and the directory /tmp/chroot/home contains only one directory named user2. If I chroot ...
9
votes
4answers
91k views

How to mount a device in Linux? (Beginner's confusion)

I read some resources about the mount command for mounting devices on Linux, but none of them is clear enough (at least for me). On the whole this what most guides state: $ mount (lists all ...
6
votes
3answers
2k views

How to create a read-only snapshot in btrfs?

As far as I understand, the snapshots made by btrfs subvolume snapshot are writable by default and are visible at a certain path under the mountpoint of your btrfs volume. How to setup the system so ...
2
votes
1answer
781 views

Can't see files on my cell phone

I have Samsung Galaxy S2 as my cell phone and Debian Squeeze as my desktop. When I connect them using USB, Debian recognize it and allows to open it with file manager. Problem: it displays only ...
2
votes
3answers
322 views

Most “effective” archive to convert to

If you are like me, you have tons of archives lying around in different formats (zip, tar, rar, tgz, tar.bz2 etc). In cleaning up my stuff, I have decided to basically leave my archives alone ( and ...
3
votes
3answers
2k views

Unable to mount NTFS partition from user account

I'm trying to mount a Windows ntfs partition on openSuse 11.4. When I mount it using the root account (either directly or via sudo) it mounts without problems. But when I try mounting it without any ...
3
votes
1answer
4k views

List only bind mounts

Rather than using mount | grep, I'd like to use mount -l -t bind, but that doesn't work, and -t none shows all mounts.
3
votes
1answer
156 views

mounting volume protected against user access

I need to mount a directory in a way that prevents user accessing it. However I need to have access to all attributes (including permission) from root. Is following method safe or is there a way ...
8
votes
1answer
2k views

When was `relatime` made the default?

What is the first Linux kernel release to set relatime as the default mount option?
4
votes
1answer
1k views

Unable to mount a second hard drive in Ubuntu Server

I am adding a second drive to my Ubuntu Server. It was previously in a FreeNas system, but I got rid of the XFS partition and created an ext4 partition (in an older Ubuntu system). I then backed up ...
3
votes
2answers
2k views

Keep local copy of nfs mount on computer

I mount all my home directories and what ever else on my laptop when it is on my home network. I was wondering if there is a way to keep a local copy of the nfs mount when my laptop is off the ...
0
votes
4answers
21k views

How to read NTFS drives in Linux (RHEL 6)?

My system is on dual boot. I have installed both RHEL 6 and win7 in it. I use RHEL mostly and I want to use my windows' NTFS drive in RHEL. How can I do it? Tell me the procedure.
7
votes
1answer
2k views

ext4 overrides my commit=100 mount option with commit=0

Here is the relevant line from my /etc/fstab file: UUID=f51aa298-9ce4-4a19-a323-10df333f34f5 / ext4 data=writeback,noatime,barrier=0,errors=remount-ro,commit=100,nobh,nouser_xattr ...
3
votes
1answer
1k views

Fedora, Android phone mounting?

I am using Fedora 15 and I just plugged in my Samsung Vibrant Android phone, but my phone does not even give me the option to mount over USB like usual. It still charges though. Is there some ...
6
votes
3answers
1k views

How to check if /proc/ is mounted

How can I check if /proc/ is mounted? Using /etc/mtab is discouraged as it might be inconsistent. Using /proc/mounts is also not an option as might not exist if /proc/ is not mounted (although ...
3
votes
1answer
13k views

EXT4-fs (sdc): VFS: Can't find ext4 filesystem

In short, this is where I found the best answers to my problem with my disks: https://help.ubuntu.com/community/DataRecovery During Fedora 15 installation, I added all my 3 drives to be mounted on ...
2
votes
2answers
3k views

how to chown mounted device?

When I plug in my external hard-drive when running KDE, it prompts me to mount the device (by clicking an icon, no sudo involved), and once I've done that I am the owner of the files. This is great. ...
1
vote
1answer
198 views

Do the file descriptors get lost when remounting a file system?

If I remount the file system on /home with: mount -o,remount /home will the open file descriptors be lost?
3
votes
4answers
1k views

Script to “remount” a partition (umount then mount)

Im doing some experiences with NTFS(-3G) and fstab. For every change i do to fstab, I need to issue: sudo umount /mountpoint sudo mount /mountpoint To check the results. Since Im doing a LOT of ...
47
votes
7answers
90k views

umount: device is busy. Why?

When running umount /path I get: umount: /path: device is busy. The filesystem is huge, so lsof +D /path is not a realistic option. lsof /path, lsof +f -- /path, and fuser /path all return ...
6
votes
1answer
7k views

Mounting an ext3 fs with user privledges

I'm trying to mount an ext3 file system from another linux installation so that the user, not root, will have full access to all the files. (I really do need user to have access to those files, ...
2
votes
1answer
1k views

How to move the existing mount point from /usr/local to /usr in Ubuntu 11.04?

I am running Ubuntu 11.04. During installation, instead of /usr, I mistakenly assigned /usr/local to a separate partition. Now I want to change the mount point to default to /usr on boot but I don't ...
0
votes
2answers
1k views

Changing owner of NAS drive

I have setup a Freenas system that I would like to mount on my Ubuntu Desktop. Freenas is configured with cifs service. When I open the freenas server in nautilus smb://freenas/homenas/ I can create ...
20
votes
3answers
7k views

What is a better way to deal with server disconnects of sshfs mounts?

I have several directories mounted through sshfs. I sometimes get disconnects from the server (not configurable by me). I usually mount the directories like this sshfs ...
2
votes
2answers
291 views

Questions on using command mount

When using command mount for a device, I was wondering about the following questions: Since device file is a parameter to mount, how does one know what the device file for a device is in general? Do ...
5
votes
3answers
2k views

Mounting a device — role of /dev, /media and /mnt, and the mount command [closed]

I have several closely related questions about what happens when I insert a CD. The files on the CD /media/Ubuntu\ 11.04\ i386/, but from what I've seen /dev/cdrom is also involved. What is the ...
5
votes
4answers
3k views

Detect if a (NTFS) drive is mounted or not. If not then mount it

I want to sync an USB drive with a folder located on a NTFS partition which is not mounted at boot time. I have found a command to do that: rsync -axu /media/USB/folder /home/user/folder. But I have ...
3
votes
3answers
14k views

How do I remove a Read-only file system from a usb drive

During an ill-fated attempt to get tinycore linux to boot from a USB drive I managed to create a bunch of files that I now cannot remove. fortino@rebel:/media/working/boot/isolinux$ rm *.* rm: ...
2
votes
1answer
348 views

What's an easy way to see whether a mount point has been made shared?

mount has an option --make-shared as described here. However, how do I find out if a particular mount point has been made shared?
5
votes
1answer
542 views

Does `shutdown -P now` safely unmount a USB drive mounted to `/dev/sdb1`?

I typically unmount my USB drive (using umount) from /dev/sdb1 before I shutdown my computer but if I shut it down using shutdown -P now and then restart it, the drive is no longer mounted. Is this ...
1
vote
2answers
813 views

Stop USB mobile broadband automatically mounting as drive

UPDATE 3: This is what I get from lsusb: oshirowanen@laptop:~$ sudo lsusb [sudo] password for oshirowanen: Bus 001 Device 003: ID 19d2:0031 ONDA Communication S.p.A. ZTE MF636 As I have tried the ...
22
votes
2answers
6k views

What mount points exist on a typical Linux system?

I have 2 questions. During Linux installation we specify memory space for 2 mount points - root and swap. Are there any other mount points created without the users notice? Is this statement ...
1
vote
1answer
1k views

Flash drive won't boot or mount after trying to create installation medium

I have a 1GB USB flash drive which I wanted to use as an installation medium for Linux distros. My first experiment was to be installing Arch on an old laptop (old enough that if I really messed it ...
8
votes
3answers
298 views

Automatizing the sequence of mounting commands

When I connect a device (tablet, camera, flash drive, external harddrive) to my laptop with Linux I often type the following sequence of commands. $ ls /dev/sd* Let's say that my device is /dev/sdc ...
18
votes
6answers
4k views

What's the most “correct” mount point for a permanent NTFS partition?

I have an NTFS partition (containing a Windows installation from which I dual boot) that I would like to permanently mount from my Linux installation. Problem is, I can't figure out what the ...
6
votes
3answers
6k views

Automount USB drives with no GUI requirement (halevt replacement)

For minimal installations of Debian, I have been using halevt to enable automounting of USB drives. Halevt is reliable and requires no configuration aside from installing the package. Now, halevt has ...
6
votes
2answers
6k views

Make all files under a directory read-only without changing permissions?

First, some background: /dev/md1 is a RAID-0 array serving as primary file store. It is mounted to /var/smb. /dev/md2 is another RAID-0 array storing backup snapshots taken from /dev/md1. It is ...
5
votes
3answers
2k views

Detecting that a device is mounted to a particular folder?

As part of revamping my backup scheme, I'm now adding rotating external hard drives, keeping one safely off-site at all times while the other is receiving backup data. Naturally, to ensure that my ...
3
votes
3answers
1k views

Really strange FAT32 file listing problem

I'm mounting a FAT32 drive on my NAS (which has a USB port), and hitting a strange issue when I use the ls command on the drive root: ls: cannot access ???²é?u.g: Input/output error ls: cannot ...
5
votes
6answers
9k views

How does a kernel mount the root partition?

My question is with regards to booting a Linux system from a separate /boot partition. If most configuration files are located on a separate / partition, how does the kernel correctly mount it at boot ...
2
votes
3answers
14k views

How to change mount points

I'm not very deep into this mounting/unmouting think on Linux, so here goes my question: With df -h I get the following overview: Filesystem Size Used Avail Use% Mounted on /dev/sda1 ...
3
votes
1answer
78 views

Need help with re-partitioning

First of all: I'm just a beginning Linux-User ;-) I've set up a server with OpenVZ support. I wrote a backup script that's dumping the vz containers from time to time. But some containers are not ...
3
votes
1answer
3k views

How to add an iso file as APT source

Say I have this line in "/etc/fstab": /iso/apt.iso /mnt/apt iso9660 loop 0 0 And I run these commands as root: mount --all apt-cdrom add --no-mount --cdrom /mnt/apt I expected the disk to be ...