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 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.
My usb stick with Debian only loads from the usb hub it's crazy. I just tried putting the usb stick onto a usb3 port in my desktop and also on a usb2 port even the one where the usb hub is connected to and it wont' load!. Same initramfs prompt happens as when connected on the laptop usb ports.
the usb hub has usb2 speeds so is not that the stick is under usb1.1 emulation.
I plan to reformat & reinstall my linux (centos).Before doing this, I got to backup my files into my USB external hard disk from Seagate (FreeAgent). The problem I faced is that I could not copy file into the hard disk even I was in root user. It prompted me that it is only read-only. I just wonder why.I have tested with my thumb drive. It worked. May I know why I could not copy file to the USB FreeAgent hard disk. Due to file system?
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 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'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)
I'm building a new desktop computer, on which I plan to install Debian Squeeze. I'll have a 1 TB SATA hard drive in the system. I'm also considering using two 500 GB external USB drives, but I'm debating about how I want to use them. Running them all separately for 2 TB of space could be a nightmare, with three potential points of failure, so I was thinking of using the two external drives as a backup system instead.
I'm considering linking the two external drives in a RAID 0 array, then linking that array and the internal drive in a RAID 1 array. I would use mdadm software RAID for all of this so I could use individual partitions in the arrays, avoid hardware dependency, and have greater software control. So now is this feasible to do (having a partial RAID 0+1 setup)? Moreover, what kind of performance could I expect from using potentially slow external drives (one of which I know has a very long spin-up time after idle periods) in a mirroring setup with the internal drive?Would I be far better off using a filesystem backup daemon instead?
EDIT:After some more research and brainstorming, I've decided I might just end up using rsync+cron, lsyncd, or DRBD (assuming it can easily make backups locally). I'd probably have to link up the external drives in RAID 0 (or use some filesystem link trickery). But I suppose such a setup would offer greater control, flexibility in disk capacities (the full system isn't so strictly limited to the capacity of the smallest member of the array), and granularity than RAID 0+1 would.I'm still open to thoughts on the mdadm RAID 0+1 solution, but does anyone have any advice on choosing backup software? For some background on my needs, I'll be using this computer as both an everyday desktop and a personal LAMP server (MySQL database files would be included in the backups).
I have Debian Jessie (testing) with a custom kernel 3.15.7 installed on an Acer Aspire V5-123 netbook which has 2 USB2, and 1 USB3 ports. The problem is that my A4 tech usb mouse is only detected when I connect it to the USB3 port!
Here is the dmesg output after I plug the mouse to the USB3 port:
Code: Select all[Â 844.152073] usb 1-1: New USB device found, idVendor=09da, idProduct=000a [Â 844.152089] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [Â 844.152098] usb 1-1: Product: USB Mouse [Â 844.152106] usb 1-1: Manufacturer: A4Tech
[Code] ....
and the lsusb output:
Code: Select allBus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 04f2:b3f6 Chicony Electronics Co., Ltd Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 09da:000a A4 Tech Co., Ltd Optical Mouse Opto 510D Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
But, if I plug the mouse to one of my USB2 ports, I get the following output from lsusb regardless of having or not having my mouse connected:
Code: Select allBus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 04f2:b3f6 Chicony Electronics Co., Ltd Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
And finally, the modules loaded:
Code: Select alllsmod | grep usb usbhid         44476 0 hid          98196 2 hid_a4tech,usbhid usbcore        162472 5 uvcvideo,ehci_hcd,ehci_pci,usbhid,xhci_hcd usb_common       12440 1 usbcore
Apparently, people have had similar problems in Ubuntu, Fedora, Arch, ..., but, I did not find a unique fix.
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 .....
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?
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 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?
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.
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.
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?
I'm trying to set up an SSD as a cache to my external HDD (which is where my installation of Debian testing/stretch is installed). My installation is using LVM 2. I'm trying to have the SSD cache the entire external HDD, and not just one of the partitions (such as the root or home partitions).
Here are the relevant outputs.
uname -a: (Yes, I'm using the Debian stable kernel with Debian testing.)
lsblk: Code: Select allNAME               MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT sda                 8:0  0 149.1G 0 disk sdb                 8:16  0 111.8G 0 disk sdc                 8:32  0 298.1G 0 disk ├─sdc1               8:33  0  243M 0 part /boot └─sdc5               8:37  0 297.8G 0 part  └─sdb5_crypt          254:0  0 297.8G 0 crypt   ├─mydebianhostname--vg-root  254:1  0 14.3G 0 lvm  /   ├─mydebianhostname--vg-swap_1 254:2  0 11.5G 0 lvm  [SWAP]   └─mydebianhostname--vg-home  254:3  0  267G 0 lvm  /home sr0                11:0  1  25M 0 rom
make-bcache -B /dev/sdc: Code: Select allCan't open dev /dev/sdc: Device or resource busy
Must I "operate" on this drive via a live session or something.
Recently (in 2015) our Debian systems started not to recognize HDDs connected via an external docking station.
On my computer I run: (uname -a)
* Linux violin 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux * If I connect to a flashdrive to the USB2 port, it is recognized as sd* (messages are also written to dmesg/syslog) * If I connect the USB3 connector of the external docking station with an 1TB WD SATA docked, to this USB2 port (the external docking station has its own power supply, so I do not expect to have a problem with the current, the drive spins up and is spinning), there is nothing in the dmesg/syslog, and no new items under /dev/sd* or lsusb or similar tools. * If I connect the same external docking station with the same disk via eSATA on a different computer it is recognized. That computer runs the same debian. If I connect through its USB2 port it does not work either. * I also tried another docking station and USB cable.
I have exim setup on squeeze to run as an "internet site". Outgoing mail works fine but it seems to just ignore incoming smtp requests on port 25. I can see the incoming connection via tcpdump but exim doesn't seem to talk. If I connect via telnet it rather quickly says connection refused. Is there something additional I need in the Exim conf?
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.
I have successfully mounted my Win7 volume and my external hard drives NTFS volume as well. However, after modifying the fstab I seem to only be getting the win7 volume to auto-mount. Below is the contents of my fstab. /dev/sdf3 is not mounting. Again, it works no problem if I manually mount it.
I have a site that users upload files on. Its on a dedicated server with 2 HDDs and the first HDD is 97% full, is it possible to use the other HDD for the files users upload? if so how?
My laptop has a dual boot Debian + Ubuntu installation.
In particular I am using Debian 8.0 with stock kernel 3.16.0-4 (or equally 4.1.10 custom compiled, I tested it and it does not make any difference for the subject of this post).
Ubuntu is 14.10, with stock kernel 3.19.0-15.
In both installations I have nvidia nouveau drivers and intel integrated graphics drivers installed and loaded. This is the default for both installations.
In both installations I have xorg automatically configured (no xorg.conf file present in /etc/X11). In both systems the content of /usr/share/X11/xorg.conf.d is the same for what moitors are concerned (differences in mice and trackpad entries).
Unfortunately, the video configuration in Ubuntu 14.10 works out of the box. In particular I can plug in an external monitor/projector and it will fire-up the nvidia card (nouveau drivers) to power that monitor.
Debian 8.0 on the other hand does not even detect the external monitor.
I don't know where to start to solve the problems.
The hardware is as follows: the laptop (lenovo W530) features both an Intel integrated graphics card and an Nvidia K1000M. The VGA port is connected only to the Nvidia card (this is according to my online research, as I don't know how to check this).
When I plug in my external USB Hard drive which is formatted as a single NTFS partition, it is recognized and mounted automatically, a nautilus window pops open. Unfortunately it is not writable. The reason is: the partition is mounted "ntfs" (which lacks write support) instead of "ntfs-3g". This is the output of mount after plugging in the drive:
$ mount | grep sdc1 /dev/sdc1 on /media/4EBC5FB82435B0EE type ntfs (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,dmask=0077)
I want this partition to be writable by just plugging it in.
The partition should not have any errors because a) I fsck'ed it windows and b) mounting it manually works:
$ sudo mount -t ntfs-3g /dev/sdc1 /media/disk_/ $ mount | grep sdc1 /dev/sdc1 on /media/disk_ type fuseblk (rw,allow_other,blksize=4096) $ devkit-disks --mount-fstype ntfs-3g --mount /dev/sdc1 Mounted /org/freedesktop/DeviceKit/Disks/devices/sdc1 at /media/4EBC5FB82435B0EE $ mount | grep sdc1 /dev/sdc1 on /media/4EBC5FB82435B0EE type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096) $ gnome-mount -nbtd /dev/sdc1 $ mount | grep sdc1 /dev/sdc1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
How can I get ntfs drives to be mounted as writable by default, preferrably without having to modify fstab?
I would like to build a NAS from PC (D510MO) running Debian. I have two HDDs (one 3.5 1T and one 2.5 500G). On 3.5 HDD I have already two partitions 100M+40G dedicated for Win7-64. Now, I want to install Debian (second OS) on this PC and to have some kind of soft RAID or disk mirror of 500G space. I am planning to create a third partition on 3.5 HDD of 500G (identical as 2.5 HDD size) in order to have a mirror 500G space.
Please send my some suggestions on where I have to install Debian; on 500G 2.5HDD or 500G 3.5HDD!Will Debian boot from both HDDs 3.5 or 2.5 after I create the mirror? What Linux soft I have to use for mirroring (mdadm)?
I wanted to setup my server as a router/gateway just for educational purposes and also when it succeeded i will keep the gateway and place it on the front line right after my modem.
My current setup as it is now :
The GATEWAY/ROUTER will be doing the main work to act as a dhcp server and firewall.
Now my setup as it is now :
So now what i ment to do was :
Let the clients connect to the gateway via ETH1 and all the stuff being router to ETH0 which is the NIC that is connected to the internet.
But now i have two huge problems :
1. The DHCP configuration seems to be fine the client machines get their ip adresses and /etc/resolve.conf looks fine to. But somehow the GATEWAY/ROUTER wont let me use the specified external DNs server so i cant do anything on these machines.
2. The firewall script [url] at line 27 should be DROP but if i use this line of code the GATEWAY/ROUTER cannot use his dns server settings so when i try to browse the internet or ping a machine outside my local network it would came up with nothing.