Ubuntu :: Command Line Alternative For "Safely Remove Drive"
Aug 9, 2011
Ubuntu Server 10.04 LTS
Is there a command line alternative to clicking on "Safely Remove Drive" in nautilus?
When I click on "Safely Remove Drive" in nautilus, the USB HDD attached (WD Elements) vanishes from the nautilus "places" list, the drive spins down, and the light on the drive dims to indicate that it is powered down.
I have tried the "umount" command as well as the "eject" command from the terminal, but they both only seem to unmount the drive, as it is still shown in the nautilus "places" list and the light on the drive stays bright.
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
This has been bothering me for years now...when I go to remove a thumb drive from my computer, I have two options when I right click the device eject and safely remove. What on earth is the difference supposed to be?
To remove pendrive when I click the 'safely remove' tab instead of getting removed from the desktop it reappears again. This problem is there in fedora 14
Anyone else seeing this? I do 'safely remove' to remove USB flash drive. disappears. Five seconds (or less) later, it reappears. The second time I do 'safely remove', it stays gone.
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.
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
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
Where exactly are the temporary files stored, in /tmp or /var/tmp. How can i remove temporary files through command line? What is the difference between these two directories?
Is there any way to quickly remove multiple related packages from the command line instead of having to enter the name of every single one? I am trying to remove OpenOffice from my server running 10.04. It would work nicely if I could get a list of packages without line breaks, such as the list displayed by aptitude when upgrading. That way I could just paste the package list into the terminal. However, "aptitude search 'openoffice'" dumps a long list on many lines that cannot be used that way.
Yesterday i finally got around to installing my graphics card (NVIDIA GeForce 8400M CS) on fedora 12 by using the command yum install kmod-nvidia the terminal then told me that it installed correctly so i rebooted my system. Now when i boot up into fedora, it loads and when the sign in window is about to appear instead my screen shows random colors all over the place. I am hoping someone can tell me how to remove this via the command line prior to actually starting fedora.
I've just added an application to load on startup in gnome.At first gnome loads properly,but after few seconds that application starts automatically and I can see its icon on taskbar , then gnome freezes and I can't do anything in gui.
How I can remove that application from starup of gnome using command line?
I am having Fedora 11 installed on my laptop. I installed Ubuntu 9.04 a few days back but I don't seem to like it. I had installed grub loader of Ubuntu 9.04.
Ubuntu is getting stuck at the loading screen after an aborted attempt to upgrade to 11.04. It's my own fault - the install was running out of room on /, and I, like an idiot, decided to delete some package files under /var/something/archive, thinking they were "old"... I quickly realized they were in fact the new packages being installed... anyway after killing the thing and rebooting it is pretty damn broken (mostly because I can't get networking going so running in dpkg repair mode doesn't do much because, well, I deleted the packages).
I want to copy all the files off my /home and other meaningful partitions onto an external drive so I can just do a clean install. I can actually login to the command line under recovery mode, but I can't get the GUI started. I know it's possible to copy the contents of the partitions to an external
want to copy a file from my desktop to usb drive in command line...how can i do it...i have no gui interface..all i want to do it by command line.i.e how to mount the usb drive and copy the file to usb and then unmount it..i also want to access windows xp drive from linux in command line without gui interface...in opensuse there is windows folder under file system but in ubuntu there is no such option...so if i want to place a file from linux to windows drive such as d ..how can i manage it with command line...no gui interface is available...
Is there a good/simple way to do this?OK - Under certain other OSs, the 'safely remove' option on usb devices will...1/ On usb pen drive with a power/activity led, switch it off (trivial nicety, but reassuring).2/ On usb HDDs, spin down the disk - seems more important.I don't know if it really is but 'pulling the plug' on a spinning HD makes me nervous!I have tried a number of linux distros recently and only ubuntu 10.04 with gnome seems to do the same. Most others (including openSUSE 11.2, kde 4.3.5 - which I have) only seem to unmount
I am currently running the xen (64 bit) kernel, but want to move to the non xen kernel(64 bit) while retaining my carefully crafted system. I tried this once before by unticking the "virtualisation" and it removed the xen kernel, leaving me with nothing to boot from.
Can I safely remove 1 distro without screwing up the other? I have Linuxmint as secondary and ubuntu as the last.I want to replace ubuntu.If I just delete the partitions/format and install my other os which is OpenSuse 10.03 will this work.will opensuse see linuxmint and make grub understand?
But how do I mount the sdc drive with those options from the command-line without restarting? I've tried to do so with 'mount' utility, but had no luck.
I have an external HDD which I use under Fedora. After finishing with my work, I unmount all the mounted partitions of the external HDD & then proceed to switch it off. The HDD partitions are unmounted but they are still visible(but not mounted) under computer. The HDD still seems to spin. But when I click on "Safely Remove Drive" they disappear from Computer & also the HDD stops spinning albeit the switch on HDD being powered on. So what should I use "Unmount" or "Safely Remove". What is the difference between the two?
I have a usb wireless adaptor that I sometimes need to remove from the computer, but often it locks up my system upon removal, even after typing "ifconfig rausb0 down" Is there a Linux equivalent to the windows "safely remove hardware" applet for usb devices?
I bought a disk to a friend that used it in a raid array, using the entire disk for the raid usage. To put that disk on service, i used dd-rescue to copy my old disk entirely, and managed to grow and setup a the partition table without losing any data. My last step was to create a RAID between my entire old disk, with a single partition and a partition of the same size on my new disk. I ran into some problems, but i manage to somehow fix it imperfectly, but now this setup is working properly. The problems (and imperfection) came from an issue it did not suspected : at some point, the original RAID superblock of the new disk, living in /dev/sda, resisted to dd-rescue, and so it is scanned by mdadm that tries, obviously unsuccessfully, to use it.
Partition layout :
Code:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
[code]....
this setup is working properly besides this raid5 declared on sda, so that is shows up here and there. Since it is using the same device name that my other, proper raid setup, i don't know how to deactivate it since mdadm uses the /dev/mdx name to identify arrays.
After a fresh install of 10.04, there are many applications which I will never use. I am just scared to remove them, because if I try, I end up losing my desktop interface. And which ones can I safely remove?
Is it possible to safely remove Document Viewer from Ubuntu system? When I try to uninstall it using the Software Center it says that the Ubuntu Desktop system will go with it. Is there another, safer way?