Ubuntu :: Dd Over Usb External Drive - Damn Automount?
Aug 2, 2011
I have an external harddisk (actually removed from a laptop) and I want do some analysis and data recovery on it. I bought a sata-to-usb adapter. Now the problem is: if I deselect media_automount "media_automount_open" and I select "media_autorun_never", the external sata driver is not recognised and I have no /dev/sdb1 to manually mount. Not a hint of a newly plugged drive in dmesg.
Then I re-enabled automount and then I remounted the drives as read-only. Afterward I starter cloning the hd with dd.After some three hours, the f*ck*ng laptop remounted the partition rw and the dd process went into io error. So the question is: how can I safely work with a usb device with manual operations?
Everyone seems to what to know how to automount an external USB drive. I'm trying to stop 9.10 from automounting it. Normally I use fstab to mount an external drive where I prefer it to be mounted. But after the last software update karmic (9.10) is now automounting my drive and screwing up the fstab mount. Some how the drive is showing up as /dev/hdd1 and /dev/hde1. I could just shutoff automount but I like it for USB sticks and cameras and MP3 players. How do you stop automount from mounting just an exteral USB drive??
I'm trying to setup my media streaming server, and everytying is going quite well, but there's one thing I don't understand. Can you have ubuntu automatically pick up and mount your external USB drive when you switch it on? I don't like leaving the hard drive running, and I only need to have it on when I want to stream something, but it seems to lose the mount when I switch it off and on again. Anyway to make it automatically detect that it's on and mount it back onto my mount point?
When I plug my USB drive in, the kernel sees it and I can mount it manually. However, it won't automount. I've done plenty of google searches but nothing I've tried has worked for 'GNOME, SUSE 11.3.' I am not sure if it is a permissions problem, configuration problem, a kernel automount, HID, or USB problem.
uname -a (stock SUSE desktop kernel): Code: Linux linux-hez9 2.6.34.7-0.7-desktop #1 SMP PREEMPT 2010-12-13 11:13:53 +0100 i686 i686 i386 GNU/Linux
Here is the output from /var/log/messages: Code: Feb 14 15:47:09 linux-hez9 kernel: [16258.620213] usb 1-1: new high speed USB device using ehci_hcd and address 6 Feb 14 15:47:09 linux-hez9 kernel: [16258.749549] usb 1-1: New USB device found, idVendor=1058, idProduct=1023 Feb 14 15:47:09 linux-hez9 kernel: [16258.749553] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 .....
I have a luks-encrypted external drive with lvm on top. When I plug it in xfce prompts me (twice as usual) for the encryption phrase. Then, unlike when I have a regular file system on top and it automounts, I need to activate the volumes and manually mount. Is there a way to make these steps happen automatically?
After some weeks of use and occasional unplugging-when-busy, my 500GB external USB hard drive no longer will automatically mount when I plug it in. The blue light lights up when I plug it in, but there is no automounting behavior. Also, when I type
Code: tom@zeppelin:~$ sudo mount -a nothing happens. The result of fdisk:
Code: tom@zeppelin:~$ sudo fdisk -l Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xed1f86f7 .....
My external HD where everything I backed up from my previous install will not mount. It shows up in lsusb, but when I do dmesg:
Code: [20801.408614] usb 1-3: USB disconnect, address 36 [20804.190095] usb 1-3: new high speed USB device using ehci_hcd and address 38 [20804.343675] usb 1-3: string descriptor 0 malformed (err = -61), defaulting to 0x0409 [20804.345100] usb 1-3: configuration #1 chosen from 1 choice
Also of note, my main filesystem is reiserfs, so there isn't a problem of not having reiser installed.
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 have two centos systems one automounts the external usb hard drive and other doesn't what do you think could be missing in the system that is not automounting the external usb drive.
And right after I restart, all users have permission to read and write, and everything is fine. However, I have an automated backup utility (BackinTime) installed to back up particular (mounted network) directories every night, but whenever I check up on it the next day, I get the error "Unable to mount ..... Authorization required". (These network directories are mounted into the local filesystem in fstab as well.) Oddly enough, if I run BackinTime by hand as the users, it works fine. I'm running 10.04 LTS.
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?
11.3 in use with KDE. When I plug in an USB stick or my HTC phone into the USB connector the device is recognised but can't be opened in dolphin. This is the error message:
Code: org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.storage.mount-removable auth_admin_keep_always <-- (action, result) but the device is shown in dolphin as a removable device and
Code: # lsusb Bus 001 Device 005: ID 0bb4:0ff9 High Tech Computer Corp.
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
Ubuntu v9.10 I have a damaged HDD which I want to clone using ddrescue. I want to attach it via USB connection, otherwise Linux hangs on startup. I don't want the O/S to attempt to mount the drive.I would be happy to disable mounting of all external USB drives.How can I achieve this?
A couple of weeks ago, my CD/DVD drive stopped working. I'd put in a disk, the light would flash, but it wouldn't appear as a mounted drive. Thinking the drive had finally died, I bought a new one. Same problem.
The drive is recognized by BIOS. I have it as try to mount first in BIOS, and if I put in the Ubuntu boot CD, it boots.
If I put
Code: /dev/sr0/media/cd-dvdudf,iso9660defaults00
into /etc/fstab, and then mount -a, the drive contents appear and are accessible. However, as expected, the system chokes on boot if there isn't a CD in the drive, and I have to mount -a manually every time I start the system. Ugly.
So this is pretty clearly a software OS problem. how I can get the automount for my CD/DVD drive back?
I am running Ubuntu Server Lucid.I want to have USB drives and network drives mount at boot, however the drives *may* not be there (after all these are USB drives and also the network may be down making network drives inaccessible).I tried putting entries in the fstab using the UUID, however the boot just hangs if the a drive is not connected (that ureadahead headache).
I would like to mount a (ext4) drive permanently.I don like to use any additional packages to automount. Can anyone say me the manual way of entering the partition information into the fstab entry?Output: fdisk -l
Code: karthick@karthick:~$ sudo fdisk -l [sudo] password for karthick:
How can I automount a drive at startup? What changes do I need to make to the /etc/fstab file? I am posting the screenshot of my gparted. I want to automount /dev/sda2 whose label is "Home" and which is an ntfs partition. You can see it in the screenshot.
Im a linux. i've messed with the drives in the terminal and the drive keeps trying to automount to in the Windows 7 NTFS partition on Startup of Ubuntu 10.04, how do i disable this?
I want nautilus to automatically mount my external drive when ubuntu 10.04 starts. This drive is encrypted, but the key has already been stored and all I have to do is click on it in my Places menu for it to mount.
It mounts to: /media/Will's Drive
I feel like I shouldn't have to edit fstab or anything like that. If I can add it to my startup programs, that would be great, I just need to know the command to get nautilus to open up /media/Will's Drive at startup.
I think), and when I inserted a mo-disk in the drive, it automatically mounted and turned up as /media/disk. I then did an update (all) an now I am on core 2.6.31-12. The mo-disk will not automount any longer. Inserting a USB stick or a DVD still works fine, but I have to manually mount the mo. I have a feeling that it might be security related, but I am not sure.
lshal shows the following when I insert the disk: 10:08:38.309: storage_model_SMO_F551 property storage.removable.media_available = true 10:08:38.325: storage_model_SMO_F551 property storage.partitioning_scheme = 'mbr'
# external hard drive UUID=4DDD273633F3859D /home/ross/external ntfs-3g auto,exec,user,uid=1000,gid=100,dmask=027,fmask=137,utf8 0 0
When I plug in the drive with this UUID, I get the following error:
Code:
Error mounting: mount exited with exit code 1: helper failed with: Unprivileged user can not mount NTFS block devices using the external FUSE library. Either mount the volume as root, or rebuild NTFS-3G with integrated FUSE support and make it setuid root. Please see more information at [URL] Is there any way that I can mount this drive (which must be ntfs-formatted) without root permissions? I have googled this error and it seems that many other people are having this same problem, but I can't find a real solution. Most people suggest just reformatting the drive.
I have a usb drive formatted using mkdosfs, and it must be manually mounted every time because it says "wrong fs type, bad option. bad superblock on /dev/sdb1, missing codepage or helper program, or other error" but it mounts just fine when I manually mount it. It would be nice if gnome would mount it when I plug it in instead of me having to go into root and mount the drive.
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 have two USB drives, one with ext3, and the other w/vfat. On my new Fedora 12 installation, GNOME properly automounts the vfat drive on insertion. However, it applies a wrong command to mount the ext3 one. The end result is that the ext3 drive appears in /etc/mtab but, unlike vfat, is inaccessible to non-power user.
The mtab is: /dev/sdb1 /media/918fb656-8efc-43b5-bdfd-0bd8004deeba ext3 rw,nosuid,nodev,uhelper=devkit 0 0 /dev/sdb1 /media/49C6-1901 vfat rw,nosuid,nodev,uhelper=devkit,uid=500,gid=500,sho rtname=mixed,dmask=0077,utf8=1,flush 0 0
Somehow GNOME misses the uid=500,gid=500,shortname=mixed,dmask=0077,utf8=1, flush portion of the mount command when mounting the ext3 drive.
(Using ubuntu 9.04) I really don't want to trash my system! I have an external usb hard drive I want to automount on bootup / startup. Not 100% sure of the best / safest way: here is some info on my drives
Code:
ONCE MOUNTED THROUGH FILE MANAGER AND RUNNING DF AGAIN HERE IS THE DRIVE
Here is my fstab file
So the drive is a NTFS drive and it's /dev/sdb1 and label is /media/Mybook
I've googled this many times but have not found a solution yet. Can you get external usb hard drives to automount at xfce startup? They automount if I plug them in once xfce is started. I have them connected at boot I get an icon for the drive which I can then mount. But I wonder if I can get them to automount at startup
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.
Anyone got any experience with eSATA cards and drives under RHEL4? I've got a client with two RHEL4 boxes that want to add eSATA cards and drives for backup purposes.
They really need to automount like a USB drive does, would RHEL4 automount eSATA?