Fedora :: Auto Run A Script When A Usb Hard Drive Is Plugged In Without Configuring Machine?
Mar 24, 2011
Is there a way to auto run a script when a usb hard drive is plugged in without creating a udev rule or something similar. The idea is that no matter which computer I plug the drive into it runs the script automatically (I want to EXPORT some directories when the drive is plugged in)?
In Fedora 15, when I plug a USB drive, Nautilus will automatically open and show whats inside of it. I'm working in a project where I have to plug and unplug USB drives many times, and Nautilus opening every time is really annoying. I tried to use gconf-edit and set the keys apps>nautilus>preferences>media_automount and media_automount_open to false, but it didn't work.
I finally got my new internal hdd for my laptop. I plugged it in and installed windows 7 64 bit. Then I partitioned my external hdd (WD mybook 640gb), and installed ubuntu 9.1 on a 200gb partition of it. The problem is that I didn't unplug the internal hdd before I installed ubuntu. Now the computer will not start unless I have the external hard drive plugged in.
So what should I do so that I will be able to go into windows 7 normally if the external hdd is unplugged? I would also like to be able to use ubuntu when I plug in the external hdd. I wouldn't mind having to go to the boot menu and choosing the external hard drive every time I wanted to use ubuntu.
The reason I partitioned the external hard drive was because it has a lot more space than my 250gb internal hdd, and I also wanted to leave space open to use as was intended, to back up stuff.
However, now that I think about it, I wouldn't mind partitioning the internal hdd and just leaving the external blank (which I should have done in the first place).
this issue has been bugging me for years. I want the same capability in Fedora that exists in most recent versions of Windows -- disable the touchpad on my laptop if an external mouse is plugged in. Note that my how-to is a little hardware-specific regarding the actual disabling of the touchpad; I'll discuss that more at the end of the guide.
So, here goes: For my OS (Fedora 13 x86_64) and hardware (Dell Precision M4500) - I needed a specific utility and three scripts. This Dell's trackpad and nipple-stick are seen as an 'internal' PS/2 mouse by Fedora, so I had to install 'xinput' to disable it.
I had this corrupted external hdd and so I formatted the main partition on it on windows but messed up in the formatting and ended up having to format the entire thing. I got some weird message about it not being initialized (no not mounted) so I was in compmgmt.msc in windows and right clicked it in device manager and it asked for master boot or GUID I selected the latter and formatted. Worked fine and all for a bit but now it doesn't show up as a drive. I noticed when using compmgmt.msc it showed up that it had installed driver software and was being recognized but in the partition editing area there was nothing on this drive, reinstalling driver software doesn't seem to help. Also GParted wont load up when I have it plugged in and Disk Utility doesn't show it. I am requesting help to fix this problem within Ubuntu 10.10 somehow so I can use it properly.
Someone explain this to me. I often thought in the back of my head, how do I check if my drive is bad in Linux? I always excused it thinking well I guess besides gaming that's another reason to keep a windows partition around. I boot up yesterday and Gnome was acting weird. Then, it happened. "We have detected bad sectors in your hard drive." I thought, no, you're stupid, this hard drive is less than a year old (however it was a replacement for another one that died). So I reboot.
Boot back up - Different error message. But instead of getting it a few minutes after log in, I got it right away. "We have detected potential hard drive failure." Okay, Linux. Want to play this game? Booted to Vista, downloaded Seatools to test my Seagate drive. It failed... Swapped SATA cables... it failed... So I ask - how does Linux have this auto detect capability like that? As much as I love Ubuntu, I was like there's no way it could just magically tell like that without running the Seagate program. But alas, Ubuntu was dead on target.
Subject: grub no auto update new hard drive.doc Date: 07/26/2010 03:48:45 PM grub no auto update new hard drive.When installed 11.2 on Western Digital VelociRaptor 150 GB hard drive and now installed 300 GB VelociRaptor drive. Your grub does not update correctly to identity the op systems after the new drive is imaged; youre kidding right? I request that you provide the instruction for correcting this; you must have and auto update for grub.
i have harddrive on which raid 5 is configure and no file system is configured.so i want to access the data on auto raid component harddisk.could any one telme how to access auto raid component hard drive.when im connectingto my laptop its not opening.when i check in disk analyzer its showing auto raid component harddrive.please helpme to access data inside the raid drive.
Just installed Slackware 13 this morning. It's been a long time since I last tried Linux, but Slack works (a lot easier than Slack 8 did back when I last used it!) quite well. I'm using the XFCE desktop and it's smooth as silk except for one odd problem-I cannot get any of my USB drives to mount. I just plugged in my Lexar 4GB USB flash drive and received an error message. Here's from /var/log/messages from when I initally plugged in the drive (I have a 500GB WD MyBook USB external drive that is always plugged in):
Any ideas or suggestions of what to look at? I'm not familiar with HAL in Linux although I've seen plenty of discussion about it and have an idea of what it's supposed to (or break! ).
I experienced a full hard drive yesterday due to a massive error_log. We took care of the errors, but later found out we were missing files, including a MySQL database table. Having a shopping cart and ecommerce stuff on the site, we found that some of those files were missing, too.Does RHEL 5 have some sort of feature for automatically deleting files when the partition is full? If it does, I want to turn it off.
Dropbox will not start properly because my Lucid installation is on a SS HD (/dev/sdc) but my data, including my Dropbox folder is on an internal NTFS-formatted HD (/dev/sda), and I also have another internal HD for backups (/dev/sdb).
For some reason I can get the backups HD to auto-mount on startup, but not the data HD. My fstab file looks like this:
I did an installation of SUSE 11.2 on a new SCSI hard drive. Keeping the old hard drive separate. I remembered there was some info on the old hard drive I wanted. I added this to the system and mounted a partition. I then copied the data over. Then I umounted the partition rebooted the machine and removed the hard drive. However the machine will now not boot without this hard drive even though its not mounted. Not sure what the error message I am given means I think it could be trying to fchk it. Do I need to do something more like remove /dev/sdd?
Have a machine running Fedora Core 4 that has been used as a mail/web server. Now want to transfer drive to a newer machine. Can this be done without having to re-install fc4 and what becomes of current network settings
I have ubuntu running inside of a virtualbox on an xp machine. Is there any way to mount the hard drive that the virtual machine isn't using? AKA the C: drive of the computer?
I use Unity 11.04 on a 64-bit machine with 8Gig and a TB hard drive, so resources shouldn't be a problem. The pane on the left hand side (showing my computer main folders has disappeared when I click on "Home Folder". So has the ability to have two panels. I can see the hole folders but not any of the extra folders (dragged folders or usb sticks).
I now use Krusader which solves most of my problems. However there is a folder of files I use a lot, so before I lost this ability I had draged the folder to the left hand column showing all my folders. Now I can't access the folder I had dragged to the left hand panel, and it seems to have disappeared from its original place.
Trying to install Fedora 12 using the 6 CDs. Trying to install on an older x86 box.Problem is that when detecting my hard drive, Fedora 12 recognizes it as a sda hard drive instead of hda hard drive. I have no SCSI connected to my computer what so ever. It's an old fashion PATA Western Digital hard drive.If I proceed with the install, Fedora 12 only installs 200MB of the OS from the first CD only. No options for additional software or anything.
I would like to install Ubuntu (latest stable) on a VirtualBox machine, set it up, install several apps, and then deploy it on a real PC. I think the main issue is the new hardware (which sould be different from the 'virtual' one). What should I do at that time? Is Ubuntu able to detect and install the new hardware?
I don't understand this: I did Quote: rsync -avz --delete /media/PPT-WORDS centguy@centos52-64-dell:/media/ while I was at home connecting my portable hard drive to a desktop centos52 machine. On the next day, I came to the office and I connect my portable hard drive to another centos52 machine, do do
VMware virtual machine with the RedHat9 can not recognize win7 hard drive, so can not be mount,how to solve? Situation is showed in the Figure,when type the command ,it do not display the hard disk, the picture is below [URL]
I have a fresh installation of Fedora 11 and I am having a hard time figuring out how to automount my storage drives. Each time I login, I try to access my various storage drives and gnome makes me authenticate asroot before mounting it. FSTAB lists only logical volumes but not my storage drives. What can I do to make sure these automount when I login?
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.
I got a dell inspiron 1501 laptop with a 80Gb sata drive what is the best solution to add data storage space for someone that love to have multiples operating systems at hand Note: I use mostly linux so I won't need to change my laptop for many years maybe ...
How to configure auto responder / out of office reply in sendmail / squirrelmail. I tried to get plugin local_autoresponder_forward from squirrelmail.org , but it is given in the readme file that it only works when sendmail having enabled this feature. I am using virtualmin for sendmail and I have this feature enable by default in virtualmin and usermin but my users use squirrelmail for mail access?
i have installed fedora 14 with so many libraries ,development tools installed on my pc but i usually have to present some projects which can run on my system .........and can't be executed or compiled due to absence of libraries and tools there so, i there some way to so that i can use this current installation on my hard drive of my pc to some external media like external hard disk and plug and use that installation anywhere on any system..
I'm trying to add a new hard disk to a fedora 12 machine. I have ran fdisk - OK. when I call mkfs.ext3 it sais device is muonted but when I call unmount it sais "not mounted".
My parents bought a new hard drive for a laptop that I've owned for several years. It's much larger than the current one, so I plan on splitting it up to dual boot it with Ubuntu.I have no problem with partitioning a drive (I always keep a LiveCD handy), but my question is this: how can I go about moving the existing partition to the new drive? This is a laptop, so I can't simply plug the new drive into another slot.
Also, even if I manage to move it, will Windows still work on the new drive in a larger partition? I've had this laptop for quite a while, and I've lost the recovery discs that came with it a long time ago. I also have a lot of software without CDs to reinstall them with. This makes not reinstalling Windows a high priority.
My Fedora does not auto detect a flash drive if I get to attach it with the OS already running. I still have to make a reboot and attached the drive right from the start in order for it to be detected/mounted.
Unlike In Mint 7, Ubuntu and XP, it automatically detects the flash drive as soon as it is attached.
make my Fedora detect the flash drive so that I would not have to reboot everytime I would use it.
FWIW here are some outputs: Code: # /etc/fstab # Created by anaconda on Thu Feb 4 06:06:47 2010 # # Accessible filesystems, by reference, are maintained under '/dev/disk'