Debian :: Usb Automount With RW ?
Nov 20, 2010
I have a simple usb mount problem, but after looking around, haven't been able to solve it. So far I've come across hal, dev, usbmount,pmount, and got lost in all this.
So, when I plug my usb as non-root I get that "not authorized" message. I solved this by installing usbmount package. After that, as non-root, usb mounts, but I can't write, I only have read rights. I tried changing "MOUNT OPTIONS" in usbmount.conf, but no luck.
What is the proper way of automounting usb and how to control access rights and what user can do what?
I also tried with fstab entries, but everytime I unplug my usb stick and plug it back in, /dev entry changes...
View 14 Replies
ADVERTISEMENT
Aug 21, 2009
Could anyone tell me how to get Debian Lenny to automount CDs the same as Ubuntu does i.e. automatically, with a Desktop icon etc.I've worked out how to automount CDs using autofs, which is OK, but it still doesn't seem quite as good as the way Ubuntu does it.
View 6 Replies
View Related
Aug 27, 2015
I setup a luks encrypted /home partition on my Debian jessie, with an automount when my usb key containing the luks secret is plugged in at startup.
I did configure /etc/fstab so that my usb key be mounted at startup to /media/usb1, and /etc/crypttab to open my encrypted partition with the key at /media/usb1/homekey. It works.
However, when my usb key is not plugged in, boot fails and never shows welcome screen. I would change this behaviour so that when my usb is missing, boot resumes and do not mount /home partition. How could I manage this?
View 0 Replies
View Related
Oct 2, 2015
Is there a way to set up your system (running CLI only, no X) to automount flash drives? I know how to mount them manually, but I'd really like it if there was a way to just have the system do it automatically when I plug the drive in so I don't have to do it myself every time.
View 4 Replies
View Related
Feb 20, 2011
I would ask how automounting of devices works in debian. I'm trying to modify the name of automatic mount point from the label name of devices (or their UUID) to the devices name. That because the UUID is often a very complicated string, meanwhile the label often contains spaces; so become difficult working with theme in scripts...
View 7 Replies
View Related
Jan 6, 2011
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
[code]...
View 10 Replies
View Related
May 18, 2009
I have recently bought a Toshiba 1TB external USB disk.
I have formatted it using gparted to ext2 and Debian see's it but gives me an error "unable to mount volume" with some extra stuff about programs shouldn't disconnect shared drives.
I can mount it ok by creating a folder called usbdisk and the mount command "mount -t ext2 /dev/sda1 /home/mike/usbdisk" and it works fine, but I have to do this everytime I start the machine.
Does anyone know what exactly I should put into a setup file to make the machine do this everytime , but only if its there.
As I'm not very clued up on bash scripting , I'm assuming it something along these lines:
How would I add this at boot?? Would I add it to the end of "init.d/rc" ?
View 1 Replies
View Related
Jun 5, 2010
I don't have an opportunity to check it out now... Does Debian 6 testing mount inserted CDs/Flash-drives automatically like Ubuntu does? Or the only way to mount them after inserting is to use mount command?
View 7 Replies
View Related
May 9, 2011
I'm using Debian Squeeze XFCE along with Windows 7 as dual boot on my notebook. I want to access my Windows 7 partitions from Debian for both reading and writing. I was a Ubuntu user in which the Windows partitions were visible by default. I want to know how to mount the drives used by Windows 7 automatically on startup.
View 4 Replies
View Related
Feb 26, 2011
I'm trying to familiarize myself with LXDE to help a friend of mine and one thing I just cannot solve, despite many googles, is how to allow a non-root user to auto-mount drives in the left-hand pane of PCMANFM.Everything works just fine as long as I have the root passwd. Not a huge problem but very irritating none-the-less.
View 9 Replies
View Related
Jan 23, 2011
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.
View 7 Replies
View Related
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.
for example:
View 14 Replies
View Related
Jun 15, 2011
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.
View 4 Replies
View Related
Aug 17, 2015
I'm running Debian 8.1 Jessie on a Dell Latitude D400 using the GNOME Flashback DE. I cannot for the life of me figure out why it doesn't automout my USB drives and CD/DVDs.The regular GNOME and GNOME Classic will automount no problem but Flashback will not. It shows up in Nautilus but I have to mount it manually through Nautilus. I checked in dconf Editor under org/gnome/desktop/media-handling and automount IS checked. So I can't figure out why its not automounting.
Is there a way to fix that so Flashback will automount my CD/DVDs and USB drives or is it just a bug in Flashback that I gotta wait to get fixed?I've already searched the forum and Google to no avail but its possible I didn't use the right searh terms in Google.
View 0 Replies
View Related
Sep 9, 2010
I have a 2 Computers:
Computer A has a RAID array in it, and everything works perfectly fine. When Computer A powers on, the RAID array is automatically mounted, mdadm takes care of all of the things it's supposed to, and an icon for the RAID array is automatically placed on the desktop. Everything Just Works (TM).
Computer B is configured similarly to Computer A. They have identical configuration files (at least, all the ones I've checked are identical), and when Computer B powers on, the RAID array is automatically mounted, mdadm takes care of all of the things it's supposed to, BUT, NO icon for the RAID array is automatically placed on the desktop. How do I change that?
They have identical /etc/fstab's (the lines in bold are the ones that matter):
Computer A
mediaserver:/home/mediaserver/Desktop# cat /etc/fstab .....
Computer B
mediaserver:/home/mediaserver# cat /etc/fstab
# /etc/fstab: static file system information .....
They have identical /etc/mdadm/mdadm.conf's
Computer A
mediaserver:/home/mediaserver/Desktop# cat /etc/mdadm/mdadm.conf
DEVICE partitions
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
MAILADDR root
ARRAY /dev/md0 level=raid5 num-devices=4 metadata=0.90 UUID=82bfcecf:5cd4d557:2f1fbd23:68e2797c
Computer B
mediaserver:/home/mediaserver# cat /etc/mdadm/mdadm.conf
DEVICE partitions
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
MAILADDR root
ARRAY /dev/md0 level=raid5 num-devices=4 metadata=0.90 UUID=6c24c0e5:84ead07e:c109596b:d7e29b7e
The outputs of mount are also very similar:
Computer A
mediaserver:/home/mediaserver/Desktop# mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/md0 on /mnt/arrayCOMP_A type xfs (rw)
Computer B
mediaserver@mediaserver:~$ mount
/dev/hdc1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/md0 on /mnt/arrayCOMP_B type xfs (rw)
mediaserver@mediaserver:~$
So how do I get an icon for the device /dev/md0 to automagically appear on the desktop every time the device is mounted (which occurs every time the computer boots up)?
View 7 Replies
View Related
Mar 23, 2011
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.
View 1 Replies
View Related
Mar 8, 2011
I have squeeze with xfce4 installed. How to disable automount of usb devices under xfce?
View 2 Replies
View Related
Oct 5, 2015
I'm running KDE in Jessie and also have Gnome installed. When I connect a usb drive it gets mounted at /media/username/disklabel. I would like to have it mounted at /media/disklabel which is how it worked in Wheezy. How can I make that change?
View 2 Replies
View Related
Mar 24, 2011
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)
[Code]....
View 2 Replies
View Related
Nov 3, 2010
I'm using squeeze. hal allows any user (at least, ones logged into the console) the ability to automount any removable drive that is plugged in. I want to restrict the ability to automount to users who are in the group that owns the device node for the drive (some distributions use the "plugdev" group for this.) I know I can turn off automount individually in each desktop, but seeing as hal is the thing that runs as root and is actually doing the mounting, it seems to make the most sense to change the setting in hal.
View 2 Replies
View Related
Aug 6, 2015
While using Debian Jessie with Gnome 3 and Nautilus file manager, my Startech HDD docking station will not auto mount and can only be mounted using commandline while in root. Previous GNU/Linux distros, such as Ubuntu 14.04, this device auto mounted without issue. All other devices, such as USB HDD, and USB pen drives, auto mount without any problems.
"Initailize Startech device with a 120GB 2.5" SATA HDD Fujitsu drive"
udev creates two block devices
Code: Select all begins with:
brw------- 1 root root 8, 64 Aug 6 10:11 /dev/sde
brw------- 1 root root 8, 65 Aug 6 10:12 /dev/sde1
changes to:
brw------- 1 root root 8, 64 Aug 6 10:11 /dev/sde
brw-rw---- 1 root disk 8, 65 Aug 6 10:12 /dev/sde1
dmesg produces the following results:
Code: Select all[ 179.127724] scsi 6:0:0:0: Direct-Access FUJITSU MHW2120BJ G2 0000 PQ: 0 ANSI: 2 CCS
[ 179.128513] sd 6:0:0:0: Attached scsi generic sg5 type 0
[ 179.129393] sd 6:0:0:0: [sde] 234441648 512-byte logical blocks: (120 GB/111 GiB)
[ 179.130379] sd 6:0:0:0: [sde] Write Protect is off
[ 179.130388] sd 6:0:0:0: [sde] Mode Sense: 28 00 00 00
[ 179.131903] sd 6:0:0:0: [sde] No Caching mode page found
[Code] ....
Between the thirty second and the fifteen second wait, the block device "/dev/sde1" receives the "disk" group and read/write attributes, however, the drive is still not auto mounted and can only be manually mounted via root. The block device "/dev/sde" remains with the "root" group and read/write attributes are accessible for "root" user only.
How to correct this issue to allow auto mounting?
View 1 Replies
View Related
Oct 9, 2010
im using Debian (lenny) with 2.6.26 kernel, I'm trying to write udev rules in order to automount my usb pendrive, so I added this rules in udev:
SUBSYSTEM=="block", SUBSYSTEMS=="scsi",ATTRS{vendor}=="OTi ",
ATTRS{model}=="Flash Disk ", NAME="penna128M",RUN="/usr/bin/
pmount /dev/penna128M"
I use pmount to install the device as normal user If i connect my device to the usb port I don't see nothing in /media/penna128M, BUT giving at the prompt cat /etc/mtab the last line is:
/dev/penna128M /media/penna128M vfat rw,noexec,nosuid,nodev 0 0
The line in fstab about this pendrive is:
/dev/penna128M /media/penna128Mvfatdefaults,user,owner,auto00
View 5 Replies
View Related
May 23, 2015
I've just upgraded my system and I'm having some issues to boot with the latest kernel (cf: [URL] ....)
Hopefully I can still use the previous kernel (vmlinuz-3.2.0-4-686-pae).
I'd like to watch a movie that is on an NTFS partition.
From gnome-classic, I went in Places->datas (name of my partition) and I get this error message:
Code: Select allFailed to open "/media/mb/datas".
Error when getting information for file '/media/mb/datas': Input/output error.
The result of a df -h gives me:
Code: Select all/dev/sda3 fuseblk 96G 60G 37G 63% /media/mb/datas
mb is the username I'm currently using.
Previously it was only trying to mount the partition (after asking for the root password) in /media/datas
Is it normal that now it tries to mount it only for my current user in another folder?
If I look in the /var/log/messages, I only see this:
May 22 23:53:06 Tieum-Latitude gnome-session[2092]: Thunar: Failed to open "/media/mb/datas": Error when getting information for file '/media/mb/datas': Input/output error
View 3 Replies
View Related
Dec 10, 2015
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
[Code] ....
View 3 Replies
View Related
May 11, 2015
There seems to be no documentation on how to automount partitions and USB devices under systemd in Jessie. (Overall, systemd entirely lacks any useful documentation or GUI configuration tools -- all very cryptic and hidden.)
I created custom files to enable automounting. I put them in /etc/systemd/system -- this may not be the right place, but it works.
Kernel note:
This does not work under the old Wheezy kernel linux-image-3.2.0-4.
To automount my Windows partition so I can access its files, I created:
/etc/systemd/system/media-windows.mount
The name of the file must match the mount point -- in this case, /media/windows
My file notes the device and file type, plus an fmask option so all the Windows files don't seem to be executable:
[Unit]
Description = windows mount to /media/windows
[Mount]
What=/dev/sda1
Where=/media/windows
Type=ntfs-3g
Options=fmask=111
[Install]
WantedBy=multi-user.target
The file ownership must be root.root. Apparently it doesn't need to be executable.
After creating, enable with:
sudo systemctl enable media-windows.mount
and it will mount on the next boot.
I read elsewhere that the before running the enable command you should run a start command:
sudo systemctl start media-windows.mount
but that didn't work for me.
View 2 Replies
View Related
Oct 13, 2015
My system have 3 partition.
1) Windows ntfs.
2) distro ext4.
3) distro ext4.
When I clicked their partition, system request user or root pass. I need it without password like ubuntu or mint.
View 3 Replies
View Related
Sep 2, 2009
I remember automounting my windows drive (I dualboot windows and fedora) using /etc/fstab.
Now I can't find what to add to the file in order to mount my drive.
The drive is /dev/sda2 and I would like to mount it at /mount/windows, it's an NTFS drive.
I have been looking around the forums and reading the manuals but can't figure it out
View 3 Replies
View Related
Sep 4, 2010
On my computer for the last couple of years I have been running Ubuntu and Windows XP in a dual boot system. Due to some unsolvable problems in Ubuntu, I decided to try out Fedora. I created a third partition on my computer and into this partition I installed Fedora. Now when I boot my computer I can either run Fedora or Windows XP. Eventually, I plan to get rid of Ubuntu completely. But for now the Ubuntu partition is still on my hard disk; I can't boot up with Ubuntu anymore, and that's OK. I don't need to run Ubuntu, but I would like to be able to access the Ubuntu partition, since there are files there that I want to keep.
At least I want to be able to read and write to the files in Ubuntu. How can I automatically mount the Ubuntu partition so that I can work with its files from Fedora?
I'm pretty sure that to get the Ubuntu partition to mount, I need to enter some lines into the etc/fstab file. Does anyone know what I should enter into Fedora's etc/fstab file so that the Ubuntu partition will be mounted?
In my Ubuntu installation the partition is named DiskF, it is partitioned in the ext3 file system. In Fedora when I look at /media/DiskF, it is empty.
When I run [code] blkid in a terminal here is the output:
What are the commands that I need to put in /etc/fstab so that when I boot my computer in Fedora DiskF will be mounted?
View 1 Replies
View Related
Nov 12, 2010
I configured "removable devices" in system settings as follows:
checked "Enable automatic mounting of removable media"
and
checked "Automatically mount removable media when attached"
Now following reason you would expect when you put a CD/DVD in the CD/DVD player it would be automatically mounted in directory /media/ yes?
But no - you first HAVE to open the CD or DVD with a program (like a file manager) before the directory and its content appears in directory /media/. This is not expected and very annoying.
Why does the configuration screen not work as expected. Are all settings just being ignored or something? If so - then why are those settings there in the first place? Or did I simply done something wrong?
I just want a CD or DVD been automatically mounted when I put it in the player, so I can access it without first having to open it in a separate program.
View 6 Replies
View Related
Jun 11, 2011
I managed with fstab but at restart came a black screen.I have called an HD '7200' then I reinstalled Fedora. And it does not automount it anymore. I changed fstab and black screen.
View 5 Replies
View Related