Debian Configuration :: How To Automount Flash Disks
May 17, 2011
I have installed a minimal system with openbox window decorator. (without any window manager) when i insert a flash disk to my computer, system doesn't mount it automaticly. i must mount it to a folder to use it.
I have a small issue where an USB harddisk is not automounting. CD's, USB pens etc. are automounting without issues, so it is a little bit strange.I am mounting it with UUID, because I want the mount point to be the same everytime.As you can see from the fstab, it is NTFS.
dmesg [92.388083] usb 1-1: new high speed USB device using ehci_hcd and address 4 [93.079778] usb 1-1: New USB device found, idVendor=0bc2, idProduct=0502
I have a problem copying my udev rules from other distro to another pc running debian. My box is running debian without any DE and I want my USB disks to be automounted based on the label; I believe udev is the nicest way to do this task.
Anyways : my rules are (copied from archlinux wiki btw) cat /etc/udev/rules.d/92-my-media-automount.rules # vim:enc=utf-8:nu:ai:si:et:ts=4:sw=4:ft=udevrules: # /etc/udev/rules.d/92-my-media-automount.rules # Only work on sd* KERNEL!="sd[a-z]*", GOTO="my_media_automount_end" ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="my_media_automount_end" .....
I notice the directory is made successfully up inserting the usb HD, but the mount doesn't succeed. If I manually execute above command, the mount goes ok.
I'm running Debian sid and currently have xfce 4.8.0 installed. I have the thunar-volman package and it is configured to automount everything (cdrom & usb). I have hal, udev, gamin and autofs installed as well.For some reason though, automount just isn't working. It's starting to annoy me.I can mount the devices manually.I looked around already but most posts just advise you to install hal or something.
If you want, skip straight to the 'QUESTION' at the end of my post & refer to the 'EXPLANATION' later. EXPLANATION: Using Debian 6.01 Squeeze 64-bit. Just put together a brand new 3.3Ghz 6-core AMD. I had a nightmare with my Highpoint 640 raid controller, apparently because Debian Squeeze now handles raid through sysfs rather than /proc/scsi. The solution to this, of course, is to recompile the kernel with the appropriate module for /proc/scsi support. So I thought "screw that" and I've yanked out the raid card & went with Debians software raid. This allowed me to basically complete my mission. The raid is totally up and running, except for one final step... I can't get the raid to automount at boot.
My hardware setup; - Debian is running totally on a 64Gb SSD. (sda) - I have 3x 2Tb hard drives used for storage on a raid 1 array (sdc,sdd,sde)
Is it possible to automatically mount usb disks with access control lists enabled? I mean, WITHOUT adding a line to /etc/fstab for a specific disk;
I want to mount ALL ext4 disks automatically with the acl option (to preserve acls in backups. I don't want to set specific acls on my backup disks; just preserve existing acls).
I already tried enabling acl in /etc/fstab for / and modifying the acl for /media; it did not work (the modification was not even accepted).
Also, I cannot find anything in /etc/hal or /etc/udev that would be modifiable with my knowledge.
I'm running Debian 8.2 and trying to set up so I can plug in a couple of external hard drives that will be used to sync data between systems using rsync.
I've got the rsync bit working how I want, thats not a issue. But what I can't seem to get to work properly is when I plug the devices in, they don't mount automatically.
I've tried various methods to no avail so far, systemd.automount in fstab doesn't seem to want to work, for some reason it gives a I/O error. I've tried setting up udev rules and they don't work either, so I'm a bit of a loss now.
Not sure what info to provide that would be relevant at this time, but can add logs as required easy enough.
This machine is headless, so command line only suggestions would be best. I can access X via the network if I have to, but I'd rather do it by cli for ease of access.
My fstab file
Code: Select all# /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda1 during installation UUID=9b4e9dae-ea53-439a-a7fe-87c371c03803 / xfs defaults 0 1 # /home was on /dev/sda9 during installation
i installed latest ubuntu server 9.10 on my mini itx board which i have 1 4gb IDE disk and 4x2TB sata disks attached no i want those disks to automount on startup is there a way without modifiying fstab? the thing is, i want to expand the storage over time (next hard disks in a few months) and maybe a second mainboard in a year so i need a simple way to mount everything without being to mainboard specific like doing fstab entries
I am running Debian 3.2.0-0.bpo.2-amd64 on hyper-v, my / volume ran out of space and is sitting at 100%, I have extended the disk size on hyper-v, however when I go to Fdisk I see duplicates of each disk.
I have total of 2 vhds on the vm, so I see 4 disks under fdisk. Here is the output of fdisk
I'm trying to do some RAID managing with mdadm. I would like to sync my spare disk and then remove it from the array for making a backup out of it with dd command (the best way i can think of to get the current image of the whole system as it can't be done using the active RAID as source, because is constantly in use and changing). So, I have RAID1 array with 1 spare and 2 active disks (configuration listed below). Now I would like to force spare to sync and then remove it from array, although not faulty.
However, mdadm man page states: "Devices can only be removed from an array if they are not in active use. i.e. that must be spares or failed devices. To remove an active device, it must be marked as faulty first."
So, I'd have to mark a disk as faulty (which it is not) to be able to remove it from array. There seems to be several people reporting that they can't remove this faulty flag accidentally given to a drive. And mdadm does not give direct for such operation. Isn't there a way I could remove and add disks whenever feeling like it?? One way would be open the cover and physically remove the disk. I'm not taking the risk, though. System is almost always in use, so there is not much chance for me to power off for temporary disk removal.
RAID CONFIGURATION: ~# mdadm --detail /dev/md0 /dev/md0: Version : 00.90.03 Creation Time : Fri Aug 4 17:38:26 2006 Raid Level : raid1 Array Size : 238950720 (227.88 GiB 244.69 GB)
I have never seen this one before (see below) - note how /dev/sda1 is mounted from the first disk listed by fdisk, but /dev/sda2 comes from the second disk; what is going on here? This is what I did: I installed the latest debian "Testing", which went well - it found the disks in the order show by fdisk -l here. When it booted up after installation, it failed because it couldn't find /, which I repaired by editing the grub menu (I told it to start from the other disk), and it came up. But now I had to mount /u01 by hand from /dev/sda1; strange. I suppose I could just go and change the physical disks around, but I'd like to understand this. Any ideas?
Is there a command line tool to shut off/spin down the hard disk either when not in use or when something is typed into the console? I'm trying to save power in a laptop I have..
I have servers which contain SATA disks and SAS disks. I was testing the speed of writing on these servers and I recognized that SAS 10.000 disks much more slowly than the SATA 7200. What do you think about this slowness? What are the reasons of this slowness?
I am giving the below rates (values) which I took from my test (from my comparisons between SAS 10.000 and SATA 7200);
dd if=/dev/zero of=bigfile.txt bs=1024 count=1000000 when this comment was run in SAS disk server, I took this output(10.000 rpm)
(a new server,2 CPU 8 core and 8 gb ram)
1000000+0 records in 1000000+0 records out 1024000000 bytes (1.0 GB) copied, 12.9662 s, 79.0 MB/s (I have not used this server yet) (hw raid1)
I got firefox on my debian machine following the following steps- getting the necessary packages with apt-get update && apt-get install xorg iceweasel bzip2 libdbus-glib-1-2- downloading the latest version of Firefox on http://getfirefox.com- extract the firefox-3.6.13.tar.bz2 in the /usr/local/src folder- symlink the firefox folder that was created to /usr/local/bin withln -s /usr/local/src/firefox/firefox /usr/local/binNow, as I was looking for an easy way to have the latest version of flash running on firefox, I found this site: http://fixunix.com/ubuntu/239011-firefo ... pdate.htmland applied what was said on the last reply but it didn't workI also found this thread and gave it a try:viewtopic.php?f=6&t=42905&p=347986&hilit=flash+10+firefoxbut I got a 'command not found' whenever I try a update-flashplugin-nonfree --install
After searching the boards, I dug through the udev man pages and rule files looking for a way to modify the default automount options for USB flash drives. Apparently, the options are somewhere else. Is there a simple way to add noatime to the default mount options?
Currently, the flash drive is automounted as follows:
I'm using Fedora 12, beta RC 2 in case that makes a difference.
I know there are gigatons of information in the Internet about Flash automounting in Linux, but I can't find the right one. So I've been a Gnome-user for about a year now and got used to its automount system - I connect the Flash-drive and Gnome mounts it automatically to /media with its label (which is important). The same with CDs/DVDs so I always was getting something like:
Now I'm switching to Fluxbox and can't configure exactly the same automounting system.
i just install lubuntu and everything is work but it can`t` see my usb flash disks , usb ports is working because when i plug there my mouse it begin to work is any solution?
Got an old SUSE box from a friend, installed 11.3, got a few items: 1. didn't see any prompts to enter monitor info during install, control center shows as generic. Read about 'sax2' (hope that's right) but can't find it on my system or in the add-ons image. Do I need to hack monitor.conf? how? 2. installation aborted when trying to load 'textlive'.3. going into control center->mouse, the display quivers a little then I get kicked back out to the login prompt. 4. how to get kaffeine to process flv files? 5. how to get a flash drive to automount when I plug it in? I can manually mount ok. I guess that's about all for now.
I`ve installed openbox with Thunar and now I have problem with automount function. thunar-volman is installed, volume management in thunar is on, thunar --daemon $ is written in autostart.sh . But automount is not working.
I'm mad at my ignorance and hope some of you will be able to put me out of my misery I have an IBM X22 with Prism 2.5 Wavelan PCI chip with old firmware, which I want to renew in an attempt to get the Wifi working. Here the output of hostap_diag <wlan interface>:
I enabled java and flash in Iceweasel 3.5.16 via the related/required packages in the repository so flash-nonfree (or whatever it is) and the related java one. I didn't install either flash or java manually so no plugins that way. Flash and java works in Iceweasel. If I wanted to try Swiftfox, what do I do? I have it installed but both flash and java don't work.
I assume that one has to do the manual installs for both so go to both Flash and Java official sites and install the related Linux package. Will this conflict with my Iceweasel-based java/flash packages? Or do they go in separate directories and files? I don't want a conflict or interference and thus, don't want to break what's working.
im am new in compiling kernel, i had kernel 2.6.32-5 on debian 6 , so i compiled kernel 2.6.38.6 , my system can boot and up but i have a problem with flash disk and CDs and DVDs , now i cant mount these cases, in compiling i select CD-ROM /dvd filesystem and Dos/fat/NTFs filesystem too
After upgrading to Ubuntu 10.04 my USB flash disks no longer work properly. Some of them I cannot see at all. Others like my Kingston show up as Kingston & USB0 at the same time. I can see the files, but I cannot copy any files to the flash disk.
When I try to unmount I get a popup window saying:
If I try to eject or safely remove the disk by clicking on the Kingston icon, I get the following:
The only usb device that seems to work properly is my USB wireless dongle. My Samsung 1TB external drive works, but it appears as Samsung and USB1. If I click on Samsung, I cannot see anything. When I click on USB1, I see the files. This is a very annoying problem as I use my flash disks extensively.
They have broken something in their download site and it is no longer possible to get the latest flash player in a .deb package by direct download. The FTP site is years out of date. And there is no way to get through the "help' system to contact the people running the web site.
So does some third party offer the latest flash player in a .deb package for download?
I thought this might interest someone out there:[URL].. I used SD cards with MBR formatted as ext2 for backup. After I read these articles, I reformatted my cards with GUID Partition Table and ext4 format. Now I make my backup in half the time!
i set up an ltsp server on debian squeeze. after a standard installation, sound doesn't work on clients.
[code]...
when i start iceweasel normally (executed on server side), i get sound on the client. when i start ltsp-localapps iceweasel, i get no sound on flash sites and videos videos.what's wrong ? with local apps, is it possible that the flashplugin-nonfree doesn't talk to alsa ?
Is there a possibility to use a flash drive as a speed up for conventional hard disks? I got the idea to redirect all read ops to the flash drive if the data is already stored there, and to read from the conventional disks if the data is not found there (and during idle time the freshly accessed data from the conventional disk is stored on the flash disk).
Is this already possible with linux standard tools?
my grandfather uses a linux machine for web browsing, emails etc. So he mostly uses Firefox, Thunderbird and sometimes also Skype and now he has also Jabber account. Currently there is Pclinuxos 2009 installed (the newest one with KDE 3.5). I used a frozen community repository, but this also brings the problem I cannot update the used programs as I am afraid it would attempt to replace the old KDE as well.
I know I can update Mozilla apps by downloading a static rpm and install with KPackage or Konsole and similar with LibreOffice. Not much friendly... I also discussed switching to other WM - but GNOME surely not, maybe Xfce (other ones have other issues).
Is it possible to somehow make KDE4 to behave like KDE3.5 in some ways? At least auto-mounting of flash drives etc.