Questions About Unmounting
I have read that it is possible to 'umount' a disk that is otherwise busy by using the 'lazy' option. The manpage has this to say about it:
umount - unmount file systems
-l Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. This option allows a "busy" filesystem to be unmounted. (Requires kernel 2.4.11 or later.)
But what would be the point in that? I considered why we dismount partitions at all:
- To remove the hardware
- To perform operations on the filesystem that would be unsafe to do while mounted
In either of these cases, all a 'lazy' unmount serves IMHO is to make it more difficult to determine if the disk really is dismounted and you can actually proceed with these actions. The only application for
umount -l seems to be for inexperienced users
I have a mobile device attached via USB to a Linux box and wish to unmount it. I ran the command
fdisk -l however it does not list a mount point. I then ran the command
lsusb which yielded the screenshot below.
I then proceeded to search the /dev/disk/by-id directory and was found the following file
The file is a symbolic link to what appears to be /dev/sdc
- Why does it not appear when I run the command
- How do I unmount it properly without simply yanking the USB cord from the USB port?
This is a followup question from Can't save data or settings in VirtualBox
In summary: I can't save any data in my fedora inside of Virtualbox. I went to the devices tab, then cd/dvd devices, then remove disk from virtual drive, and I got the error that it was unable to unmount the cd image. It seems that I did something wrong with my installation. What can I do to fix this issue?
I've got a raspberry pi where I want to connect an external HDD. Now I'm thinking which filesystem I will use. The problem is that the raspberry pi will be shut down from time to time without unmounting the HDD. So which filesystem is the most robust one for this usecase?
I have a doubt in UN-mounting the drives in Linux.
Whenever I open any drives in system its shortcut/image will be shown in the desktop. To remove that I need to right click on it and select unmount.
Then only that shortcut disappears. This always happens. So whenever I open any drive all of them will be there in desktop. What I need is this shouldn't happen. What can I do for that?Can anyone help?
I am using Ubuntu 12.04. Previously I used 10.10 then also same problem was there.
Redhat with Fuse 2.4.8
S3FS version 1.59
I would like to make a script to fix the situation. The script will unmount and mount the the directory. the commands i need to use are:
fusermount -u /s3
/usr/bin/s3fs -o allow_other bucketname /s3
For people who familiar with this situation, should I be concerned with something else ? or this is enough ?
How to safely remove SD card programmatically on Android
Hi Everyone iam new to android and in my application i got one requirement. My app needs to Unmounting and mouningt the SD Card time to time so please help me is there any way to unmount the SD card Programatically and Mount back using program itself.?
Where I work, we have very light security policy which allows users to connect to their personal mail accounts and so on.
Every user is root on his own computer and there is no centralized account management. It's pretty much like all computers where standalone/personal computers on the same local area network.
The only exception is that the sys-admins demand that we put a key in our
/root/.ssh/authorized_keys so they can backup our files. Fair enough, except that I'm a bit paranoid.
I have nothing against having mandatory backups (I even agree it is a good thing) but on some occasion, I plug my personal ciphered usb key that contains my personal password database (keepass) and I'd like to avoid that its content gets backuped.
So here is my question:
Is there a way for me to automatically unmount the USB key volume or even better: to delay the root login from an external host until my usb key is unmounted/plugged ?
I have a simple Ubuntu (12.10) server running with an external HDD attached to it. It is mounted regularly (NTFS) without RAID or so.
Because it is mounted all the time, the hard drives becomes very hot all the time, even when it is not used.
Is there a tool for automatically unmounting external HDs when they are idle and mount them when someone wants to open it? Or maybe there is another technology that can make this HD go to stand-by while mounted?
The last thing I can think of is making a CRON job to unmount and mount it at predefined intervals (during the night), but I'd prefer something more efficient.
Not sure if it's better suited for superuser of unix&linux boards, let me know.
We have a server which is one of the main key points of a somehow large architecture. This server has a backup disk which was not used, although it hosted very old backups. So I decided to set it up, and while it was at the beginning a single partition I used
fdisk to repartition it the same way as the primary drive (both are identical).
Unfortunately, after the repartitionning
fdisk couldn't manage to get the kernel see the new partition table, nor could
sfdisk. All faced the same issue :
BLKRRPART: Device or resource busy, though neither
fuser did show anything using the device. Here I have to mention that I used
umount -l to force the unmount before using
fdisk (yes, now it seems stupid and I should ha
I have a VM running ubuntu LTS with an ext4 filesystem. We had performance problems that were related to IO tasks. I checked the filesystem with
fsck.ext4 -nv /dev/sda1 e2fsck 1.41.11 (14-Mar-2010)
Warning! /dev/sda1 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
/dev/sda1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Entry 'pgstat.stat' in /var/lib/postgresql/8.4/main/pg_stat_tmp (4721210) has deleted/unused inode 4732417. Clear? no
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Unattached zero-length inode 2127051. Clear? no
Unattached inode 2127051
Connect to /lost+found? no
Unattached inode 4757639
Connect to /lost+found? no
When trying to unmount a datastore from one of my 4 ESXi hosts, I receive a message that it's in use.
The full error stack I see is:
Call "HostDatastoreSystem.RemoveDatastore" for object "datastoreSystem-57" on vCenter Server "TSD-VCENTER2.jhuapl.edu" failed.
I've tried the following:
- Removing the datastore from the other three ESXi 5.1 hosts (successful)
- Running the following PowerCLI script to list all ISOs (there were some):
Get-VM | Get-CDDrive | FT Parent, IsoPath, HostDevice
- Luckily I didn't need any of them so I did an unmount across the board:
Get-VM | Get-CDDrive | Set-CDDrive -NoMedia -Confirm:$False
- Ran the first script to list all ISOs again (no host devices or IsoPaths mounted now)
- Looked for any hard disks that could possibly be poi
Don't ask me why, but I have to find a way to allow the Apache user
www-data to mount and unmount devices at run-time on the host system. Such devices are, for example, external USB drives on
/dev/sdaXY formatted with NTFS filesystem.
I'm running the web service on a Debian machine using Apache 2.2 and PHP 5.3. When I try to run the
mount command via PHP's
exec() I obviously have these error message:
exec('mount /dev/sda1 /media/usb_flash'); // -> mount: only root can do that exec('sudo mount /dev/sda1 /media/usb_flash'); // -> sudo: no tty present and no askpass program specified exec('sudo -n mount /dev/sda1 /media/usb_flash'); // -> sudo: sorry, a password is required to run sudo
I'm aware only root can do that (in fact, from SSH, I always need
sudo when mounting) and that
www-data cannot be a sudoer. But I'm sure there's a w
How to send to sleep a hard drive completely after it's being unmounted?
I'm planning to have separate 4TB drive only for backups. It will be encrypted and I will only mount it when I need to perform big backups. After unmounting it again, I would like to send it to sleep, i.e. physically to make it stop spinning.
Is there a way to do it in CentOS Linux 6.3?
Any help would be appreciated.
Is there a way to unmount the last mounted filesystem without doing
I ask because I'm getting tired of doing
mount to get the device when all I could do is just unmount the last filesystem.
Even if I unmount an NFS folder will it still have cached copies of those files from unmount time in that folder?
My understanding is NFS folder once unmounted shouldn't have anything under that folder. That is
should return empty. Where can I find definitive reference regarding this?
In one of our machines after unmount we stil see files in that folder. Is it cached files or files from old non-NFS filesystem which was there?
I have a Cent OS VM instance running on Windows Azure. I have a 1TB data drive mounted to that VM to hold an application's database files. Every week or so at inconsistent intervals, my database crashes and I find that my data drive has been automatically, and without my permission, unmounted.
My data drive still exists with all the data in tact. I have to log in and remount "sudo mount /dev/sdd1 /mount/datadrive". This is frustrating and harmful to my data and the processes that use it.
What am I doing wrong? Any idea why this is happening? How can i make it stop. THANK YOU.
I'm doing mmap() on a file that can be unmounted ( the file is located on an USB device which the user can remove at any time ), and my application crashes if the file is unmounted and then i try to access any element in the buffer.
Any solutions to this ?