General :: Automatically Mounting With Wide Open Permissions A FAT Formatted USB Flash Drive?
Feb 18, 2011
I have a netbook running Ubuntu Netbook Edition and I would like a USB flash drive to be automatically mounted whenever I plug it in. The drive is FAT formatted. It mounts when I plug it in but all files are only writable by my user, other users only have read access. I understand that I need to add a corresponding entry to the /etc/fstab file. I've added the following so far:/dev/sdb1 /mnt/USB_DRIVE vfat
Firstly, is that appropriate so far? I've created /mnt/USB_DRIVE as root. Next, I'm not sure what options I should be finishing the line with, especially to get all users to be able to write to the drive.
When I mount an external usb drive on linux (CentOs4), the permissions are by default set to read-only. Since there are multiple users on the computer who need to use the external drive, I want everybody to have rw permission for the entire drive. I also want them to be able to mount the drive if the computer has accidentially been shut down. They can use sudo mount to mount the drive, but this will only give them read permission, and I obviously don't want to allow sudo chmod.
Is there a default setting that I can change so that every new external usb disk automatically gets rw permissions?
I'd like to plug a USB FAT32 formatted memory stick into my Linux laptop and have it mount automatically as it does now but with wide open permissions. At the moment it opens with files only being readable and writable by the user but I would like other uses to be able to read and to write to files (i.e. I use Apache to serve a site from the stick for development purposes).If it matters I am running Jolicloud on a netbook.
I am trying to install a harddisk, which is already formatted as ext3, into my Qnap NAS box. The web interface of the NAS box shows, that the harddrive has been detected, but I am not able to mount any of its partitions.This is the output from fdisk -l:
how to boot Ubuntu from USB flash drive that is formatted ext4?That is, making a portable ubuntu. But not merely a LiveUSB created using the 'Universal USB Installer' or 'UNetbootin' because the LiveUSBs created using these applications are formatted in FAT32 and uses a persistent partition just to save the changes and files.If I have your attention, what we want to achieve is a portable and bootable Ubuntu in a flash drive that is formatted in ext4.
I have Ubuntu 9.10 and when i plug in my usb drive it wont mount it automatically and is not shown in the nautilus browser also, but if i search in /dev its visible(its detected) and i can mount using mount /dev/sdc /mnt But if i do this i can only copy files from browser and for all other times i need to use terminal again
Is it possible to automatically run a program on a USB Flash drive upon plugging it on a computer?the program should create a text file inside the USB flash drive as i plug it on the computer? Is this possible? how can i do this? autorun.inf doesn't work. Are there any solutions? by the way, i am using kernel 1.0 on my computer...
when I plug in a Small USB key, hotplug sees the new device, mounts it in userspace and creates a link on the desktop. The user can open the link and read and write to the USB key. I have tested 3 different usb keys and they all work. When I plug in a USB 250 GB drive (Lacie), also fat32, it doesn't mount:
May 11 12:25:29 tinkerer kernel: SCSI device sdf: 488397168 512-byte hdwr sectors (250059 MB) May 11 12:25:29 tinkerer kernel: sdf: Write Protect is off May 11 12:25:29 tinkerer kernel: sdf: assuming drive cache: write through May 11 12:25:29 tinkerer kernel: SCSI device sdf: 488397168 512-byte hdwr sectors (250059 MB
However, I can mount the drive manually as root. The problem is that the user cannot write to the device if it's mounted by root.Is this a problem with hotplug/udev or another way that I can make this device available rw to the user?
I looked through the guides and didn't find what I was looking for. Here is what I have so far:
That's the drive I am wanting to mount with full permissions for anyone. Right now the folder only has root permissions. Is there a specific group ID I assign this in fstab so it's automatically mounted with full permissions for anyone who logs in?
I just formatted my iomega 250 gb external HD to ext3. This is where i store media, such as music. What I am attempting to do is take all the music from my 5th gen 80gb ipod (rockbox firmware), and transfer it back onto my external drive, as all my data was (naturally) erased during the format. However, as soon as I plug in my ipod it mounts as usual... but after about 15-20 seconds my external drive unmounts. When i do a 'sudo mount dev/sdc1' it says sdc1 does not exist. How can i fix this? what is the problem? I have my ipod set on /dev/sdd2 and the external drive at /dev/sdc1, each with their own mount point. They each work perfectly independently. I have tried switching usb ports around and rebooting.
whenever i plug in my flash drive i get an error message saying that it was unable to mount the thumb drive and some other stuff
Error mounting: mount exited with exit code 1: helper failed with: mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
what do i have to install or configure for this to work we need to be able to mount our thumb drives on this machine it's crucial
What should I do if I want to allow access to USB flash drive selectively - Say for e.g. All permissions for "root", "Read/Write" for user "A", Only "Read" for user "B" and user "C" shouldn't be able to access or mount (no permissions) the USB flash drive at all.Also I want to do it by modifying entries in some files or by some commands (so that it can be done programatically if needed)
I formatted the USB flash drive using Karmic's Format Disk utility (right-click on a volume, select "Format..."), and selected "Encrypted, compatible with Linux (FAT)" from the "Type" drop-down menu.It mounts correctly when I plug it in, and I can access the files just fine.When I unplug the Flash drive without using the 'Safely Remove Drive' option, the icon on my desktop changes its name to '2.0 GB Encrypted', instead of disappearing and unmounting like my unencrypted Flash drives do.
I would like to have encrypted Flash drive treated in the same way as my unencrypted Flash drives, which disappear and unmount when unplugged, even if the 'Remove Safely' menu option isn't used. What can I do to accomplish this?NOTES:When I plug the encrypted Flash drive in, the following line shows up in the output of 'mount'. 'secure' is the name I gave the disk during the format process:
Code: /dev/mapper/devkit-disks-luks-uuid-302db16c-c6e2-4dd9-a259-436437c76475-uid1005 on /media/secure type vfat
I am having permissions errors every time I try to mount a windows host. I have a linux server and all the windows computers can see that computer and its files, but we wanted to start backing up the linux machine to one of our other computers. so I tried to mount one of the computers. here is the sequence of events:
Code: $mount -t cifs //192.168.1.194/Admin$ /mnt/Anita-comp password: (I have no password so I left it blank) Mount error (13): Permission Denied I tried all sorts of passwords we use around the office and none of them worked.
I then decided to try mounting one of our other computers. this one looked like it worked fine. no error messages at all. (I left password blank) so I look in my filesystem and the mounted drive is not in the /mnt/Anita-comp file. What gives?
I have an external hard drive which has the mac os filesystem (hfs+) and it is read-only. I was trying things like 'sudo chmod 777 /path/to/my/drive' or 'sudo chmod -R u+w /path' but it wasn't working.
I just want to be able to have write permissions, anyone know how?
Running Debian Squeeze, I used gparted to wipe the fat partition on a 8GB USB thumbdrive, and repartitioned it with ext3. Everything goes fine, and gparted and fdisk -l both show the correct partition, but I can't seem to mount it, and automount in gnome fails as well.code...
Last night I made the mistake of formatting my media drive. Before the format, it was ext4. then I formatted it to ext4 again because I wasn't paying attention to what I was doing(this mistake only gets made once). Now im looking for away to recover any/all of my data. The drive in question is 1tb. I have not written any new files to this drive.
start getting Linux up and running. Like a lot of people, I chose an older computer I could fuss with, a 500mhz 256meg ram machine, and decided to install Puppy on a spare 40meg hard drive I have, as my bios does not boot from usb...I think...
Anyway, I have found that my bios does not recognize the hard drive when formatted to ext2! I have taken the drive and formatted it back to ntfs, and my bios recognizes it, and then back again to ext2, and nope, it's not there, thus I am still booting puppy from the cd...sigh...
Is my bios so out of date that I'm just out of luck? Is there anyway to check this?
I loaded Ubuntu 8.4 on a data drive (second drive no OS) from a Windows XP-SP3 system. I MEANT to load it on the main XP OS drive. Bottom line I formatted a FAT-32 with Ubuntu 8.4. Can I (freeware hopefully) roll back the Ubuntu formatted drive to FAT-32 so I can recover my data?
I keep getting an error message saying "The volume uses the FAT 32 file system which is not supported by your system." I've formatted the drive a few times and the problem remains, but only with this one. What should I do? edit: I have tried formatting it to other formats, Ext3, fat 16, etc. but the error message stays the same.