Mount USB Stick (Solved), SSHD (Solved), Root Logon (Still open)

Sorry this is about 3 problems:
1. Already for longer time I can not login as root on one computer on the console. This machine has no X as it is a server. Access via SSH and console logon as other user works. One logged on I can use SU or sudo for root actions. There was a similar thread over here, which didn't help.
/etc/securetty:
# /etc/securetty
console
tty/1
tty/2
tty/3
tty/4
tty/5
tty/6
# End of file
Recent update related problems:
Updated files:
[2009-10-29 08:51] upgraded kernel-headers (2.6.30.5-1 -> 2.6.31.4-1)
[2009-10-29 08:51] Generating locales...
[2009-10-29 08:51]   de_DE.UTF-8... done
[2009-10-29 08:51]   de_DE.ISO-8859-1... done
[2009-10-29 08:51]   de_DE.ISO-8859-15@euro... done
[2009-10-29 08:51]   en_US.UTF-8... done
[2009-10-29 08:51]   en_US.ISO-8859-1... done
[2009-10-29 08:51]   zh_CN.UTF-8... done
[2009-10-29 08:51]   zh_CN.GB2312... done
[2009-10-29 08:51] Generation complete.
[2009-10-29 08:51] upgraded glibc (2.10.1-4 -> 2.10.1-5)
[2009-10-29 08:51] upgraded binutils (2.19.1-5 -> 2.20-1)
[2009-10-29 08:51] upgraded gcc-libs (4.4.1-1 -> 4.4.2-2)
[2009-10-29 08:51] upgraded xulrunner (1.9.1.3-2 -> 1.9.1.4-1)
[2009-10-29 08:51] upgraded firefox (3.5.3-1 -> 3.5.4-1)
[2009-10-29 08:51] upgraded gcc (4.4.1-1 -> 4.4.2-2)
[2009-10-29 08:51] upgraded libatasmart (0.16-1 -> 0.17-1)
[2009-10-29 08:51] upgraded openntpd (3.9p1-7 -> 3.9p1-8)
[2009-10-29 08:52] Updating font cache... done.
[2009-10-29 08:52] installed ttf-freefont (20090104-2)
[2009-10-29 08:52] upgraded vlc (1.0.2-3 -> 1.0.2-4)
2. SSH logon does not work anymore. Another thread solved the proble by creating a /var/empty directory and restart sshd. This works, so the solution is confirmed.
3. Mount of USB media does not work as user although the user is in the storage group. In fact it worked before.
Mount as root by hand works, but in case of VFAT media without acl there is no way to access the media by user other than root.
Umount of course also need root rights in this case.
I'm using HAL and the message mentions "permission denied by policy"
Last edited by jcci (2009-10-31 04:23:33)

I've got some kind of problems with removable media too. My solution was to edit /etc/PolicyKit/PolicyKit.conf
I don't remember what i've changed there, so this is my file, maybe this will help:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
<!-- See the manual page PolicyKit.conf(5) for file format -->
<config version="0.1">
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.storage.eject-removable">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<return result="yes"/>
</match>
<match action="hal-storage-mount-fixed-extra-options">
<return result="yes"/>
</match>
<match action="hal-storage-mount-removable-extra-options">
<return result="yes"/>
</match>
</config>

Similar Messages

  • Problem mounting usb stick with ISO installed on it [SOLVED]

    I'm experiencing a weird problem regarding mounting usb sticks. Archlinux stopped auto-mounting usb sticks on my machine, but only those that contains an operating system.  Empty or data usb sticks mount without problem.
    A few weeks or month ago, I don't remember exactly, still everything was all right, but due to updates(?) usb sticks won't auto mount any more.
    I have two arch partitions none of them mount usb sticks anymore with operating systems on them.
    Today, I wanted to test a new operating system and write it on my usb stick, and of course I couldn't because arch didn't mount it. Luckily, on my other partitions a few old distos are still installed – I don't use them anymore for years- I booted them up and they mounted the usb stick without problem; it seems only the up-to-date system have problem handling the usb sticks. I have two Arch system installed on two different partitions, Gnome 3 and Enlightenment, both system are up to date.
    Here are some info:
    [mak@myhost ~]$ dmesg | grep -E "sd[a-z]"
    [ 1.369732] sd 2:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/111 GiB)
    [ 1.369819] sd 2:0:0:0: [sda] Write Protect is off
    [ 1.369821] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
    [ 1.369872] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [ 1.369924] sd 3:0:0:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB)
    [ 1.369982] sd 3:0:0:0: [sdb] Write Protect is off
    [ 1.369985] sd 3:0:0:0: [sdb] Mode Sense: 00 3a 00 00
    [ 1.370070] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [ 1.371642] sda: sda1 sda2 sda3 sda4 sda5 sda6
    [ 1.372298] sd 2:0:0:0: [sda] Attached SCSI disk
    [ 1.429438] sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6 sdb7 sdb8 sdb9
    [ 1.430159] sd 3:0:0:0: [sdb] Attached SCSI disk
    [ 2.244580] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
    [ 2.348031] systemd[1]: Expecting device dev-sdb8.device...
    [ 2.362842] EXT4-fs (sda5): re-mounted. Opts: discard,data=ordered
    [ 3.358252] Adding 2097148k swap on /dev/sdb8. Priority:-1 extents:1 across:2097148k FS
    [ 5.458907] EXT4-fs (sda5): re-mounted. Opts: discard,data=ordered,commit=0
    [ 52.120360] sd 6:0:0:0: [sdc] 15679488 512-byte logical blocks: (8.02 GB/7.47 GiB)
    [ 52.121310] sd 6:0:0:0: [sdc] Write Protect is off
    [ 52.121319] sd 6:0:0:0: [sdc] Mode Sense: 43 00 00 00
    [ 52.122191] sd 6:0:0:0: [sdc] No Caching mode page present
    [ 52.122199] sd 6:0:0:0: [sdc] Assuming drive cache: write through
    [ 52.125825] sd 6:0:0:0: [sdc] No Caching mode page present
    [ 52.125838] sd 6:0:0:0: [sdc] Assuming drive cache: write through
    [ 52.126999] sdc: sdc1 sdc2
    [ 52.131071] sd 6:0:0:0: [sdc] No Caching mode page present
    [ 52.131084] sd 6:0:0:0: [sdc] Assuming drive cache: write through
    [ 52.131093] sd 6:0:0:0: [sdc] Attached SCSI removable disk
    [mak@myhost ~]$
    [root@myhost mak]# fdisk -l
    WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
    Disk /dev/sda: 120.0 GB, 120034123776 bytes, 234441648 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
    Disk label type: gpt
    # Start End Size Type Name
    1 2048 18431 8M BIOS boot parti BIOS boot
    2 18432 56641478 27G Linux filesyste sda2
    3 56641536 113264582 27G Linux filesyste sda3
    4 113264640 169887686 27G Linux filesyste sda4
    5 169887744 226510790 27G Linux filesyste sda5
    6 226510848 234441614 3.8G Linux filesyste Spare
    WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
    Disk /dev/sdb: 320.1 GB, 320072933376 bytes, 625142448 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
    Disk label type: gpt
    # Start End Size Type Name
    1 2048 18431 8M BIOS boot parti Bios boot
    2 18432 54544383 26G Microsoft basic Partition 2
    3 54544384 109070335 26G Linux filesyste Partition 3
    4 109070336 163596287 26G Microsoft basic
    5 163596288 218122239 26G EFI System Partition 5
    6 218122240 272647630 26G Microsoft basic Partition 6
    7 272648192 327174143 26G Linux filesyste Partition 7
    8 327174144 331368447 2G Linux swap Swap
    9 331368448 625142414 140.1G Linux filesyste Storage
    Disk /dev/sdc: 8027 MB, 8027897856 bytes, 15679488 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
    Disk label type: dos
    Disk identifier: 0x5fadc669
    Device Boot Start End Blocks Id System
    /dev/sdc1 * 0 4040703 2020352 0 Empty
    /dev/sdc2 4036 38595 17280 ef EFI (FAT-12/16/32)
    Disk /dev/sdc1: 2068 MB, 2068840448 bytes, 4040704 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
    Disk label type: dos
    Disk identifier: 0x5fadc669
    Device Boot Start End Blocks Id System
    /dev/sdc1p1 * 0 4040703 2020352 0 Empty
    /dev/sdc1p2 4036 38595 17280 ef EFI (FAT-12/16/32)
    [root@myhost mak]#
    [root@myhost mak]# blkid -o list -c /dev/null
    device fs_type label mount point UUID
    /dev/sda1 (not mounted)
    /dev/sda2 ext4 (not mounted) 0a76a275-1798-495b-aa27-732626029de2
    /dev/sda3 ext4 (not mounted) 0e9363ef-3791-409c-8db9-393385007689
    /dev/sda4 ext4 (not mounted) 8f043c02-8b56-4689-a0ee-ed34ccc6f21f
    /dev/sda5 ext4 / 82699b0e-8fe9-41e2-be13-65c798ed8a73
    /dev/sda6 ext4 (not mounted) 3eaab6bf-2d05-4a7b-a6f7-8675e5f18723
    /dev/sdb1 (not mounted)
    /dev/sdb2 ext4 (not mounted) 17069311-9f14-4430-8298-be48194eb874
    /dev/sdb3 ext4 (not mounted) 2e3b383d-3fa7-40df-b52d-c5d07caf252e
    /dev/sdb4 ext4 (not mounted) 9d9b0656-d4ca-4efa-b6f8-1797bd4ead1f
    /dev/sdb5 ext4 (not mounted) 05abf58a-ae6e-4377-9b3d-d6bacd92226d
    /dev/sdb6 ext4 (not mounted) 8d7c6d55-dc47-471f-84f6-aae8864dfdd7
    /dev/sdb7 ext4 (not mounted) b2155741-8f88-4063-bd1b-39b210004b17
    /dev/sdb8 swap <swap> 97cf7cdf-299c-4e0d-a438-c8b79766699c
    /dev/sdb9 ext4 (not mounted) 426648fd-98f5-4fb0-9114-bdbdfea9047c
    /dev/sdc1 udf Sabayon GNOME (not mounted) 2013-07-29-13-08-13-27
    /dev/sdc2 vfat (not mounted) CF68-C2B6
    [root@myhost mak]#
    Thanks for the help.
    jmak
    Last edited by jmak (2013-08-14 00:12:54)

    cfr wrote:
    What is sdc1p? Is that another USB stick? It seems to have an equally weird partition map.
    By the way, you can't create an Arch USB bootable in EFI mode with dd. Obviously don't know about sabayon.
    EDIT: Did you dd to the disk or to a partition? What command exactly did you use? Because it almost looks as if you did something like dd once and create one thing and then dd over the top of one of the partition so you've got a partition which itself has a partition map. Not sure that's possible but it sure looks weird.
    I would wipe the key and start over.
    I don't know what is that. It is a partition on the same usb stick, it was the “dd” that made that partition automatically, I guess. When I burn images into usb, I always use this command:
    # dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx && sync
    I used this when burned Sabayon and it works perfectly.
    The problem is that Arch can't auto-mount its own installation usb either. I put the arch install usb in and I get the following output:
    [root@myhost mak]# blkid -o list -c /dev/null
    device fs_type label mount point UUID
    /dev/sda1 (not mounted)
    /dev/sda2 ext4 (not mounted) 0a76a275-1798-495b-aa27-732626029de2
    /dev/sda3 ext4 (not mounted) 0e9363ef-3791-409c-8db9-393385007689
    /dev/sda4 ext4 (not mounted) 8f043c02-8b56-4689-a0ee-ed34ccc6f21f
    /dev/sda5 ext4 / 82699b0e-8fe9-41e2-be13-65c798ed8a73
    /dev/sda6 ext4 (not mounted) 3eaab6bf-2d05-4a7b-a6f7-8675e5f18723
    /dev/sdb1 (not mounted)
    /dev/sdb2 ext4 (not mounted) 17069311-9f14-4430-8298-be48194eb874
    /dev/sdb3 ext4 (not mounted) 2e3b383d-3fa7-40df-b52d-c5d07caf252e
    /dev/sdb4 ext4 (not mounted) 9d9b0656-d4ca-4efa-b6f8-1797bd4ead1f
    /dev/sdb5 ext4 (not mounted) 05abf58a-ae6e-4377-9b3d-d6bacd92226d
    /dev/sdb6 ext4 (not mounted) 8d7c6d55-dc47-471f-84f6-aae8864dfdd7
    /dev/sdb7 ext4 (not mounted) b2155741-8f88-4063-bd1b-39b210004b17
    /dev/sdb8 swap <swap> 97cf7cdf-299c-4e0d-a438-c8b79766699c
    /dev/sdb9 ext4 /run/media/mak/426648fd-98f5-4fb0-9114-bdbdfea9047c 426648fd-98f5-4fb0-9114-bdbdfea9047c
    /dev/sdc1 iso9660 ARCH_201305 (not mounted) 2013-05-01-07-12-33-00
    [root@myhost mak]#
    It doesn't appear in nautilus side panel.
    Last edited by jmak (2013-08-13 02:44:45)

  • [SOLVED] Mounted USB stick immediately unmounts itself - why?

    Hi all,
    I thought I was unable to mount a USB stick, however it does actually mount but then it gets immediately unmounted by something:
    # mount /dev/sdd1 /mnt
    # ls /mnt
    <empty folder>
    # umount /mnt
    umount: /mnt: not mounted
    # mount /dev/sdd1 /mnt && ls /mnt
    <contents of USB stick>
    # ls /mnt
    <empty folder>
    Somehow the USB stick is getting automatically *unmounted* almost immediately after I mount it!
    I don't have any automounts enabled, so I'm not sure why this would happen.  If I make a different folder (e.g. /root/test) and mount it there then it sticks, it is only the /mnt folder that gets automatically unmounted.
    Any idea what's going on?  I've never seen this happen before, and last time I tried this (a week or two ago) it worked fine.
    Last edited by Malvineous (2015-03-15 01:15:16)

    brebs wrote:Use "mount -v" (i.e. "verbose") to get some feedback - it's most likely not being mounted.
    Like I said in my first post, if you run "ls" immediately after the mount then you can see the contents of the USB stick, so it's definitely getting mounted, but waiting only a few hundred milliseconds after the mount reveals it has been unmounted again.  What is causing the unmount is unknown.
    brebs wrote:
    Immediately after running that mount command, run:
    echo $?
    To see the return code. It should be 0.
    Yes it is zero, because the mount command succeeds.  "ls" wouldn't be able to list the files on the USB stick if the mount failed.  It is something else that is unmounting the folder mere milliseconds after it is successfully mounted, but I don't know where else to look to find out what it could be.
    brebs wrote:Also, mounting to /mnt is very weird - you should be mounting a directory *inside* /mnt.
    I am mounting inside /mnt, I just used /mnt as an example to keep things simple.
    Vain wrote:
    I made the same “mistake”. Try running “systemctl status mnt.mount” and see which device the output refers to. For me, it still listed the old device name. Hence, when you mount it, systemd tries to find the (old) device—which it can’t—and thus unmounts your device immediately.
    I was too lazy/annoyed to find out how to solve this properly. I rebooted my system.
    Interesting idea!  Unfortunately I have nothing listed for this particular mount point.  The only *.mount services on my system are the ones that are mounted at boot (e.g. srv.mount for /srv).  I have the "noauto" option against this mount point in fstab (as USB sticks aren't normally attached to my system when I boot) so sensibly enough I don't seem to have a mount service running for this particular mount point.

  • Mount Usb or Ipod (hal) [SOLVED]

    Installed Hal according to the guide (http://wiki.archlinux.org/index.php/HAL) but it doesnt mount my ipod or my usb stick.
    Any ideas? and how can I mount them manually?
    Last edited by cawill (2008-01-18 19:56:33)

    Thanks, both the ipod and the usb stick are detected by the system.
    When trying to mount Ipod:
    [root@myhost chris]# mount /dev/sdc /multimedia/Ipod
    mount: wrong fs type, bad option, bad superblock on /dev/sdc,
    missing codepage or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    dmesg output:
    [root@myhost chris]# dmesg | tail
    sd 9:0:0:0: [sdd] Mode Sense: 43 00 00 00
    sd 9:0:0:0: [sdd] Assuming drive cache: write through
    sdd: sdd1
    sd 9:0:0:0: [sdd] Attached SCSI removable disk
    sd 9:0:0:0: Attached scsi generic sg4 type 0
    usb-storage: device scan complete
    FAT: count of clusters too big (3662803)
    VFS: Can't find a valid FAT filesystem on dev sdc.
    FAT: count of clusters too big (3662803)
    VFS: Can't find a valid FAT filesystem on dev sdc.
    [root@myhost chris]#
    How can I fix this? Everything worked on my old arch computer :S
    Thanks for your help so far.
    EDIT: Usb mounts fine, Still have ipod problems though.
    [root@myhost chris]# mount /dev/sdc1 /multimedia/Ipod
    mount: you must specify the filesystem type
    How do I do that? and how can I get Hal to work?
    Last edited by cawill (2008-01-18 19:50:06)

  • Usb stick not working (solved)

    I copied some files to my usb stick and made sure it was working. Then I copied a open office file from my wifes computer running vista. After placing the usb stick back into my computer I got the following message
    A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
    I went to xsessions and got the following message.
    kded: ERROR: mount failed for /org/freedesktop/Hal/devices/volume_uuid_709E_ED39: org.freedesktop.DBus.Error.AccessDenied - A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
    kded: ERROR: mounting /org/freedesktop/Hal/devices/volume_uuid_709E_ED39 returned A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
    Seeing as the stick worked before I copied a file from vista, did the vista change something in the usb so it will not work in anything but windows? Is there anything I can do?
    changed /dev/sdc1 /mnt/usb vfat noauto,users 0 0
    to /dev/sdc1 /mnt/usb auto noauto,users 0 0
    and now everything works fine
    Last edited by smcsw2000 (2008-02-03 11:56:28)

    Try gparted to see what is loaded into your usb device partitions.....

  • Cant mount usb sticks with fat32 ISO-8859-1 2.6.31-ARCH

    when trying to mount my usb sticks from xfce4 desktop(halmount).
    Following error occurs (as told by dmesg).
    FAT: IO charset ISO-8859-1 not found
    First i suspected hal being the culprit but now im not so sure anymore.
    im using stock 2.6.31-ARCH.
    when i checked the .config for the stock kernel CONFIG_NLS_ISO8859_1=y is enabled in the kernelconfig, and also everything below to support fat32.
    CONFIG_FAT_FS=m
    CONFIG_MSDOS_FS=m
    CONFIG_VFAT_FS=m
    CONFIG_FAT_DEFAULT_CODEPAGE=437
    CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
    CONFIG_NTFS_FS=m
    but when i list the modules nls_iso8859-1.ko is missing.
    #~ls -a /lib/modules/2.6.31-ARCH/kernel/fs/nls/nls_iso*
    /lib/modules/2.6.31-ARCH/kernel/fs/nls/nls_iso8859-13.ko
    /lib/modules/2.6.31-ARCH/kernel/fs/nls/nls_iso8859-14.ko
    /lib/modules/2.6.31-ARCH/kernel/fs/nls/nls_iso8859-15.ko
    /lib/modules/2.6.31-ARCH/kernel/fs/nls/nls_iso8859-2.ko
    /lib/modules/2.6.31-ARCH/kernel/fs/nls/nls_iso8859-3.ko
    /lib/modules/2.6.31-ARCH/kernel/fs/nls/nls_iso8859-4.ko
    /lib/modules/2.6.31-ARCH/kernel/fs/nls/nls_iso8859-5.ko
    /lib/modules/2.6.31-ARCH/kernel/fs/nls/nls_iso8859-6.ko
    /lib/modules/2.6.31-ARCH/kernel/fs/nls/nls_iso8859-7.ko
    /lib/modules/2.6.31-ARCH/kernel/fs/nls/nls_iso8859-9.ko
    So i suspect the newest kernel broke mounting with hal.
    Last edited by nichlas.johansson (2009-10-17 14:25:56)

    Based on the information given in http://bbs.archlinux.org/viewtopic.php?id=82176, I changed in /etc/rc.conf from LOCALE=en_GB.iso88591 to LOCALE=en_GB.utf8, uncommented en_GB.UTF-8 UTF-8  in /etc/locale.gen, issued # locale-gen and after a reboot, I was able to mount my usb sticks again.
    However, now I get "FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!" in dmesg. Is this something, I need to worry about...?
    Last edited by smurf (2009-10-19 08:29:15)

  • Mount USB stick on an ASA 5505?

    Hello,
    I have an ASA 5505 and the built in flash is pretty small and I need to put 3 .pkg on it for Anyconnect 4.
    I formated an USB Stick (4GB) to FAT32 and put in the USB Port 2 on the back and rebooted the firewall.
    But in the filemanager I see disk0 and disk1, but disk1 does not work, doesn't list anything and I can't create folders on it.
    Can I mount the USB stick manually or something?
    Kind Regards.

    The USB port on the 5505 is not a supported file storage location.
    On the newer 5500-X series (including the 5506-X) you can do that.

  • Auto Mounting USB sticks

    So, I've looked around a lot, but I can't find much at all about mounting my usb sticks whenever they're plugged in. It'd be nice to not have to # mount /dev/sde1 /home/droid/usb
    I've set it up as the wiki says to do so with Thunar, but it's still not working. Any help?

    As jasonwryan mentioned the wiki is your friend. If you are trying to automount volumes with thunar make sure to install thunar-volman:
    pacman -S thunar thunar-volman
    Then you must configure thunar to automount your thumbdrive(s):
    From the wiki https://wiki.archlinux.org/index.php/Th … tomounting
    Configuration
    It can also be configured to execute certain actions when cameras and audio players are connected. After installing the plugin:
        1. Launch Thunar and go to Edit -> Preferences
        2. Under the 'Advanced' tab, check 'Enable Volume Management'
        3. Click configure and check the following items:
               Mount removable drives when hot-plugged.
               Mount removable media when inserted.
    also add dbus-launch to your .xinitrc making sure it comes before your windows manager/desktop environment
    for example my .xinitrc contains:
    exec dbus-launch openbox-session
    Granted there are numerous different ways to automount usb drives, but based on your post I assume that this is the method you are trying to use.
    Last edited by Gr0t92 (2013-05-16 05:20:36)

  • [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?

  • Mount USB stick manually

    Hi there!
    I'm new to Darwin and I'm wondering how to mount a USB flash drive manually. Actually I got the problem that my USB MP3 Player (Fat32 formatted) is being mounted read-only. So I'm looking for the device which has to be mounted. Something like this:
    mount -t vfat /dev/DEVICE /mnt/usbdevice -o uid=1000 (how do I get the UID in darwin?)
    I tried to get the 'DEVICE' info from /etc/fstab.hd (which should be the same as /etc/fstab in linux ?) when it's mounted automaticly but no success here (it says: 'IGNORE THIS FILE').
    That brings me to my second question: Where can I find all mounted devices listed like it's in fstab in other UNIX systems?
    I hope that's not to much asking
    greetings
    z00k

    That brings me to my second question: Where can I find all mounted devices listed like it's in fstab in other UNIX systems?
    Open Disk utility located in Applications/Utilities. Disk Utility can mount/unmount and eject external media, (and do a lot more).

  • Auto mount of USB sticks and hard drives?

    Hello.
    I'd like ArchLinux to auto-mount USB sticks, hard drives, etc... when plugging them in. How do I manage to do this?
    These are my daemons: DAEMONS=(syslog-ng network netfs crond dbus hal ntpd alsa gdm)
    Thank you in advance.
    EDIT: Somehow, autofs does not work.
    And btw, I use Thunar as file manager.
    Last edited by rik (2011-04-24 13:24:40)

    You need to have gvfs and thunar-volman installed. Make sure you are a member of the storage group. https://wiki.archlinux.org/index.php/Xf … le_Devices
    Last edited by yugrotavele (2011-04-24 14:55:59)

  • Boot Camp destroyed my USB-Stick., Boot Camp destroyed my USB-Stick.

    After starting BOOT CAMP ASSISTANT and tricking all of the tree buttons, I continued everything. I selected my USB-Stick and the WINDOWS 7 file I started the program. Then Boot Camp Assistant says that the USB-Stick does not work. So I opened the Disk Utility, and I cloud not find my USB-Stick.
    Pleas give me some advice how to repaire or run my USB-Stick again
    Thank you IMAC MAX

    It is free. It is beta. It works well - I use it on mine and two PCs as well...
    MS Security Essentials will no longer install due to compatibiliity issues - that is the idea of a beta - and the RC could be out in June.
    Windows 7 doesn't work great on any Mac, or Apple drivers, fan cvontrol to manage heat, and other issues.
    Put 8 in and get to know it, then when the RC comes out you'll be ready

  • I can't write to usb stick [solved]

    I've installed arch on my notebook yesterday. It took a few hours, but I got almost everything working correctly.
    My issue is that when I plug in a usb stick, it gets automatically mounted, but I can't write to it.
    I had the same issue with my ntfs data partition, but I solved it by adding an entry to /etc/fstab.
    Unfortunately that won't be  an efficient solution for usb sticks, since their partition type might vary.
    /dev/sda1: LABEL="arch" UUID="6c7ecf62-2ffb-4bfe-9af0-39d7cdb89751" TYPE="ext4" PARTUUID="000e19e1-01"
    /dev/sda2: LABEL="swap" UUID="ff87fb8b-773b-45ca-9198-c2abf9a1a017" TYPE="swap" PARTUUID="000e19e1-02"
    /dev/sda3: UUID="AAACDC9DACDC657B" TYPE="ntfs" PARTUUID="000e19e1-03"
    /dev/sda4: LABEL="Dados" UUID="EC60740C6073DC30" TYPE="ntfs" PARTUUID="000e19e1-04"
    /dev/sdb1: UUID="2013-11-01-08-10-26-00" LABEL="ARCH_201311" TYPE="iso9660" PTUUID="0d738582" PTTYPE="dos" PARTUUID="0d738582-01"
    [hfluz@hfluz-arch ~]$ sudo fdisk -l
    Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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: 0x000e19e1
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 398753791 199375872 83 Linux
    /dev/sda2 398753792 402948095 2097152 82 Linux swap / Solaris
    /dev/sda3 402948096 1399447551 498249728 7 HPFS/NTFS/exFAT
    /dev/sda4 1399447552 1953519615 277036032 7 HPFS/NTFS/exFAT
    Disk /dev/sdb: 14.8 GiB, 15879634944 bytes, 31014912 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: 0x0d738582
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 0 1056767 528384 0 Empty
    /dev/sdb2 84432 147919 31744 ef EFI (FAT-12/16/32)
    My usb stick is /dev/sdb.
    Anyone already had the same problem?
    Last edited by hfluz (2013-11-11 16:40:38)

    MW wrote:Check your groups, you should be in the storage group.
    https://wiki.archlinux.org/index.php/Users_and_Groups
    I don't think that the storage group covers this.  All USB storage devices that I have seem to come up as being part of the disk group.  You should really not make your user part of the disk group.
    If you read the post, and saw the info provided by the OP, you would see that he/she is trying to write to an iso, which is read-only.

  • [SOLVED] Cannot mount usb (as normal user)

    Hello
    I'm facing this problem for the first time, but can't tell if it came after an update or an unexpected reboot (light went out).
    I'm using latest kde (4.9.2?), and the latest kernel,
    Linux gantz 3.6.6-1-ARCH #1 SMP PREEMPT Mon Nov 5 11:57:22 CET 2012 x86_64 GNU/Linux
    When I plug any usb device, kde ask me what to do. When trying to mount it, either from the kde "mount" plasmoid or from dolphin, I get a "Not authorized" error. Mounting via cli with sudo works fine.
    After doing some research, I found that I need to be in the storage group in order to be able to mount, so I checked, and I was already on the storage group. Next.
    More research sent me to lots of pages talking abour .xinitrc, wich doesn't exists (on my home, at least). Also tons of pages where talking about somethin like "exec ck-launch-session dbus-launch session-manager" (I login via kdm), but the ck-launch-session is not found on my computer either.
    So i'm stucked right now, and don't know how to proceed, any clues? Thanks
    Last edited by mzneverdies (2012-11-10 13:10:09)

    mzneverdies wrote:
    Solved, it was a polkit issue, don't know what caused it, since i didn't touch any config file/dialog.
    after changing allow any to "yes" in this section
    <action id="org.freedesktop.udisks.filesystem-mount">
    <description>Mount a device</description>
    <description xml:lang="da">Montér en enhed</description>
    <message>Authentication is required to mount the device</message>
    <message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message>
    <defaults>
    <allow_any>yes</allow_any>
    <allow_inactive>yes</allow_inactive>
    <allow_active>yes</allow_active>
    </defaults>
    </action>
    on file /usr/share/polkit-1/actions/org.freedesktop.udisks.policy, everything came back to normal, and i'm able to mount usb devices.
    pd @Raynman: removing myself from the storage group did not change anything.
    that's not a fix, it's a crappy workaround. You are not supposed to touch these files, they will be overwritten on an upgrade. My guess is that you are simply not using systemd and therefore you are not in an active logind session. You have to boot with systemd, as mentioned in the news. Everything should then just work out of the box.

  • [SOLVED] Installation on UEFI from usb stick

    Greetings,
    I'm trying to figure out this uefi thing and install arch on my laptop.
    I swear, I've been trying so many times now that I have a headache. My girlfriend too because of all my ranting.
    I downloaded the latest arch iso and "burned" it to a usb stick (my laptop lack a cdrom).
    I booted with the first option and went through the whole installation progress to the grub installing part MANY times before realizing I was doing it all wrong and I had to start from a UEFI shell.
    Now I started from the UEFI shell and I just have no idea what I'm doing, the beginner guide doesn't seem to explain this.
    I should probably wait until my headache pass and I'm fresh and ready to start over but I'm one stubborn guyif there is one and I had enough of failing, I want it to work.
    What do I do from the UEFI shell?
    Do I have to reinstall everything from scratch, partitioning and all or I can just get back to the part where I have to install grub? What do I do?
    Thanks in advance and sorry if I'm asking stupid questions or something but, honestly, I failed so many times that my frustration is seriously high.
    Last edited by arkindal (2013-08-13 23:13:11)

    Hi,
    this is basically what I followed and it worked for me:
    make an archlinux uefi usb stick (it's a bit different than a normal one). Use a live ubuntu cd or something, so you don't have to use windows:
    #format your usb key on /dev/sdXY to fat32 (replace XY with the right device, in the following code too)
    sudo su
    wget http://mirror.us.leaseweb.net/archlinux/iso/2013.08.01/archlinux-2013.08.01-dual.iso
    mkdir -p /mnt/{usb,iso}
    mount -o loop archlinux-2013.08.01-dual.iso /mnt/iso
    awk 'BEGIN {FS="="} /archisolabel/ {print $3}' /mnt/iso/loader/entries/archiso-x86_64.conf | xargs mkfs.vfat -F32 /dev/sdXY -n
    mount /dev/sdXY /mnt/usb
    cp -a /mnt/iso/* /mnt/usb
    sync
    umount /mnt/{usb,iso}
    full instructions here: https://wiki.archlinux.org/index.php/Un … B_from_ISO
    now you have the instalation usb ready.
    When I did this, i could still go to choose my boot device and i had a normal usb key boot option and an uefi shell usb key option, see if you have something like that to be sure you have the uefi boot. you should see an uefi shell and it should boot automatically as a normal archlinux live usb. if it doesn not (happend to me before) run ./start.sh or something like that (it should say in the uefi shell what to run). If that doesn not work, then the uefi usb key didn't work.
    okay if you've successfully booted the uefi usb you have to format your drive so it has the uefi boot partition mounted inside the grup folder, so there has to be a ef00 partition on the begining
    This is my actuall install script, it will wipe your drive, make 5 partitions (uefi boot, boot, swap, root, home) and then mount them, install arch and then chroot into that
    modprobe efivars
    #configure this as you wish
    SWAPSIZE=4G
    ROOTSIZE=50G
    DRIVE=sda
    #these two lines are horrible, you could manually use gdist and format the drive as you wish, as this will just wipe it clean and make the partion table that I have.
    dd if=/dev/zero of=/dev/$DRIVE bs=1M count=1k
    echo "2\no\ny\nn\n\n\n+100M\nef00\nn\n\n\n+100M\n\nn\n\n\n+${SWAPSIZE}\n8200\nn\n\n\n+${ROOTSIZE}\n\nn\n\n\n\n\np\nw\ny\n" | gdisk /dev/$DRIVE
    mkfs.vfat -F 32 /dev/${DRIVE}1
    mkfs.ext2 -L boot /dev/${DRIVE}2
    mkswap -L swap /dev/${DRIVE}3
    mkfs.ext4 -L root /dev/${DRIVE}4
    mkfs.ext4 -L home /dev/${DRIVE}5
    swapon /dev/${DRIVE}3
    mount /dev/${DRIVE}4 /mnt
    mkdir /mnt/home
    mount /dev/${DRIVE}5 /mnt/home
    mkdir /mnt/boot
    mount /dev/${DRIVE}2 /mnt/boot
    #this is the magic uefi part for grub
    mkdir /mnt/boot/efi
    mount /dev/${DRIVE}1 /mnt/boot/efi
    pacstrap /mnt base base-devel zsh
    genfstab -U -p /mnt >> /mnt/etc/fstab
    arch-chroot /mnt
    After doing that, you have can install the system as you wish and for the grub I do this:
    I had problems a few times if i copy pasted all these lines at once, so now i copy paste them one at a time, (I know it should not make a difference but still, sometimes it didn't work)
    # i do this in chmod too, though I'm not sure if it's really necessary
    modprobe efivars
    mkinitcpio -p linux
    echo "installing efi grup thingy"
    pacman -S --noconfirm efibootmgr grub-efi-x86_64
    grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck --debug
    mkdir -p /boot/grub/locale
    cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
    grub-mkconfig -o /boot/grub/grub.cfg
    and this is all i have in my install script file and uefi works fine.  I hope you'll get it running soon
    Last edited by zidarsk8 (2013-08-09 00:25:20)

Maybe you are looking for

  • Move Mail from one user to another user on same iMac?

    How do I move my Mail (library and preferences) from one user to another user on the same Imac? This way I want to split afterwards the mailaccounts that now sit in one user over the old and the new user by deleting those mailaccounts that I do not w

  • What are the valid values for CPU in conditional disable structure config?

    After diggin' around for some time (but to no avail)... Does somebody know the valid values for the CPU (symbol) in the conditional disable structure configuration or where I can find this information? Best regards, Horst

  • ITunes 11 slow to load on Windows 7 64-bit

    We have laptop running Windows 7 Professional 64-bit in a remote office that has numerous drives mapped to the server in our main office.  The drives are accessed via a VPN at the remote office.  The laptop has the latest version of iTunes 11 install

  • These forums are painfully slow

    This forum has got so slow it's on the verge of becoming useless and is totally frustrating. It's slow to present the contents of a thread 10-15 seconds, but far, far worse to return from that thread to the thread list 30-45 seconds - presumably rebu

  • Need PI7.1 technical configuration guide

    I used to see the XI3.0 configuration guide on the internet. Now I cannot find  XI/PI  configuration guide any more. Any idea where to get the link? Thanks a lot!