I would like a USB thumb drive to be automatically mounted whenever I insert the drive into my PC (previously I had been mounting it manually with the 'mount' command). I gave the USB drive a unique label with e2label. I added an entry for it in /etc/fstab. This works in the sense that if I run "mount -a", the drive will be mounted. However, it still isn't completely automatic. Am I missing something? What else do I need to do?
When I insert a USB thumb drive into a USB socket a "CD-ROM Disc" icon appears on the desktop. When I double-click on the icon I get a "CD/DVD Creator" window. Messages in "/var/log/messages" shows Vendor (Sandisk) and Model (Cruzer) for the USB thumb drive. Those are correct. But for Type it says CD-ROM. What's up with that?
I have an ecryptfs partition on a usb drive, system runs Debian squeezeWhat I'd like to have is that when I connect the drive it will be auto. mounted and I'lleither have to enter the passphrase or it will already be in the keyring (even better).It seems ecryptfs can auto-mount a directory but I want to auto-mount an entire encryptd partition. Is this possible?.Also, can I have another encrypted directory, say ~/Private, at the same time or can ecryptfs handle only one at a time?
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 would like to exec a script whenever a user mount a device. The device could be an internal device (for example a partition on a second hard disk) or a removable one (for example a usb hard disk). The script must have sudo capabilities even if the user is not included in the admin group. Is it possible?
The specific question: I would like to add acl option to a device whenever it is mounted. I tried fstab but it's changing the behaviour of nautilus see:
[URL]... so I would like to create a script with the command
Code: sudo mount -o remount,acl /media/data and auto execute it any time data is mounted.
The software: Ubuntu Server Edition 9.10.The wetware: A programmer doing his best (read: ignorant, shitty) as an ad-h.When I plug the USB thumb drive in, the install OS gives it a drive letter -- /dev/sdb -- and it pushes the original /dev/sdb down to /dev/sdc. The installation works without a hitch, and GRUB2 installs, dutifully pointing the root at /dev/sdc1 instead of /dev/sdb1.I let GRUB2 start normally ("drive not found"), holding the <shift> key to get to the "rescue>" prompt.From there, I issue "ls" to discover that GRUB can NOT see /dev/sdb, and I can tell that because what is showing up as (hd1) does NOT have three partitions as it should.GRUB2 sees a total of 16 drives, not 26, and one of the drives it sees is "fd0" (there is no floppy drive).Issuing commands like "set prefix=(hdx,y)" and "root=(hdx,y)" have no effect as, I think it's just pointing to the (reiserfs)content drives and this GRUB2 tells me "unknown filesystem".I did try them all in vain, hoping that maybe I'd find a kernel somewhere.I used the "rescue" mode of the Ubuntu installer (the USB thumb drive) to get to a root prompt.From there, I mounted /dev/sdc2 (the "shifted" /dev/sdb2) onto /mnt, I mounted /dev/sdc1 (the "shifted" /dev/sdb1) onto /mnt/boot,and then I chroot'ed to /mnt.I edited /boot/grub/grub.cfg, editing every instance of "root=(hd2,1)" to the appropriate UUID for the "real" /dev/sdb1. Then I issued update-grub2.It refused to work giving me an banal "no such partition" error or something like that.
We originally had this server functioning by putting / and /boot on the SS SanDisk, which caused no problems during installation because /dev/sda doesn't get shifted.We then figured it was a good idea to put our OS files on something with failover capability. And that started us down this crappy "shifting drive letter" path.Can I control which drive letter the USB thumb drive gets assigned during the install process?If I could make it be /dev/sdc then I wouldn't be facing this problem.An alternate solution would be to know the cryptic GRUB2 commands that I can issue from the command prompt post-install, pre-reboot.But I'm wondering if that will ultimately work at all considering that GRUB2 couldn't see /dev/sdb at all.
I am new to Linux ,i did one project in windows which will block the thumb drive with respect to serial number(Device instance ID) of the device.i am planning to do the same project in Linux using c/c++.I am very new to Linux,there is no drive letter for thumb drives we insert into Linux OS.How to get Drive letter and how to get Device instance id of thumb drives please help me get some clues.please provide me any tutorial or any links .w if have any other clues to block devices with respect "block list" and "allow device list".if the serial number in block list it has to block if serial number in allow device list it has to allow thumb drive to access.
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?
Nothing happens when ordinary users plug in a USB thumb drive or insert a CD into CDROM drive. Works fine for root. After root mounts the drives then all users can use them. How can I enable mounting/unmounting by all users?
I have installed a 2TB drive in my dual PIII 866 with 750MB ram. The drive is properly installed and I have configured the drive with 1 partition in RAID1. The array loads fine, but when I add the entry to mount the /dev/md2 /data/repository the following error occurs The filesystem size according to the superblock is 488378000 blocks The physical size of the device is 488377986 blocks Either the superblock or partition table is likely corrupt I have run fsck manually with no errors reported. I have removed the partition and rebuilt the array. The array assembles properly and I can manually mount the /dev/md2, but as soon as I add the entry to the fstab I get dropped to a shell after a reboot. Not sure where to go now?
So i saw a thread somewhere about using a thumb drive to make extra ram for your pc. This was of course on a windows pc. I was wondering if this works on Ubuntu also and if it is really worth it?
Also if you have 4 USB ports could you put in 4 usb thumb drives and have a fantastic amount of ram?
I have a new Giada cube with no hard drive, so my plan is to simply run a Linux/MythTV distro called MythDora from a Patriot 8GB USB stick (this Giada does not PXE boot). I am having trouble figuring out exactly how to make this work. Yesterday, although I have forgotten exactly how, I was able to put a MythDora Live image on the stick and boot up. I went through the initial setup, and then, when I was all done, I rebooted, and..it started all over again...as if I was doing it for the first time. So...What do I need to do to create a proper bootable USB stick?What ISO image should I use? The full DVD? Or the Live ISO? or the Network image?Do I need to partition the stick and load the O/S from one small partition, transferring the installation to another larger one?What utility should I use to create the bootable stick? unetbootin? or similar?Do I have to do anything special to make my O/S and configuration changes persistent on the USB stick?
I want to copy my /home to a USB thumb drive recursively. I've wrestled with this for a few hours now and continue to spin my wheels.The device is listed in my Disk Utility as /dev/sdc. However a little further down it is listed as /dev/sdc1 ? Anyway, I relabeled the volume as usb stick and formatted it to Ext4. I mounted it at /media/usb stick Do I have to enter this drive into the fstab? If so, how? what do I write? Using the command : cp -R (what follows... I want to copy /home recursively to the usb thumb drive.)
I need to have a web app that is feeding ip camera feeds across internet to a server. Need to have thumb drive preconfigured with cameras prior to shipping. End user plugs in cameras, puts thumb drive in any running PC, have WEB app start with some menu options to like name the feeds. Back at server receiving feeds are broadcasted via secure web site.I have never worked with Linux but have read some incredable things already.
The following quote is the sad, sad story of a thumb drive with the partition table nuked, as told by a friend of mine:
Quote:
Data was recovered from an XP system by booting with a BartPC CD and copying onto a USB thumb drive. Nothing unusual.
System was rebooted into the XP install CD.
The first drive that was found was the 16gb thumb drive (AKA flash drive) and the person (re) installing XP didn't catch the fact that XP presented the 16gb thumb drive instead of the 160gb hard drive.
The drive partition function in XP deleted the partition table - on the thumb drive.
A freeware utility in Windows shows the data but can't recover the file names, so that everything is gobbledygook. Does anybody know of a utility or program under Linux that can help? I have a laptop running F 12 and can do the work if needed, but don't know what program to use.
I am looking for OpenVMS distribution on a thumb drive for a PC. I image it would be a Linux system that automagicly starts a VAX simulator then boots OpenVMS on that. Either it would run live off of the thumb drive or it would install to the system's hard drive.
I've just installed UNR version of Ubuntu on one of my thumb drives and was wondering what I needed to do to for making it have persistent changes? I've seen the different tools and the usb creator they have on Ubuntu already but I want to do it myself from scratch. What files do I need to edit to make the drive persistent? I made the bootable thumb drive using UNetbootin.
i inserted a thumbdrive on one of the usb slots on my laptop upon inserting it shows:[sdb] Assuming drive cache: Write through[977.113519] sd 5:0:0:0: [sdb] Assuming cache: Write through
how to read the contents of my thumbdrive?Do i need to mount it first or what should be the procedure?
I have a thumb drive that I cannot get a clean format done to use it as a boot device.Is there some way to do a lower level format (I am using Gparted) to get rid of this error?
I want a USB drive for emergency situations. It will have sensitive information, family photos, etc. stored on it. I want it to have one encrypted portion (TrueCrypt) for the sensitive materials. I want the files to be able to be viewed on a Windows machine first and foremost. If no Windows machine is available I would like to have a bootable version of Ubuntu on the USB drive so I can boot it and also view the files.
I want to move 1.2GB of photos onto a 2GB thumb drive, calling up Properties, it says the size on disk is 9.7GB. What is going on? I don't recall discrepencies this huge in previous OS's. What is taking up 7 times more space than my actual files?
I 'm using vmware server to virtualized suse linux enterprise server11 as the guest operating system under my main OS of window 7 professional version, but when i plug on the pen drive, SLES11 (guest OS) that hosted under vmware with window 7 prefessional as main OS can't detect of my pendrive but i can do this before at window XP version...
I have thumb drive connected to a busybox box.I mounted it /opt in initialzation file. However after a while it will unmount itself because it changes its drive letter from sda1 to sdb1. How could a usb device change its drive letter by itself? How could I prevent it happening?