Issue#2281: Linux - How to prevent auto-mount a specific USB drive

  • I have just installed 15.10. I need to prevent a specifi USB drive from auto-mounting because it is used as an external backup drive and should not be normally visible. However, I do still want users to be able to have their own USB device auto-mounted when inserted.

    With 14.04 I used instructions such as: http://askubuntu.com/questions/30112...-auto-mounting to create a udev rule (although I never really tested it), but 15.10 does not ship with udisks and `apt-get install udisks` gives "No installation candidate".

    How do I accomplish this on 15.10?

    0 Answers

    Sorry, your answer is too short !

  • Issue#2301: Linux - Discussion on specific USB devices mount

    Hello all. I want to discuss here a specific idea. First of all i use for my job only two USB devices. One portable hard disk and a USB flash disk. I always hated the idea of auto mounting devices and thus on my machine, to be able to mount a device you have to be a root and execute mount/umount commands. Today i was thinking, instead of executing that whole command as root Code: mount -o guid=...,uid=...,umask=... /dev/sdc1/ /mnt/usb to execute something like Code: mount -label WDDisk for the portable disk and Code: mount -label FlashD for the flash disk. The first command should automatically mount the portable disk e.g to /mnt/WD while the second one mount the flash disk in /mnt/FLS. The thing here, is that how can i make system recognize that the usb device just inserted is the portable disk or the usb flash disk, then assign a label to them and finally to give them a specific mount path. For example, if i plug the HDD, independently the device block name in /dev/

  • Issue#809210: Linux - Unable to mount my usb drive

    I was able to use this drive yesterday but today I am unable to mount it. I tried different cables to no avail. This is what i get: Code: [email protected] ~ $ dmesg | tail [  144.007536] sd 5:0:0:0: [sdb]  [  144.007543] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [  144.007546] sd 5:0:0:0: [sdb]  [  144.007549] Sense Key : Medium Error [current] [  144.007555] sd 5:0:0:0: [sdb]  [  144.007559] Add. Sense: Unrecovered read error [  144.007563] sd 5:0:0:0: [sdb] CDB: [  144.007566] Read(10): 28 00 00 00 08 00 00 00 08 00 [  144.007579] end_request: critical medium error, dev sdb, sector 2048 [  144.007585] Buffer I/O error on device sdb1, logical block 0

  • Issue#1165609: Linux - USB external drive fails to mount after upgrade

    I recently upgraded to Ubuntu 16.04 after which my external USB drive will not mount. I'm new to this and am in fear of losing the data.This is the error msg. Error mounting system-managed device /dev/sdd1: Command-line `mount "/mnt/wwn-0x5000039ff4d96d08-part1"' exited with non-zero exit status 32: mount: /dev/sdd1 is write-protected, mounting read-only mount: wrong fs type, bad option, bad superblock on /dev/sdd1, missing codepage or helper program, or other error This from blkid Disk /dev/sdd: 2.7 TiB, 3000592982016 bytes, 732566646 sectors Units: sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x40a863e7 Device Boot Start End Sectors Size Id Type /dev/sdd1 * 0 2955679 2955680 11.3G 0 Empty /dev/sdd2 2927216 2931951 4736 18.5M ef EFI (FAT-12/16/32) [email protected]:~$ sudo blkid /dev/sda1: UUID="d2165b35-009f-454c-87c3-9587c62b6a9f" TYPE

  • Issue#2348: New To Linux/Ejecting USB Drive

    I am new to Linux, going back to school to get my Bachelors and I am taking I Linux Admin course and I just love Linux so far. I have been running Ubuntu 14.4 on a VM. but tonight I installed Ubuntu 14.4 on a older Acer netbook I had, using a bootable usb I created with the Ubuntu iso file, and then I realized I dont know how to properly eject the thumbdrive. So a little help would be great. System Info: 10 Inch Acer netbook 1.4 Ghz CPU 2.0 GB Ram 200 GB HD Thank You JC

  • Issue#16722: Linux - Need help troubleshooting a service that needs access to a USB drive

    I followed a tutorials on how to "Install Latest NZBGet on Raspberry Pi 2 and B+ Raspbian". It's working great, including starting when the system boots. However, when I change the download directory to point to an external USB drive, it fails to start on boot, and it fails to start when I run sudo service nzbget start. I can still launch the program manually, and it's working fine. The way I understand, I have two possible solutions, neither of which I know now to implement: 1. Mount the USB drive with looser permission, so that everyone can write to it. I didn't do anything special to mount it, so I am not sure when to change it. 2. Make the service run with more priveledges, such as root, to allow access to that drive. How would I go about solving this?

  • Issue#18691: Auto-mount a network drive after connecting to a wireless network

    I am trying to figure out how to automatically connect a MacBook to a network drive after connecting to the wireless network that the drive is connected to. Here is the situation: I back-up my wife's MacBook via Time Machine to an external hard drive that is connected to my Apple desktop. It works great! I even have her system setup to automatically mount the drive upon log-in. Unfortunately, after leaving our wireless signal and then coming back the time machine drive isn't... Auto-mount a network drive after connecting to a wireless network

  • Issue#53225: Linux - I can not mount usb thumbdrives

    I have been mounting thumbdrives for a long time now. Suddenly the mounting (mount /dev/sdb1 /mnt/usb) has failed, giving this error msg. "column: Invalid or incomplete multibyte or wide character" The device had been checked with fdisk -l, and the directory exists. 2 days ago I mounted my new Android phone via usb cable. I first installed jmtpfs with aptitude, and sucessfully mounted my phone, using "jmtpfs /mnt/". I was also able to umount it by using "fusermount -u /mnt/". Yesterday when I inserted a thumbdrive, I got my first failure, and the above error msg. I have made several attempts using different thumbdrives, and after a reboot, but the failure to mount and the error msg is consistant. I am running Debian Jessie on a Lenovo T410.

  • Issue#55069: Linux - Use external usb hard drive with NTFS-3G or reformat to Journalised FS: ext4

    Hi! I just bought a Samsung M3 Portable HX-M101TC 1TB external hard drive. It comes pre formated with NTFS-3G and a lot of windows .exe files on it. It looks like I can write to it without problems, but I still want to ask your opinion. Can I use it as is or should I reformat to a linux file system such as Journalised FS: ext4?

  • Issue#79398: Switching of auto mount of USB drives (Raspbian)

    I am running KODI 15 under Raspbian. As I also would like to run Sambo on the same Pi, I face some difficulties as KODI "grabs" the external HD-Drive (connected via USB 2.0) before Samba can get it. So I would like to prevent KODI from doing the auto-mount of the drive at startup. I had some check of the kodi script in /etc/init.d but could not find the place where to intervene: After start, KODI mounts my HDD to media/NAS, I find the subfolders there: service kodi stop -> to be able to unmount the drive umount dev/sda1 -> NAS vanishes from media (as expected) service kodi stop -> NAS is here again, but why ;-)? My idea is as follows (in this order): Run a Shell script to mount my HDD (fstab entry does not work, as the drive is not ready when this is processed) Start Samba Start KODI Any hints of how to archieve this goal. Kind regards, Styrian

  • Issue#84068: Capture Traffic on USB Drive or Mount NFS ?

    Hi,   I looking for a way to record catches "pcap" over several days. I have an external hard drive 2TB but my SRX650 says : "mountmsdosfs(): disk too big, sorry" What is the maximum partition size that the SRX will accept ?   I saw that there was the command "mount nfs", can I mount an NFS share on the SRX ? How ?   Thanks in advance !!

  • Issue#96824: Win10 C:drive auto eat up space issue

    anyhow encounter this issue currently my ssd has only my OS which i upgraded not long ago but when i using my pc overtime y cdrive slowly take up more and more space.isit normal? not from things i download few days ago was like 207 GB free space today left 203gb. checked my download folder is empty any ideas???????

  • Issue#118499: Linux - systemctl suspend - USB sleep / wake issue

    When I use systemctl suspend one of 3 things happens: 1. Everything suspends fine, and I can wake up my computer by just tapping on the keyboard. 2. The system suspends, but it looks like my keyboard / mouse are still powered on (they remain lit-up). When I go to wake the machine up by tapping on the keyboard nothing happens. I can wake the machine by pressing on the power button, though, and then everything is working fine. 3. Like 2, the system suspends but the keyboard / mouse remain on (or so it looks). I again can't resume with the keyboard. When resuming by pushing the power button the system wakes up, but the keyboard / mouse are unresponsive. Sometimes if I switch the USB port the keyboard / mouse are using they will become active again, while other times I have to restart the machine with the restart button because I can't get the keyboard or mouse to respond. There is no set of conditions that I have identified that leads to 1 vs 2 vs 3. It seems that 2 is the most fr

  • Issue#120339: Linux - UEFI / GPT Filesystem on USB disks: Cannot mount

    Hey All, I'm able to write a UEFI filesystem to a USB disk using: refind-flashdrive-0.10.2.img But trying to mount the source /dev/sdj (or /dev/sdj1,2,3,4,...) fails. I used dd to write the image to the USB flash disk. How do I go about mounting the GPT filesystem (sfdisk -l /dev/sdj lists it as GPT.) My system is non UEFI. I'm tryign to create a UEFI mountable disk that I can write other files too like BIOS / Firmware for upgrades. Cheers, DH

  • Issue#120550: Linux - Most secure way to encrypt a usb flash drive?

    I'm wondering what's the most secure way to encrypt a usb flash drive from the command line. The 2 options I've found from searching around are the gpg and cryptsetup commands. I'm leaning towards running "gpg -c /dev/sdb1", because it seems easier. I'm just wondering how strong the encryption will be with the gpg command. I would use a strong password but I'm just wondering how good gpg is for encrypting devices, since it's mostly known for encrypting text and files. Any other options I should consider?

  • Issue#129301: Ubuntu - Mount issue when trying to make Windows7 install usb

    Hello, I have to reinstall Windows, which obviously is the easy part, because I am stuck on creating a bootable usb installer. Until today using 'dd' always worked for me. Code: dd if=<iso> of=<disk> oflag=direct bs=1048576 Today, however it didn't work, the PC was stuck on blinking _ after BIOS and no booting at all, no errors as well. So I figured to try something else and WinUSB was the first thing to come out of google. So installed it I did and used it as: Code: sudo winusb --format <iso> /dev/sdc And it spits: Code: Formating device... Mounting... mount: you must specify the filesystem type Error occured ! Syncing... Cleaning... Umounting and removing '/media/winusb_iso_1455641284_12456'... umount: /media/winusb_iso_1455641284_12456: not mounted Umounting and removing '/media/winusb_target_1455641284_12456'... umount: /media/winusb_target_1455641284_12456: not found I read information regarding the mounting and when the usb has partition ( say

  • Issue#132909: Linux - how do I mount a drive's directory to another directory

    I have all the files that were in /home/dan/Documents in another drive because I'm running out of space so I use this script to mount my Documents directory to that drive which has its own /Documents directory sudo mount -t ntfs /dev/sdb2 /home/dan/Documents but now whenever I want to access my Documents directory, I have to go: ~/Documents/Documents is there any way to mount just the /Documents directory of the /dev/sdb2 drive?

  • Issue#148356: Linux - Boot directly into Zorin on a USB Flash Drive?

    First of all, I am a total noob concerning anything Linux related, so please excuse my ignorance. I did search for an answer on my own with no luck. I managed to install Zorin 9 on a USB flash drive. It boots perfectly to the USB drive, but on booting you get a list of options. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ubuntu Installer boot menu Try Zorin OS without installing Install Zorin OS Test memory Boot from first hard disk Advanced options Help Press ENTER to boot or TAB to edit a menu entry - - - - - - - - - - - - - - - - - - - - - - - - - - - - - I want it to ALWAYS boot directly in the Live Zorin OS on the USB drive. As I mentioned I am a newbie and the "Install Zorin OS" is an option that I would rather not have. Is it possible to boot DIRECTLY to the Live OS on the stick with no boot option menu at all? And if the Option menu cannot be bpassed entirely can the "Install Zorin OS" be removed? Again sorry if this is a stupid quest

  • Issue#168287: Linux - cannot mount usb stick, unknown filesystem 'vfat'

    Hey folks, I am trying to mount a usb stick with a fat32 fs (formatted in windows). When I try to do that however I get the message: Code: # mount /dev/sdj1 /mnt/usb mount: unknown filesystem type 'vfat' The same happened when I use: Code: mount --verbose -t vfat /dev/sdj1 /mnt/usb mount: unknown filesystem type 'vfat' dmesg | tail outputs: Code: [ 2340.904402] fat: Unknown symbol __bread_gfp (err 0) [ 2340.904447] fat: Unknown symbol __getblk_gfp (err 0) A search gave several results stating I should reboot, but that did not help, unfortunately. The output from fdisk -l is: Code: Disk /dev/sdj: 14.7 GiB, 15728640000 bytes, 30720000 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x04a1febf Device    Boot Start      End  Sectors  Size Id Type /dev/sdj1  *    2048 30719999 30717952 14.7

  • Issue#177774: Linux - Mount drive

    Hi there, I've been struggling with this now for months, but I can't seem to mount a drive successfully unless it is removed and then re inserted again, doing: Code: sudo mount /dev/sda /media/pi/ appears to mount the drive, yet running: Code: ls /media/pi/ returns nothing. I've also tried: Code: sudo mount /dev/sda1 /media/pi/ returns Code: mount: special device /dev/sda1 does not exist What's going on, how can I mount this from the command line the same way it is mounted if it is removed and re inserted. Kind regards iFunc

  • Issue#199500: Ubuntu - usb-hard drive doesn't mount

    Dear all, here is the problem: I have here an internal hard drive in an external case, which can be connected via sata or usb cable. The problem is now, that the drive is not mounting currently. Originally we had it running on the sata cable, but i changed this now to usb. It still doesn't mount. Basically I'm looking for the source of the problem: Is the disk broken or is it the transmission by the external case - or what? Now, if I plug the whole setup in as usb, i get the following output: Code: dmesg [120765.778502] usb 2-1.1: new high-speed USB device number 10 using ehci-pci [120765.871194] usb 2-1.1: New USB device found, idVendor=13fd, idProduct=160f [120765.871200] usb 2-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 The hard disk itself is found and identified: Code: lsusb Bus 002 Device 003: ID 05c6:9204 Qualcomm, Inc. Bus 002 Device 010: ID 13fd:160f Initio Corporation RocketFish SATA Bridge [INIC-1611] Bus 002 Device 002: ID 8087:0020 Intel Corp.

  • Issue#212954: Linux - problem with adding USB drive to virtualbox

    Hi, I have installed oracle virtualbox version 5.0.14 and its extension pack on gnome fedora 23 with windows 10 as a guest. The problem is that as I try to add USB, in the settings, I constantly receive the message that says: Quote: "No devices available" . I have added my user name to the virtualbox users by the following command: Quote: sudo usermod -a -G vboxusers user_name but yet no result. Any help to solve this problem is appreciated.

  • Issue#221455: Linux - Booting from USB Drive on Netbook

    Greetings, I want to try Linux on my ASUS 1015PED Netbook. I am a member of the old guys fraternity so be gentle with me please. Using UNetbootin I put Linux Mint on a USB Drive. It shows up as Lexar (E) with 15 items on it: .disk, boot, casper, dists, isolinux, pool, preseed, MD5SUMS, menu.c32, README.diskdefines, syslinux.cfg, ubnfilel, ubninit, ubnkern, ubnpatjl. I assumed, incorrectly, that it would just boot into Linux. Can someone guide me from this point please?.

  • Issue#228602: Linux - script to auto mount network drives

    hi all, i want to create a login script for when my ulteo users login to their virtual desktops via MS domain credentials (i have enabled on the server AD intergration) i want them to be able to so when they see their virtual desktops their network drives come up aswell on the desktop i was thinking in something like this mount -t cifs -o username=(var),password=(var),domain=example.com //WIN_PC_IP/ /mnt/(var) but i want to include variables for username, password and the where to mount to can this be accomplished many thanks, rob

  • Issue#234245: Linux - Booting from USB Drive - How to retain WiFi password

    I have to re-enter my rather long password each time I boot up. Is there any way I can avoid this please?.

  • Issue#235212: Linux - Can't mount network drive in jessie

    Trying to mount an ntfs formatted network drive with the following command: Code: sudo mount -t cifs -o username=***,password=***,uid=nick,rw,gid=nick //192.168.0.98/"goflex home public" /home/nick/MyGoflex Works flawlessly on debian wheezy but fails on jessie in 2 ways 1. Takes forever, at least 3 minutes, to complete. 2. When completed, the directory tree on the drive is broken. None of the leaves are showing either in the file manager or by means of the cli. Has anyone successfully done this sort of thing in jessie?

  • Issue#255831: Issue with kickstart from USB Linux Redhat 6.4

    Hello , I am not an expert in linux , i am installing Redhat 6.4 as the platform for Avaya voice recording product . Avaya applied in the software the kickstart tool that is compatible with RHL6 and7. I generated the file ks.cfg with no issues and used the USB to run it. All went fine until i finished installation , upon removing the USB stick from the server , the linux does not boot up and go in to grup rescue mode ! if i insert the USB which contain the kicksart file the system boots normally. Any way to allow the system boot up normally without the USB inserted ? Again i am not a linux expert , so i appreciate if somebody will provide solution to simplify it as much as possible. BR Ahmed Fahmy

  • Issue#281592: Auto Backup files from PC to USB on mount

    So I have found this really good How-to:https://community. .com/how_to/34985-automatically-backup-files-to-usb-drive-on-mountBut I have smaller issues whit a few things...- I don't know how to set it so it would backup files from my F: partition, complete partiton (which I have dedicated to school, and it happned that I lost all my files a few times...)- So I did first three steps and fifth one, but I get stuck in fourth, (explained above)- When testing well, nothing happned as I don't really get what I have to do in fourth step, also a part of the problem in flaw in my English dictionary...Any help would be appriciated, majbe as soon as possible as I really need this for school, becuse I'm sick of losing my files accidently...Thank you,Jan

  • Issue#282710: LXer: Canonical Patches ALSA USB MIDI Linux Kernel Driver Issue in Ubuntu 12.04 LTS

    Published at LXer: Canonical published a new Ubuntu Security Notice to inform users of the Ubuntu 12.04 LTS (Precise Pangolin) operating system about the availability of a kernel update. Read More...

  • Issue#301499: Linux - Multibooting a grub concerns for USB drive

    Hi, would like to be able to multi-boot several Linux distros. Have 10TB which will be partitioned as 2-1TB partitions with 4 2TB ones. Need to put Windows 10 recovery and the image each into the 100TB's (NTFS), and probably EXT4 for Linux and (I hope) Free/Ghost/or Open BSD. Can GRUB2 boot from this external USB for the 4 Linux/bsd partitions and allow windows to be reinstalled from the 2, 1TBs? I won't be using WX much after Linux & Bsd are up. Yaaay!! If not, how should I set up the 10TB drive? Can GRUB2 be installed in a sector to boot from it? If so, should it be a Windows or Linux sector? Will grub ignore the Windows stuff? Does Grub get install first after partitioning? How does a sector in a partition not screw up that partition if booting to it? Or is the grub sector totally separate? Thanks for UR input