USB device mounting via 'fstab'

OK, ... just wondering which option, below, is appropriate/preferred for Arch using USB file systems in 'fstab':
#1 
none /dev/pts devpts gid=5,mode=620 0 0
#2 
usbfs /proc/bus/usb usbfs defaults 0 0
#3 
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
Thanx.

Sorry for the late answer .
marin_linuxer:
This is for usbfs (aka info for usb devices under /proc/bus/usb dir) :
none /proc/bus/usb usbfs defaults 0 0
rasat:
make sure you have usb-storage, sd_mod in your /etc/rc.conf, then add the line you mention in /etc/fstab, changing 'auto' with the actual fs of your usb device

Similar Messages

  • Filesystem from sdcard won't mount via fstab, will with rc.local

    Since receiving my laptop back from RMA, I've installed my SSD and set up Arch.  I wanted to put /var on a separate reiserfs partition on my 8GB sdcard to prevent extra write activity from logs and pacman, however it wouldn't mount.  I tried using both label and dev (haven't tried uuid yet) and it always failed, causing me to enter admin mode.
    I then set up a 1.5GB partition with reiserfs on the SSD for the time being, changing the pacman cache option to a directory on the sdcard in /media.  I set the command to mount in rc.local and it mounts fine there.  I can't get the other media partition to mount via fstab either.
    Is there another hook I need to add to mkinitcpio.conf and rebuild the init ram image in order for this to work?  Any ideas?  I'm going to try adding usb to the hooks and rebuilding for now.
    Here is my setup:
    fstab:
    devpts /dev/pts devpts defaults 0 0
    shm /dev/shm tmpfs nodev,nosuid 0 0
    LABEL=boot /boot ext2 defaults 0 1
    LABEL=home /home ext4 defaults,noatime,discard 0 1
    LABEL=root / ext4 defaults,noatime,discard 0 1
    LABEL=var /var reiserfs defaults,noatime 0 1
    #LABEL=sdcard /media/sdcard ext4 defaults,noatime 0 2
    none /tmp tmpfs nodev,nosuid,noatime,size=1000M,mode=1777 0 0
    rc.local
    mount /dev/disk/by-label/sdcard /media/sdcard
    mkinitcpio.conf hooks line:
    HOOKS="base udev autodetect pata scsi sata filesystems"
    EDIT:
    I tried adding usb to the HOOKS array between sata and filesystem, rebuilt the image, uncommented my sdcard entry in fstab, and rebooted.  It didn't fix it.
    I see someone made a hook in the AUR:
    http://aur.archlinux.org/packages.php?ID=31150
    Last edited by DarksideEE7 (2011-05-08 13:18:56)

    I'm a little confused, so maybe I'll learn something here.  It is my impression that /var is not, and need not be mounted while in using the initrd.  It will be mounted in init after the kernel has been loaded, / has been mounted/ and init started.  rc.local definitely is not executed until long after the initrd has been cast aside.
    Things to look at:
    Does the mount point /media/sdcard exist at the time rc.local runs?  I'd wager not.
    Look at the output of ls -l /dev/disk/by-label and recheck the disk labels.

  • [Solved] sshfs can't mount via fstab on startup

    I have an HDD mounted in my RPI which I've mounted as a filesystem in my desktop via sshfs (through fstab).
    If I do "sudo mount -a", it seems to mount just fine, so I researched a bit (even though I'm still an newbie in Arch and Linux distros in general) and found out that it's most probably is caused due to the network not being initialized fast enough for the sshfs fstab entry to be discovered (due to having no network and therefore no access to it).
    I'm really not sure how to provide any info which would help you guyz help me so I'm just gonna provide the sshfs entry from my fstab file and the journalctl logs that seem to be relevant.
    Jun 23 22:32:00 home systemd[1]: home-username-media-downloads-mydrive.mount mount process exited, code=exited status=1
    Jun 23 22:32:00 home systemd-udevd[168]: renamed network interface eth0 to enp0s25
    Jun 23 22:32:00 home systemd[1]: Failed to mount /home/username/media/downloads/mydrive.
    Jun 23 22:32:00 home systemd[1]: Dependency failed for Remote File Systems.
    Jun 23 22:32:00 home systemd[1]: Unit home-username-media-downloads-mydrive.mount entered failed state.
    Jun 23 22:32:00 home dhcpcd[236]: eth0: waiting for carrier
    Jun 23 22:32:00 home dhcpcd[236]: eth0: removing interface
    [email protected]:/media/mydrive/ /home/username/media/downloads/mydrive fuse IdentityFile=/home/username/.ssh/mykey,uid=1000,gid=1000,reconnect,_netdev,allow_other,transform_symlinks,user,idmap=user,BatchMode=yes 0 0
    ps: This issue might be related to a recent attempt I've had to enable? the Gnome NetworkManager service, I'm not sure if it's related but I've first noticed the issue the same day I tried to enable that service (which I've later disabled because I couldn't get my network connected).
    Last edited by Varemenos (2014-06-27 23:44:00)

    It just doesn't want to work...
    # systemctl status home-username-media-downloads-mydrive.mount
    ==>
    ● home-username-media-downloads-mydrive.mount - mydrive Sshfs mount
    Loaded: loaded (/etc/systemd/system/home-username-media-downloads-mydrive.mount; enabled)
    Active: failed (Result: exit-code) since Thu 2014-06-26 16:45:21 EEST; 31s ago
    Where: /home/username/media/downloads/mydrive
    What: [email protected]:/media/mydrive/
    Process: 281 ExecMount=/bin/mount [email protected]:/media/mydrive/ /home/username/media/downloads/mydrive -t fuse.sshfs -o IdentityFile=/home/username/.ssh/mykey,uid=1000,gid=1000,reconnect,_netdev,allow_other,transform_symlinks,user,idmap=user,BatchMode=yes (code=exited, status=1/FAILURE)
    Jun 26 16:45:21 home mount[281]: read: Connection reset by peer
    Jun 26 16:45:21 home systemd[1]: home-username-media-downloads-mydrive.mount mount process exited, code=exited status=1
    Jun 26 16:45:21 home systemd[1]: Failed to mount mydrive Sshfs mount.
    Jun 26 16:45:21 home systemd[1]: Unit home-username-media-downloads-mydrive.mount entered failed state.
    The file:
    [Unit]
    Description=mydrive Sshfs mount
    Requires=network-online.target
    After=[email protected]
    [Mount]
    What=[email protected]:/media/mydrive/
    Where=/home/username/media/downloads/mydrive
    Type=fuse.sshfs
    Options=IdentityFile=/home/username/.ssh/mykey,uid=1000,gid=1000,reconnect,_netdev,allow_other,transform_symlinks,user,idmap=user,BatchMode=yes
    [Service]
    Restart=on-failure
    RestartSec=10
    [Install]
    WantedBy=multi-user.target
    Note that running
    systemctl start home-username-media-downloads-mydrive.mount
    , works just fine...
    Last edited by Varemenos (2014-06-26 14:00:23)

  • USB Device mounting

    I have a new cell phone (Samsung Juke) with USB capabilities. From snippets across the internet, it seems that people simply plug it in and it mounts. I have not been able to get it to mount, however System Profiler shows it as connected via USB and identifies it properly.
    Is there a utility or workaround out there that will allow me to force mounting, explore the file system on the phone or otherwise troubleshoot here? I expect this to not be phone specific, just some general utility.
    Thanks,
    CPC

    According to Samsung.com FAQs for the Juke, you can use Windoze Vista, XP, or 2000 to access the Juke through Windoze browser, Windoze Media Player or through a music loader that is distributed by your cellphone provider. Verizion and Sprint are the worst about this. They require carrier specific lockouts to be programmed into their phones. Samsung make no mention of how to locate the Juke with Mac OSX. I expect the the latest updates for 10.4 and 10.5 may have drivers in the next 3-6 months. Keep your Software Update turned on and keep trying.
    FAQ list
    http://www.samsung.com/us/support/faqs/supportFaqList.do?group=mobilephones&type =mobilephones&subtype=verizonwireless&modelnm=SCH-U470&dType=D&mType=UM&vType=R&prd_ia_cd=01010400&acc_ia_fl=&dispnm=SCH-u470%20(Juke)
    Loading files:
    http://ars.samsung.com/customer/usa/jsp/faqs/faqsview.jsp?SITE_ID=22&PG_ID=557&PROD_SUB_ID=561&PROD_ID=955&ATID=97020

  • Installing arch to a USB device & mounting it.

    Odd.... when I plugin my usb and boot up the live cd of arch, it doesn't automatically detect it. I've heard of the usb_storage and such but never really understood it. Can someone help me mount my usb?

    Take a look at Achie and FaunOS, they both are based on ArchLinux
    Archie:    http://user-contributions.org/archie.html
    FaunOS:   http://www.faunos.com/

  • [SOLVED] setting up permissions for mounted usb devices

    Hi all,
    I've been having the following problem when mounting my external hd: in order to mount the external hd I created a folder /mnt/usbstick/ giving permissions to a non-root user to read the files/directories in this folder (using chmod); however, after I mount the external hd, the set of permissions for /mnt/usbstick/ change so that a non-root user cannot  read the mounted files in /mnt/usbstick. This is a problem for me because, when I copy a file from the external hd to the non-root home folder, the copied file can only be read by the root user.   
    Do you know how I can solve this problem? Should I write a udev rule and place it at /etc/udev/rules.d/? Or should I simply add the non-root user to a specific group from /etc/group? Any ideas?
    Thanks!
    Last edited by falsum (2010-05-08 09:21:59)

    You could try adding an entry for your usb device in /etc/fstab and specify the option user to let non-superusers mount it.
    Here's an example of an entry for my external HD. I'm sure there are probably other (and better) ways to do this but it works for me.
    UUID=4376-0BFB /media/FIRELITE vfat rw,user,noauto,async 0 0
    Nice howto found on the wiki: http://wiki.archlinux.org/index.php/Fstab

  • Best solution for usb storage mounting ?

    Hey there
      i installed arch on my wifes computer, keeping it xfce4 for right now to  conserve resources. my daughter has a usb camera that i can mount via fstab (sometimes) and mount -t vfat /dev/sda1 yadda yadda.
    is there a way i can simplify this so that it automounts ala ubuntu style ?
    i have looked at susbmount and automount . what would be the best way to go here?

    nephish wrote:cool, does sda1 stay at a permission that will allow users to mount / unmount ?
    With ivman? Yes, I believe so, although I would try to stay away from it. In the past I've experienced corruption problems. I'm sure its fixed now but personally, I feel safer not using it all.
    I run dbus and hal (added in that order to daemons() array in rc.conf) to dynamically sync the fstab with the proper entries once something is plugged in and xfce4-mount-plugin to manually mount the device. It sits in the task bar and you can mount/umount each device by clicking on it and then clicking on the corresponding device icon. Its in aur.

  • Is there an App in App Store to solve  "Cannot Use Device - 'The connected USB device requires too much power' error

    I'm not an app developer, but I'm wondering if there is an app that enable's USB devices connected via the camera USB and using the most current iOS 5.0 to use USB devices that draw on the iPad's power. I'm making reference to some USB microphones such as Blue Yeti that have suggested that to get a Blue Yeti working one hasto downgrade to iOS 3.2.2?
    I'm thinking, can Apple or someone make this app so the user may think, "okay I want more power now to record something", and the user can turn up the power and when they've done recording, go to the app, turn down the power when the USB device is not in use [by turning down the power via the app].
    Of course with the App, Apple or the developer may state that using the USB Charge Changer radically reduces the charge of the device. It'll keep a LOT of musicians and creative types very happy. I hope with Apple's blessing they'll consider this.
    Hey, I'll pay 5 bucks to get this app!

    No, third-party apps cannot change the power drawn by USB devices. Such a change would have to come from Apple in an IOS update.
    Send feedback directly to Apple about this here: http://www.apple.com/feedback/ipad.html

  • Camera's USB device appears on iPhoto but nowhere on the Desktop

    Camera is Fuji F30 (previous was Fuji F700).
    With the F700 we could access the F700's USB memory directly from the Desktop which was very convenient (see other post in this area)
    Now we can see the F30 as an icon within iPhoto but nowhere as a USB device mounted on the Desktop ....
    What happened ???? Does OSX have the ability not to mount it ? Is there a parameter somewhere ti fiddle with to "force mount" on the desktop ?

    Found a small APPLE app named "image tranfer" which does exactly what it pretents to be ...... and apparently much faster than within iPhoto (probably because no need to create thumbs, xreferences etc....)
    That shoud do the trick

  • [solved] Permissions issue - can't mount usb device as user, just root

    In my last post I learned how to mount a secondary HDD from the command line.  Problem is I did it as root. Now I have xfce4 running and I need mount permissions as user.
    Here's my fstab:
    [dennis@archlinux media]$ cat /etc/fstab
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    devpts /dev/pts devpts defaults 0 0
    shm /dev/shm tmpfs nodev,nosuid 0 0
    #/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
    #/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
    #/dev/fd0 /media/fl auto user,noauto 0 0
    /dev/sdb /media/disk0 ext4 rw,user,noauto 0 0
    /dev/sdb1 /media/disk1 ext4 rw,user,noauto 0 0
    /dev/sdb3 /media/disk3 ext4 rw.user,noauto 0 0
    UUID=1f813152-615e-41a1-b3e7-ce2b5b6836a5 / ext4 defaults 0 1
    UUID=aba18f0f-5f37-4ab0-8241-5a271dc3dddb swap swap defaults 0 0
    UUID=c4332450-df9e-4571-8256-8e1b10b4d162 /home ext4 defaults 0 1
    UUID=f0a6eca0-9668-454b-b444-371566663510 /boot ext2 defaults 0 1
    [dennis@archlinux media]$
    ....and these are the system messages I got when I plugged the device:
    Unable to mount "74G Volume":
    mount: only root can mount /dev/sdb3 on /media/disk3
    Unable to mount "4G Volume":
    mount: must be superuser to use mount
    What do I do here?
    Last edited by dennola4 (2010-06-28 00:56:51)

    Karol:
    # Cmnd alias specification
    # Defaults specification
    # Runas alias specification
    # User privilege specification
    root ALL=(ALL) ALL
    dennis ALL=(ALL) ALL
    %users ALL=(ALL) NOPASSWD: /usr/sbin/pppd
    %users ALL=(ALL) NOPASSWD: /usr/sbin/hibernate
    %users ALL=(ALL) NOPASSWD: /usr/sbin/standby
    # Uncomment to allow people in group wheel to run all commands
    %wheel ALL=(ALL) ALL
    # Same thing without a password
    %wheel ALL=(ALL) NOPASSWD: ALL
    # Samples
    # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
    # %users localhost=/sbin/shutdown -h now
    Mr. Elendig:
    Why not use automounting instead?
    To install Arch packages I needed an Internet connection, which required use of a Sierra Wireless card, which required chatscripts stored on another filesystem.  In my first Arch forum post ever, the one preceding this one, I learned to mount a device by creating a mountpoint in /media then invoking #mount.  After installing all packages and creating a user name, I signed on with xfce4 and plugged in the usb device again.  It didn't mount.  So I did it manually using sudo.  Since that worked I had the idea that adding the mountpoints to /etc/fstab would be useful, so I did.  When that didn't work I decided to just ask for help.
    So sure, I'm down for some automounting action.  How do I do it?

  • KDE mount USB device fails

    Hi,
    I am running KDE and having problems mounting USB devices via the KDE Device Notifier in the task bar. When I insert the USB stick there is the normal little popup giving me the option to open the flash drive in dolphin. When I click it, I get the following error:
    "Could not mount the following device"
    Mounting the device via terminal works fine. I also put my user into the "storage" group like the wiki tells me. Still no change.
    Any ideas?

    willtriv wrote:
    Note: slim is ConsoleKit capable since version 1.3.3. Unless you happen to run an old version, you must no longer include ck-launch-session in your .xinitrc or slim.conf login_cmd.
    These kind of changes without notifications to users cause headaches. Someone was kind enough to update the wiki!
    You are my personal hero for today, I was suffering the same problem. Manifests itself as 2 CK sessions listed by ck-launch-session, with the wrong session being marked as active.
    Last edited by crobe2 (2012-06-11 14:28:12)

  • USB 2.0 Mass Storage Device mounting issues and cannot write data on it

    I have a 250 GB external Simpletech Hard Drive (with a USB 2.0 interface). It works flawlessly in a Windows XP environment (strange!!). But when I connect it to my iMac thru the USB port 2 things happen:
    1. Sometimes it mounts, sometimes it does not. It's just capricious. If I boot the system with the USB device attached it mounts. If I connect it "hot", sometimes it does, sometimes it doesn't. Sometimes it does not appear as mounted...I disconect the device and the Mac gets angry.
    2. I can read all the data on the disk, but I can't write any. That is, I cannot use it for backing up any iMac data. The backup utility won't recognize the device either.
    I've seen people going thru the mounting issue (not sure if there is a solution), but I am puzzled about the inability to write data on the hard drive. I am wondering if this is due to a formatting incopatibility? Any hints??
    iMac   Mac OS X (10.4.10)   2.33 GHz, 2GB, 750 GB

    For both the Mac and a Windows PC, format it as 'MS-DOS'.
    Both platforms can read/write to it. A Windows PC is not capable of reading/writing to a Mac formatted (HFS, HFS+) disk without additional software.
    MacFixit has been covering some apparent USB issues which may or may not help you. http://www.macfixit.com/
    I'm still at a loss. I have yet to experience or reproduce the USB issues that a number of users seem to be having. Now that I have sufficient free time, I may look into it.

  • Mac Pro no longer mounts external usb devices

    Hi there,
    Last week my mac pro stopped mounting my ipod shuffle as a disk (i was using it like a usb memory stick), i thought it was a problem with the shuffle and left it aside. But just yesterday the mac stopped mounting my external lacie 500gb disk. I had never had any problems before this.
    I then tried both the shuffle and external hd on my powerbook g4. They work perfectly!
    I then thought it might have been a problem with the usb ports on the mac pro - although all my other usb devices were still working - so i booted into xp with bootcamp, and the devices were recognised in xp perfectly.
    After searching various threads on different forums the general idea for this problem seemed to be to reinstall osx, which i have just done, and no joy. Im still not able to mount either of these devices.
    System profiler sees the devices, but thats it.
    Also, i recently bought a new usb memory stick (as i thought the shuffle was dead), this mounts and works perfectly!
    Anyone got any ideas?!
    Thanks

    Yes, i did the combo update immediatly after reinstalling osx and before pluggin in the usb device.
    The problem developed just before the release of 10.4.9, so i dont think it was the update that did it.
    I've only just got this MP back from Apple. The PSU had to be replaced. It took them nearly 3 weeks to do

  • [SOLVED]mounting cdrom and usb devices doesn't work

    Hello,
    i have trouble mounting my usb devices. automount doesn't work and i can't mount them manually even as a superuser. here's the output of mount command:
    mount: wrong fs type, bad option, bad superblock on /dev/sdc,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    i can mount cdrom manually but i can't do the same for my usb stick and external hard drives. it always complains about the above regardless of the filesystem. my devices are working under windows and other linuxes so i know hardware is not the problem.
    i'm using lxde with pcmanfm.
    if you need any other files just ask.
    thanks
    Last edited by the gray (2009-03-16 20:15:18)

    above was the error when i tried to mount any usb device with "mount -t <type> /dev/sdc /media/mountpoint". and i couldn't mount any usb device as root from console. when i tried to mount devices using pcmanfm it just popped some empty dialogs and i couldn't find any mention of "IsCallerPriviliged failed" error so i (wrongly) presumed it wasn't that. i did try some of the other fixes mentioned in the forum with no success. but adding exec ck-launch-session startkde to my .xinitrc fixed the issue
    thanks again
    Last edited by the gray (2009-03-16 20:17:53)

  • How to mount usb device?

    $rmformat :
    Volmgt Node: /vol/dev/aliases/rmdisk0
            Logical Node: /dev/rdsk/c2t0d0p0
            Physical Node: /pci@0,0/pci1462,7210@1d,7/storage@5/disk@0,0
            Connected Device:          USB FLASH DRIVE  34CH
            Device Type: Removablemounting:
    mkdir /mnt/usb
    mount -F pcfs /dev/rdsk/c2t0d0p0 /mnt/usbget
    mount: Block device requiredand try this
    volrmmount -i rmdisk0maybe it must be here /rmdisk?
    but
    # ls -l /rmdisk/
    total 0how to mount flesh device in Solaris 10???
    Message was edited by:
    [email protected]
    null

    i found the problem
    this is output of dmesg
    Jun  7 09:45:00 unknown pcfs: [ID 403951 kern.info] NOTICE: pcfs: FAT size error
    Jun  7 09:45:00 unknown pcfs: [ID 132729 kern.info] NOTICE: pcfs: illegal disk formatand i do this
    # mkfs -F pcfs /dev/rdsk/c2t0d0p0:cthen my device mount automaticaly

Maybe you are looking for

  • Creating Electronic Binders Using PDF Portfolio - Commenting and Highlighting

    For a few years now I have been using Portfolios to create electronic versions of binders.  Users want to be able to review, search, highlight and comment within the PDFs - and each have a copy with their comments.  Security is also a big deal.  My m

  • Filter Data in LTS

    Hello All, I have a table in the physical layer that includes several student records and each student has multiple records and each record has a date column (Test_date). Ultimately, I would like to see only one record per student by the maximum(test

  • RMI on Debian: Connection Timed Out: connect

    Hi I have a Problem with my RMI Server program running under Debian. When i start the server it lasts for about 3 minute until the Object is bound to the RMI-Registry. I have a simple System.out.println("XXX bound"); statement after binding the regis

  • Session data not carried over. with IE6SP1 and WL7

    Hi, We recently upgraded our clustered WL to WL7x and after that we started seeing a strange problem regarding session data of our HTML/Servlet pages. When we access the pages through this cluster, the session data(browser cookies not accepted) is no

  • Measuring harmonic current

    hi all i'm currently working on my honours project and uni, and im starting to go round in circles, was hoping i could get pointed in the right direction. i want to measure the harmonic currents and sub harmonic currents of an induction motor, using