Software :: Removing Mounted Drive Folder Safely

Dec 3, 2009

I have a nightly scheduled script which creates a $vhostname directory under /mnt, mounts a windows box pointing to /mnt/$vhostname then rsyncs (pulls) some files/folders from the mount point. After this, I want to unmount the drive and remove the /mnt/$vhostname directory. Problem is that removing the /mnt/$vhostname directory sometimes ends up deleting all the files on the source! Example of script (stripped out lots of superfluous stuff):

Code:
vHOSTNAME='testhost'
vRSYNCFLAGS='-ahvz --inplace'
/bin/mkdir -p /mnt/${vHOSTNAME}
/usr/bin/rsync ${vRSYNCFLAGS} /mnt/${vHOSTNAME}/KAVSHARE /backups3/${vHOSTNAME}/
/bin/umount -l /mnt/${vHOSTNAME}
/bin/rm -Rf /mnt/${vHOSTNAME}

It seems that my umount line isn't disconnecting the mount, leaving the following line to literally delete all directories, recursively. Is there a way of safely just deleting the directory (ie: mount link) without linux accidentally trashing the whole source?

View 3 Replies


ADVERTISEMENT

Debian Configuration :: Safely Removing Mounted USB Device

Jan 7, 2011

I'm not sure if this is a bug in Squeeze beta 2 or if it's something I've overlooked. I have a Maxtor 250 GB external USB drive that I use for backups. It gets auto-mounted fine, always in the same place, and from my normal user account I can write to it, even delete directories on it if I want to. But when, from Gnome, I select the "Safely remove" option, I get an error to the effect that it can't stop the device. The weird thing is that the thing actually *is* unmounted. I've checked the mount point and it's no longer there.Is there some package I maybe should've installed but haven't? I'm not really worried about data loss, since I'm sure the drive wouldn't unmount unless it was properly synched; it's just the error message that bugs me.

View 2 Replies View Related

Fedora :: Removing Notifications And Safely Removing Drives?

Aug 25, 2010

These should be my last pleas for help with regard to Fedora 13. I've been unable to turn off the notifications that appear in the top right corner, despite a decent amount of searching on google. I can't remove any notifications package without removing a bunch of important software along with it. Also, F13 refuses to "Safely Remove" either of my external disks. I have to yank out the usb cord, touching wood each time.

View 5 Replies View Related

General :: Removing Flash Drive - Root Folder Turned Red

Sep 16, 2010

I took some videos off a usb flash drive, then went and selected " safely remove usb" and the light continued to blink on the flashdrive, I pulled it out any way, and the root folder turned red... everything seems ok, but how do you know when it's ok to safely remove a usb devise ?

View 3 Replies View Related

Ubuntu :: Safely Removing Partition

Feb 11, 2011

I have a 32-bit laptop running a dual boot with Windows 7 and Ubuntu 10.09 LTS.I've decided that Ubuntu just isn't for me, and I want to remove the partition and restore the extra hard drive space back to Windows 7.

Now, a few months ago, I accidentally deleted my Ubuntu partition through Windows Disk Management, and I ended up not being able to boot up my computer. I can't remember what the exact cause was, but I think it was a problem with the GRUB, and I think I fixed it by reinstalling Ubuntu. Does anyone know how I can safely remove the Ubuntu partition without having to go through all this again?

View 1 Replies View Related

Ubuntu :: Desktop Safely Removing Ext Hdd

Apr 12, 2011

Cannot safely remove Western Digital 2TB ext hdd. When I right click on drive to unmount, it says: "Unable to stop drive, This file cannot be stopped" Anyone know how to unmount, maybe using the terminal??

View 7 Replies View Related

Debian :: KDE - Removing Unwanted Apps Safely?

Dec 1, 2010

I've just installed Squeeze with KDE. I was wondering what is the best way to remove some unwanted apps without breaking everything (I want to get rid of Kopete and a few other apps like Dragon Player as I don't use them)?
I tried to: apt-get remove kopete
but it said it wanted to remove a whole bunch of other stuff as well. (I'm a recent Fedora convert).

View 2 Replies View Related

Fedora Installation :: Safely Removing Gnome

Jun 15, 2011

I've been using Gnome for several years and haven't had any real problems with it. Now, however, I find the descriptions of what Gnome 3 and the Gnome Shell quite unsettling. That is, the Gnome devs have added a number of things I don't want, removed things I do want and made it impossible to configure Gnome 3 to work anywhere near what I want without adding unsupported third-party extensions. (Note: this is neither a complaint nor a flame; it's just a statement of my personal taste and any attempts to argue about it will be ignored.)

Currently, I have installed XFCE and am very happy with it on my two F14 boxes. I know that if and when I move to F15 (or F16 if 15 continues to be as problematic as it is so far) the upgrade will include Gnome 3, even though I don't use it. I'd like, therefore, to remove it but without removing any bits and pieces of it that are needed by whatever programs I'm using. What's the safest way to do this?

View 9 Replies View Related

General :: LVM Removing A Physical Volume Safely

Aug 7, 2010

Let's assume I have a volume group (VG) with six physical volumens (PV) - sdb1, sdb2, sdb3, sdc1, sdc2, sdc3..I want to remove one of the PVs from the group in order to use its space elsewhere - how can I know if it's safe? How can I do that without losing data and without first "pvmove"ing it elsewhere?Reading a bit more, my guess is using the result of pvscan, but I thought I'd ask before removing keeping it safe as I'm not an LVM expert.

View 4 Replies View Related

OpenSUSE Install :: Removing Alt Installed Kernel Safely

Oct 9, 2010

Hoping for some verification before I proceed.An alt kernel was installed side by side with the current mainstream kernel during an experimental NIC driver install. Unfortunately, since the experiment failed I would now like to remove all traces of the alt kernel since it was given a version ahead of the current main version and I would like to avoid all possibilities of contention should a future kernel upgrade use the experimental alt kernel's version number.

View 9 Replies View Related

Debian :: External Mounted Harddisk Safely Umount Automatically?

Jun 1, 2010

Debian if I suspend the PC, will the external mounted harddisk safely umount automatically? I want to make sure that the integrity of my external HDD is not compromised while the PC goes in the suspend mode.

View 4 Replies View Related

OpenSUSE Hardware :: Oddities With Ejecting CD / DVDs And Safely Removing USB Drives

Jan 10, 2011

Failure to safely remove the USB with the following techniques:
1) umount /dev/sdd and I get the error "umount: /dev/sdd is not mounted (according to mtab)"
2) dolphin > right click the drive icon > safely remove: I get the error message "org.desktop.Hal.Device.Volume.UnknownFailure: Cannot open /media/.hal-mtab"
3) konqueror: sys:/info > click the drive eject button (nothing happens)
4) device notifier > click the drive eject button : I get a ERROR in Plasma Workspace that says "Could not unmount the device. One or more files on the device are open within an application" ... NOTE: this will happen on a fresh reboot with the folders of the USB never accessed, much less files being open on it.I have also noticed something similar when dealing with cds/dvds.... seems like I can only eject on a reboot.

View 9 Replies View Related

Fedora Hardware :: When Safely Remove Drive Menu Is Clicked On External Hard Drive

May 30, 2011

I have 350GB external Western Digital USB hard Drive.When I try to remove it from the system by executing Safely Remove Drive menu the fedora 15 system gets stuck.The processor starts giving a hum sound and it goes on even if it is left for half an hour in the stuck state.The Mouse is not working and everything is halted.

View 13 Replies View Related

Red Hat / Fedora :: Chmod - Give A Mounted Folder /mnt/folder Access

Oct 28, 2010

I want to give a mounted folder /mnt/folder access so that 'root and the group test have read write access' and all other users have read access I understand most of the chmod command, the users groups world etc but where in the 'command' do you specify which 'group' or 'user' you are giving the read / write access to? in all the tutorials i've seen no where do you specify the actual group or user.

View 3 Replies View Related

Ubuntu :: Safely Change Permissions For Folder/all Subfolders & Files?

Apr 1, 2010

I just installed Karmic, but I can't copy an old user's home folder (/home/oldusername/) because everything is owned by root.I read but I'm concerned about messing up the system or the files in that old user's folder.So, how do I adjust the permissions of the files in /home/oldusername so that I can use openssh to copy them over my home network to my other computer? I have the ssh part figured out, but the files will not copy to the laptop due to permissions.

View 9 Replies View Related

Debian :: Crash On Safely Remove Drive?

Jul 5, 2011

After some recent upgrade of my Debian Testing i386, on ThinkPad T400s, I am receiving panic message upon Safely Remove Drive.When I insert external HDD, it is automatically detected and the partitions mounted and works perfectly well. But when I "Safely Remove" the disk, Debian freezes and hangs. Nothing works (mouse or keyboard), and even X crashes and I get frozen terminal.I never experienced anything similar

View 4 Replies View Related

Ubuntu :: Remove The Flash Drive Safely?

Jan 1, 2010

I want a way to remove Flash Drive safely in ubuntu?

View 9 Replies View Related

Ubuntu :: Command Trigger Safely Remove Drive?

Jan 31, 2010

I wanted to know command to triggered "Safely Remove Drive".So I could implement it on Hardy 8.04
http://ubuntuforums.org/showthread.p...88#post8674988

View 6 Replies View Related

Ubuntu :: The Terminal Command For 'safely Remove Drive'

Mar 6, 2011

If I click right-click on a drive in nautlius and do 'safely remove drive', the external hard-drive stops spinning.

What is the terminal equivalent? If I do 'pumount' it is unmounted, but the hard-drive continues spinning.

View 3 Replies View Related

Ubuntu :: Safely Remove USB Flash Drive(s) Using Terminal?

May 12, 2011

I'm on Natty, and I want to know if it is possible to safely remove, or eject usb flash drives via Terminal?

View 1 Replies View Related

Fedora Hardware :: Safely Remove Drive Freezes System?

Aug 26, 2011

Until a recent software update, I encountered no problems when 'Safely Removing' my external hard drive.

After the following update:

Aug 23 14:36:03 Installed: kernel-devel-2.6.35.14-95.fc14.x86_64
Aug 23 14:36:13 Installed: kernel-2.6.35.14-95.fc14.x86_64

The system freezes when I try to safely remove the drive. What I see is the blue screen with the Fedora logo, the caps lock key lights up and the system is totally frozen. Following is the information on my external drive gleamed from the messages log file when the device was mounted:

Aug 26 07:53:03 localhost kernel: [ 496.855476] usb 1-1.2: new high speed USB device using ehci_hcd and address 7
Aug 26 07:53:04 localhost kernel: [ 496.942025] usb 1-1.2: New USB device found, idVendor=1058, idProduct=0704
Aug 26 07:53:04 localhost kernel: [ 496.942031] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[code]....

View 2 Replies View Related

Ubuntu :: Add More Space - C Drive Is Mounted And The E Drive Will Not Mount

Jan 19, 2011

I have just installed Xubuntu and suprisingly it did not ask me to create a partition within its installer like Ubuntu does. So now, I am left with 150mb of free space. I want to expand that amount. The problem is, I do not know where it has been installed on. I have a C and an E drive. Currently, the C drive is mounted and the E drive will not mount even if i press the mount button. Does anyone have a solution?

View 8 Replies View Related

Ubuntu Servers :: NAS Public Folder Not Getting Mounted?

Sep 21, 2010

We have an Iomega StorCenter ix4-200d in our office. for past two days the shared public folder is not getting mounted. but it's working fine through the web interface i.e user can upload/download.that rules out the permissions problems.

I am providing the output of mount command:

t227@t227:/var/log$ sudo mount -t cifs --verbose //192.100.100.37/public /mnt/public/ -o username=shrey
[sudo] password for t227:
Password:

[Code]....

in fact i can't access any of the folder which I am having permissions to rw.but it's working fine through the web interface.

P.S:- On windows also I can't mount the folder.

View 1 Replies View Related

OpenSUSE Hardware :: KDE Mounted Devices Sometimes Do Not Remove Folder

Aug 29, 2010

When booting opensuse 11.2 or 11.3 there is automatically created a folder in /media to mount my external usb drive (in /media/disk). The problem I have is that sometimes these folders are not automatically removed when I shut down. On the next time boot this device is mounted at /media/disk-1 or /media/disk-2 which throws off for instance Krusader or Amarok. Also the folders that are not removed seem to have really strong permissions such that I can't even browse into them in Krusader or Dolphin. I have to manually clean the /media folder as super user so that when I reboot, they are in /media/disk. Does anyone know how to ensure that opensuse removes the folder(s) upon shutdown?

View 8 Replies View Related

Ubuntu :: Shared Folder Mounted On Startup - Fstab

Oct 27, 2010

I want to have a shared folder mounted on startup and I put the following in my fstab:
Code:
VMShare /media/VMShare vboxsf defaults,gid=1001,dmask=002 0 0
Where did 1001 corresponds to the virtual share group.

When I boot up the permissions are as follows(from ls -l):
Code:
drwxr-xr-x 1 root virtualshare 68 2010-10-27 15:45 VMShare/

So I'm curious why it's group permissions aren't the same as owner? In the fstab I put dmask=002 which should lead to rwxrwxr-x so basically full permissions for owner and group and read/execute for public. However thats not what I'm getting. Also once I get this working correctly am I going to have an issue if the virtualshare group isn't a users primary group? On some older unix servers I ran into this issue, hopefully it won't matter as long as the user in in the group.

View 3 Replies View Related

Ubuntu :: Setting Home Folder On Mounted Partition?

Jan 6, 2011

I'm dual booting on a laptop with an 80gb hd. I've set up the partitions so windows xp has 20gig, ubuntu (edit: 11.4?) has 7 gigs, 3 gigs swap space, and the rest is formatted as FAT32 that I'm looking to use as shared space between the two OSes. The ubuntu live install partition tool suggested (possibly demanded?) that the fat32 be mounted as /windows or /dos, and I chose the former. Everything's running fine, both OSes see the partition, but I can't set my home folder to exist in this shared space.

I've been in system > admin > users and groups- I try setting the home folder as /windows/home/chris. (I had a home folder backed up that I have already copied to this location) The dialog recognizes that there's a folder there already, asks if I want to use those new files or copy old ones. I say use new files, and close the window. Nothing changes though- in fact if I open users and groups immediately after, it's already reverted to /home/chris . I've tried changing from a different user account as well.

View 3 Replies View Related

Ubuntu :: Access Mounted SFTP Folder From Within Programs?

Mar 8, 2011

I have a project stored on a university server which I'd like to be able to work on from home.

I already have an SFTP folder set up, which I can access easily in Nautilus, and I can freely copy files back and forth, or open them in e.g. gedit.

However, the project is in Matlab, and I cannot see the mounted SFTP folder from within Matlab. This means that I can't work on the project in Matlab without copying the whole lot across to my local machine when I want to work on it.

Is there some way I can get Matlab to "see" the connection so that I can use the mounted SFTP folder like any other in my filesystem? It appears on my desktop when connected - does it have some other mount location?

View 2 Replies View Related

Networking :: No Permission To See The Contents In The Mounted Shared Folder?

Jun 22, 2010

I'm using fedora8.When i mount shared folder on windows,it was mounting and i can browse the files and directories in terminal as i have full permissions on that.But,when i open the mounted directory in GNOME Environment,it was saying you did not have permissions to see the contents,every directory and file has been locked.

View 4 Replies View Related

Ubuntu Multimedia :: Removing Upto A Folder From Filepath?

Jul 3, 2010

I'm trying to batch encode some old mpeg2 vids to x264. After much playing around, I've finally found some settings that work across the board in preserving quality. The good news is the converted vids are about half the size.

I'm using handbrake to do this and with over a thousand clips, converting via the gui would be way too time consuming. Naturally CLI is much faster for something like this. I've found all the flags and arguments to pass to handbrake

So, suppose my vids are in ~/MyVideos. I want to store my converted vids in ~/ConvertedVids. The problem is that there is a whole folder hierarchy after ~/MyVideos that goes several levels deep; I want to preserve this. In handbrake, the output file is a parameter like so:

Code:
handbrake_cli -i input_file -o output_file

I know stripping away the filepath upto ~/MyVideos/ should be trivial with awk. I don't know awk and was wondering if someone here could give me the command I need.

View 2 Replies View Related

Ubuntu Security :: Removing Encryption From Your Home Folder?

Mar 9, 2011

I need to do a reinstall (read the details here): http://ubuntuforums.org/showthread.php?t=1703381 but I need to be able to access my home directory which is encrypted. Is there a way to decrypt my home folder, so that I don't get into trouble accessing it later on?

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved