is there a way to mount and dismount a connected harddrive through a script or a simple utility software in Windows 8.1?  Basically, I have a hard drive in the ultrabay slot of my ThinkPad (instead of the dvd-drive). When booting the system, this hard drive is automatically being mounted and visible to me. Using the icon in the taskbar I can unmount it. Unfortunately, it is then only available again when I reboot the system.  So I wanted to ask if there is any command line script I can execute to dismount the drive and mount it again with another script without having to reboot?  This way I could call the unmount-script after booting, so the drive isn't always running, only when I need some stuff from it, I call the mount-script and then can access the files.  Would be great if anybody has any ideas on how to solve this! Thank you!
124183
On my work computer I have two USB hard drives that I use rarely. They have a power save mode that sends them into sleep after a couple of minutes of them being idle.   Whenever I open a context menu on a file, the drives are woken up (most likely caused by the "send to" handler).  So I eject the drive, but I can't find a way to get it back, other than unplugging and replugging it in.  Is there a way to unmount the drives, and then remount them only when I actually need them? (On Windows 7 Ultimate.)
52259
The Safely Remove Hardware icon in Windows 7 offers the ability to eject my SATA drives, including the boot drive. I don't see myself ever needing this - especially not from the convenience of the tray icon.  Is there a common BIOS setting to disable hot-swappability?
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?
97886
I'm not even sure if i worded my question right but, I'm familiarizing myself with Ubuntu and want to install it on a new desktop I just finished putting together so I'm trying it on my laptop via live usb first.    I had trouble mounting my NTFS windows partitioned disks, solved that problem but I also see a disk that has the exact amount of memory I alloted for persistence. I try to access it but it shows the same ACL error I got when my NTFS disks weren't mounting.    I've already downloaded some stuff and made some things with LibreOffice and want to know if those things have been save automatically or if I have to mount the usb disk for it to be persistent.
115882
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 select "un-mount", but sometimes I forget.  What is the best way to ensure files are written to the USB drive instantly? This way I can remove the USB drive as soon as I notice the LED light on the USB drive stopped blinking.  OS: CentOS 6
22857
I have a file with an ext4 file system in it and want to mount it without using sudo every time (the script should run with user rights). The file I want to mount and the folder which I want to mount it too both are in my home directory which is encrypted, so I can't put the file location into /etc/fstab.  I tried fusermount but I always get error messages like "fusermount: extra arguments after the mountpoint".
10759
I'm looking for a quick, simple, and effective way to erase the hard drives of computers that my company will be getting rid of (donation to charity, most likely). Ideally, I would like a single-purpose bootable utility CD that upon booting, finds all attached hard drives and performs an "NSA grade" disk erasure.  Is anyone aware of such a utility (even one not quite as automated as what I've described)?
56127
If I put a USB-drive in, it will automount. I can see it with lsblk  NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT sdb      8:16   1   7,5G  0 disk  └─sdb1   8:17   1   7,5G  0 part /media/user/usb-drive   If I unmount it with umount  umount /media/user/sdb1   it will still be visible with lsblk, but not mounted any more:  NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT sdb      8:16   1   7,5G  0 disk  └─sdb1   8:17   1   7,5G  0 part   but if I instead eject it by clicking the eject icon in Thunar (xfce file manager), it will disappear from the list in lsblk. Why is that so?
11441
On Windows 7.  I have a lot of hard drives which are used for storage.   When launching certain programs (e.g. some games, Photoshop, etc.) the program will automatically try to query/access all of the system's drives for whatever reason (presumably to enumerate them, see how much free space is on them, or access some other property of them).  This means that every time I launch these programs all of my drives have to (slowly!) spin-up even though no files on the drive are actually being used.  This is extremely annoying.  So is there a way I can restrict access to these hard drives, and/or make them invisible to certain programs?
46809
I usually have a lot of external drives connected to my MacBook, such as flash drives, hard drives, and SD cards. It so happens that I need to eject them quite often.  The usual way I eject these is by either showing the desktop using a shortcut and dragging the drives I want to eject to the trash, or navigating to the finder and ejecting the drives from there, or by using a script which ejects all my external drives at once. However, when I want to do something simple like ejecting a flash drive or SD card (which I do quite often) I'd prefer not to break my workflow and simply be able to, say, click on a menu bar icon and select which volume I want to eject.  I haven't yet seen a utility which can achieve this. Does anyone know of one?
69799
I have an external HDD which I would like to "safely remove". Unfortunately, my system (Windows 7 x64) complains that "the device is currently in use".  Using  I discovered which process is holding a handle on the device:    Obviously, System is not a process that I can just kill and be done with it. I've done a bit of research and this , but no solution has been found so far (except for rebooting the machine, which I'd like to avoid if possible).  Is there any solution to this problem that I've missed?
42898
I'm using Ubuntu 10.10 and using a usb drive but I'm finding that I can't chmod any programs on the drive to +x. It is being auto-mounted by Gnome (using udev, I think?) so I imagine the problem is a mount option but I can't seem to find a way to modify the default mount options any where. There are no entries in fstab. Anybody encounter this problem?
78411
When I plug in my external hard drive (again, NOT USB stick), and right click on the icon in This PC, there is no option to eject the drive.     There is a system tray option to "safely eject" it, but that doesn't work at all.     The only way for me to remove it at the moment is to shut down the PC.   I am not looking for a third party solution (cuz they don't work anyway - I've tried a range: Unlocker, the Quickandeasysoftware one, etc..). I've also disabled drive indexing.  And before you mark this as a duplicate almost ALL of the internet / SU articles are either on USB sticks, or on this shutdown method (e.g. )  I just want to know if this is possible (it should be right?), and if so how.
13009
If I have an encrypted external disk (or an internal disk that is not in fstab), I see an entry for it in Nautilus -- with an entry like "X GB Encrypted Volume".  I can click on this volume, and am prompted for a password to decrypt and mount the device.  But how do I do this from the command line?  , and other docs I can find, only refer to GUI methods of decrypting the device; but this won't do in the context of headless servers or SSH logins.  Is there a simple way to get devices to mount to automatic locations in /media just like they would with the GUI?  (I'm not asking about encrypted home directories -- I'm aware of ecryptfs-mount-private.  This question is about additional encrypted volumes.)
13098
I have dual OS (Windows 8 and Ubuntu), when I using Ubuntu, Windows partition Disks are automatically mounted in Explorer. I need to unmount permanently on every boot or permanently. I tried this in Gparted but when reboot it again mounted. Kindly Share your views.
73211
How do I remove a USB drive using the Win32 API? I do a lot of work on embedded systems and on one of these I have to copy my programs on a USB stick and insert it into the target hardware.  Since I mostly work on the console I don't like to use the mouse and click on the small task-bar icon hundred times a day.   I'd love to write a little program to do exactly that so I can put it into my makefiles, but I haven't found any API call that does the same thing.  Any ideas?
117884
I'm constructing a backup script for Windows 7, and the last action I want it to perform is to safely "remove" the USB drive that it is backing up to. I am under the impression that plugging the drive into the same USB port all the time will keep the same DEV_ID (correct me if I'm wrong). With a command line (or PowerShell), how can I tell Windows to safely remove the hardware automatically without user input?  Just as a place holder, other OSes that may have a way to do this would be great to know as well.