Mount a tmpfs as user at boot

hey all,
i mount my ~/.cache as a 'tmpfs' from the /etc/fstab ,but when i check with 'chown' the owner is root (obviously) and mode=1777
NOT a good idea to have a root dir with mode=1777 i guess ,i wanna change the owner at boot as 'user'
can't find a good solution.... or my eyes are crossed 
EDIT;  think i found it http://kb.iu.edu/data/adwf.html
Last edited by gregor (2012-06-24 00:41:31)

Err, why not use something like anything-sync-daemon or a custom script using rsync -a (look up --archive in man rsync) to load your cache into one of the tmpfses already there with the permissions you need?  It'll even be persistent across boots
Aside from that, you should really take a look at man mount.

Similar Messages

  • [SOLVED] Mount /dev/sda4 (recycled) /home, when booting

    Dear Archlinux users,
    I reinstalled Archlinux with the goal to reuse my /home partition which is on /dev/sda4.
    What i did was i reinstalled Archlinux with the netinstall cd, i formatted /dev/sda1/2/3 (/boot swap /root) and kept the /dev/sda4 /home folder partition.
    When i boot it does not automatically mount the /dev/sda4 to /home.
    How can i mount /dev/sda4 to /home at boot automatically?
    Thanks for helping
    I had to add the rule to /etc/fstab
    #/etc/sda4 /home etx4 defaults 0 1
    Sorry for the inconvenience
    Last edited by verbin (2012-07-10 21:41:31)

    Dear Archlinux users,
    I reinstalled Archlinux with the goal to reuse my /home partition which is on /dev/sda4.
    What i did was i reinstalled Archlinux with the netinstall cd, i formatted /dev/sda1/2/3 (/boot swap /root) and kept the /dev/sda4 /home folder partition.
    When i boot it does not automatically mount the /dev/sda4 to /home.
    How can i mount /dev/sda4 to /home at boot automatically?
    Thanks for helping
    I had to add the rule to /etc/fstab
    #/etc/sda4 /home etx4 defaults 0 1
    Sorry for the inconvenience
    Last edited by verbin (2012-07-10 21:41:31)

  • Mount network volume: different users same credentials, see different shares

    A set of network volumes on a NAS need to periodically be backed up to a local USB disk. Manually, I can mount most shares (from a Finder window). In a shell script I can list all files due (find) and use that list for backing up to a local USB volume (cpio). So far so good. However, I need to mount these network volumes first. The mount command doesn't seem to work for me.
    How do I mount a network volume in a shell script?
    Also I noticed that if under fast user switching user A logs in with credentials uName and uPassword, the NAS shows 6 shares to choose from. When user B on the same machine logs in with the same credentials uName and uPassword, only 5 shares are visible and one is not shown. It looks as if the credentials do not uniquely determine the volumes offered for mounting. Also, when user B mounts a share, it appears to be owned by user A (who is logged in but has not mounted any share on the NAS) rather than owned by B or by uName...
    How do I mount this volume as user uName rather than A or B?
    How can one uniquely determine the identity of the volume? Network volumes don't show UUIDs and the name given in the /Volume/ folder can change, as is discussed in message 11871367.

    eljonco wrote:
    I just checked: after a reboot, user A logs in (automatic login enabled), user A logs out, user B logs in, ls -a /Volumes only shows local HD and a USB HD. No network mounts there.
    In the finder window, the NAS shows up on the left. Clicking it and entering credentials uName, uPassword, a list of five, not 6, items is offered for mounting. So your options 1 and 4 are then ruled out, unless an alias made by user A and copied to user B's home folder would still link to user A's mounting options.
    Actually, only option 1 is ruled out. That Finder list is simply not reliable. It is likely cached somewhere and could be restored by deleting some hidden preference file. It regularly causes people to freak out when they see some sharepoint listed on a network that they have long since left.
    If you did Go > Connect to Server in the Finder and typed in the location, you could still create an alias.
    Once mounted one of 5 shares as uName with uPassword, an ls -al /Volumes shows the local drives and
    drwx------@ 11 B staff <date> sharename
    and all folders in sharename also show B:staff as user:group. I find that strange, as I did not log in to the share with credentials B, but with credentials uName. Anyhow.
    The uName user is for the network share. When MacOS X mounts that, it gives it permissions appropriate for the user who did the mounting. If you did an NFS mount as root, the server would handle permissions via UNIX uid and gid. I'm really not familiar with the details of AFP.
    As I read in a post about autoFS that 'cd /Volume/theHiddenShare' should magically mount that share, I gave it a shot. Alas, '/Volumes/theHiddenShare: No such file or directory'. Same long shot in the dark in the 'Go/Connect to' dialog gave 'The folder cannot be found'. Not surprisingly, I suppose.
    Yes. That has to be setup
    Here is what I've done to my /etc/auto_home:
    # Automounter map for /home
    #+auto_home     # Use directory service
    # Get /home records synthesized from user records
    #+/usr/libexec/od_user_homes
    myserver.org -allow_other,reconnect,fstype=sshfs [email protected]:/home/me_remote
    I'm not on a big network, so I've disabled the system functionality by commenting out "+auto_home" and "+/usr/libexec/od_user_homes". Now, the system doesn't manage /home and I am free to do with it what I want. This will mount the path "/home/myserver.org" connected to the "me_remote" user on "myserver.org". I'm using the funky MacFUSE sshfs filesystem. Your AFP file system should work much better. Your line would look something like this:
    drive5 -fstype=afp uUser@MyLocalServer:/theHiddenShare
    Run "automount -vc" to reset your automount system.
    Next use Finder Go > Connect to Server and type in "afp://uUser@MyLocalServer:/theHiddenShare".
    You want to mount the drive once so that you can store uPassword in your keychain.
    Now unmount the drive.
    The Finder mounts all go into /Volumes and, as you have discovered, can get themselves confused. This automount will be at "/home/drive5". All you have to do is enter that folder in the Finder and it will be automatically mounted. If you haven't used it for a while, it will be unmounted automatically.
    You may have to play around with this a little. I don't have any network AFP share that I need to mount on a regular basis, so those parameters may need to be adjusted somewhat.

  • Mount network drive (Time Capsule) on boot

    Greetings all,
    I was wondering if any one can help me on this. I'm trying to mount the Time Capsule HDD on boot (not as login item) and didn't able to figure out how. I don't seem to find a proper "fstab" file to use (it's empty). But mount gets the formatted result (from somewhere):
    *+macmini:/ root# mount+*
    *+/dev/disk0s2 on / (hfs, local, journaled)+*
    *+devfs on /dev (devfs, local)+*
    *+fdesc on /dev (fdesc, union)+*
    *+/dev/disk0s3 on /Volumes/Programs (hfs, local, journaled)+*
    *+map -hosts on /net (autofs, automounted)+*
    *+map auto_home on /home (autofs, automounted)+*
    *+/dev/disk0s4 on /Volumes/Media (hfs, local, journaled)+*
    *+afp_0TT7Xo1k3v2N00mUJs0Pyetl-1.2d000004 on /Volumes/DataCenter (afpfs, nodev, nosuid, mounted by sans)+*
    I Wanna mount /Volumes/DataCenter at boot time. Any idea how can I do that? Thanks in advance for your hep. Cheers!!!

    Okay guys, I've figured that out by myself. Let me know if anyone looking for the same thing; I can help. Cheers!!!

  • [SOLVED] Running a startup script as a user at boot once

    Hello!
    So, as the title suggests, I am trying to start a script as a specific user at boot. To avoid accidentally starting it multiple times, I don't want it to run every time to user logs in. So far I've looked into creating a custom systemd service to call a script as root then using 'sudo -u user script' to run said script.
    This almost worked, the script must have executed but, because it was starting a new task in a screen, it created a dead screen. Although I'm not entirely sure why (I suspect it has something to do with not running screen as the logged in user), I figured I would ask if anyone knew of a better way to do this. My solution so far is pretty convoluted.
    Side notes: This is running on a GUI-less server (hence the possibility of a user logging in multiple times or having multiple sessions open at once)
    Last edited by Lindenk (2013-07-09 15:33:45)

    Sure,
    Here's essentially the unit file -
    [Unit]
    Description=Runs a script to run a script to start a script to start a server
    [Service]
    ExecStart=/absolute/path/to/a/rootScript.sh
    [Install]
    WantedBy=multi-user.target
    And the root script
    #!/bin/bash
    #This script will run another script as the user 'server'
    sudo -u server /path/to/userScript.sh
    And the user script
    #insert possible setup stuff here
    screen -S serv -d -m /path/to/server/start.py
    #insert possible cleanup stuff here
    Also as a side note, I did already allow root to run commands as server without a password.
    EDIT: Another side note, the root script and user script do in fact work as intended when started individually. When running through systemd (at boot or not), the screen created is dead.
    Last edited by Lindenk (2013-07-09 14:36:54)

  • How do I mount an external Firewire HD when booting into single user mode?

    Hi,
    How can I mount an external Firewire Harddisk from the Darwin Console, once I have booted into single user mode?
    I'm trying to make a backup of all my files and then re-install my iMac G5 since it doesn't start the GUI anymore and I haven't gotten any responses to my question here: http://discussions.apple.com/thread.jspa?threadID=1104762&tstart=0
    Thanks,
    Torsten

    ok, I executed the following commands:
    /sbin/fsck -fy
    /usr/libexec/registermach_bootstrapservers /etc/mach_init.d
    autodiskmount
    There were two messages:
    UniNEnet: Ethernet address 00:14:51:32:19:b8
    and
    Aug 29 20:55:29 launchd: server 2e3b in bootstrap 1103 uid 0: "/usr/sbin/lookupd"[16]: exited abnormally: Hangup
    I don't know whether this has anything to do with the commands I entered.
    And since I don't know what the volume name for the external Firewire HD is, I typed
    ls -l /Volumes
    but the only volume that is being listed there is my iMac's internal HD.
    What should I do next?
    Thx!

  • Can't mount Esata as user without booting with it inserted

    When I plug in my NTFS-formatted eSATA drive it is not mounted. If I boot with it plugged in it's mounted but then I have problems during boot. My computer tries to do a filesystem check and it ends with "run fsck manually or press ctrl+D to continue. Not every time but often enough to be a problem.
    I have Udisks installed and I followed this guide from the WIKI: https://wiki.archlinux.org/index.php/Udev
    I have these rules in /etc/udev/rules.d/:
    10-esata.rules  10-my-media-automount.rules  11-media-by-label-auto-mount.rules. Copied from the UDEV wiki.
    If I use USB it's mounted instantly without problems. I am running a fully up to date install of Arch x86_64 with openbox.

    OK. Here's my 10-esata.rules
    [DEVPATH=="/devices/pci0000:00/0000:00:14.1/host4/*",
    ENV{UDISKS_SYSTEM_INTERNAL}="0"/]
    A here's the output of udevadm monitor
    [root@htpc1 jan]# udevadm monitor
    monitor will print the received events for:
    UDEV - the event which udev sends out after rule processing
    KERNEL - the kernel uevent
    Seems like nothing happens. How long do I need to wait?
    Same output with the disk plugged or not.
    Last edited by jai134 (2011-11-30 10:24:21)

  • Mounting CDROM as normal user about to pull hair out....

    Hi everyone....
    I'm about up to my wits end trying to allow my normal user to mount and unmount my cdrom drives...
    Here's my /etc/fstab
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /proc proc defaults 0 0
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    tmpfs /tmp tmpfs defaults 0 0
    sysfs /sys sysfs defaults 0 0
    usbdevfs /proc/bus/usb usbdevfs defaults 0 0
    /dev/cdroms/cdrom0 /mnt/cd1 iso9660 ro,user,noauto,unhide 0 0
    /dev/cdroms/cdrom1 /mnt/cd2 iso9660 ro,user,noauto,unhide 0 0
    /dev/cdroms/cdrom0 /mnt/dvd udf ro,user,noauto,unhide 0 0
    /dev/floppy/0 /mnt/fl vfat users,noauto,unhide 0 0
    /dev/discs/disc0/part2 swap swap defaults 0 0
    /dev/discs/disc0/part3 / reiserfs defaults 0 0
    /dev/discs/disc0/part1 /boot ext3 defaults 0 1
    I also added a new group called "mount" and added both root and my normal user to it.
    I then did
    chgrp mount /bin/*mount    to change mount and umount to the mount group
    then i did a
    chmod 774 /bin/*mount
    I also made sure that the 3 mount directorys in fstab existed and gave them 777 permissions...
    Did a complete reboot...  and the normal user still can't use mount... I get this error...
    mount: must be superuser to use mount
    I'm at my wits end.  I believe fstab is correct.  I believe my permissions are set correctly...  Is there anything else I need to do?
    Thanks in advance for any replies...
    James

    longhornxtreme wrote:man chmod doesn't say what s does.... so I'm kind of at a loss of understanding...
    The man page says exactly what it does...read more carefully
    the chmod manpage wrote:The letters `rwxXstugo' select the new  permissions  for  the  affected
           users:  read  (r),  write (w), execute (or access for directories) (x),
           execute only if the file is a directory or already has execute  permis-
           sion  for  some user (X), set user or group ID on execution (s), sticky
           (t), the permissions granted to the user who owns  the  file  (u),  the
           permissions  granted to other users who are members of the file's group
           (g), and the permissions granted to users that are in  neither  of  the
           two preceding categories (o).

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

  • [SOLVED] Can't mount my root file system on boot!

    Posting from an Ubuntu install on the same machine.
    So, my root partition, labeled "arch", is ext4 on /dev/sda5. My home partition is btrfs on /dev/sda1.
    When I boot, I get this error:
    http://imgur.com/mzmLIZH
    Not sure what to do from there. I can mount everything and chroot into arch from my ubuntu installation, so I think the FS is ok.
    [edit]
    here is the fstab:
    tmpfs tmp tmpfs nodev,nosuid 0 0
    LABEL=arch / ext4 rw,relatime,discard,noatime 0 1
    LABEL=home /home btrfs rw,relatime,discard,noatime 0 2
    Last edited by ninjaaron (2014-10-29 18:32:12)

    bootloader is grub2. Here is /boot/grub/grub.cfg:
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    insmod part_gpt
    insmod part_msdos
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    if [ "${next_entry}" ] ; then
    set default="${next_entry}"
    set next_entry=
    save_env next_entry
    set boot_once=true
    else
    set default="0"
    fi
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    else
    menuentry_id_option=""
    fi
    export menuentry_id_option
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    function load_video {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    fi
    if [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos5'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4
    else
    search --no-floppy --fs-uuid --set=root ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_US
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
    set timeout=5
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos5'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4
    else
    search --no-floppy --fs-uuid --set=root ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4 rw quiet i915.modeset=1 acpi_backlight=vendor
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4' {
    menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos5'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4
    else
    search --no-floppy --fs-uuid --set=root ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4 rw quiet i915.modeset=1 acpi_backlight=vendor
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos5'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4
    else
    search --no-floppy --fs-uuid --set=root ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=ecfcae91-5f9e-4e23-be7d-9381f4a0fbb4 rw quiet i915.modeset=1 acpi_backlight=vendor
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux-fallback.img
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry 'Ubuntu Utopic Unicorn (development branch) (14.10) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-8432f995-66bc-42f8-b240-02adeef5f9af' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos6'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 8432f995-66bc-42f8-b240-02adeef5f9af
    else
    search --no-floppy --fs-uuid --set=root 8432f995-66bc-42f8-b240-02adeef5f9af
    fi
    linux /boot/vmlinuz-3.16.0-9-generic root=UUID=8432f995-66bc-42f8-b240-02adeef5f9af ro quiet splash $vt_handoff
    initrd /boot/initrd.img-3.16.0-9-generic
    submenu 'Advanced options for Ubuntu Utopic Unicorn (development branch) (14.10) (on /dev/sda6)' $menuentry_id_option 'osprober-gnulinux-advanced-8432f995-66bc-42f8-b240-02adeef5f9af' {
    menuentry 'Ubuntu (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-9-generic--8432f995-66bc-42f8-b240-02adeef5f9af' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos6'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 8432f995-66bc-42f8-b240-02adeef5f9af
    else
    search --no-floppy --fs-uuid --set=root 8432f995-66bc-42f8-b240-02adeef5f9af
    fi
    linux /boot/vmlinuz-3.16.0-9-generic root=UUID=8432f995-66bc-42f8-b240-02adeef5f9af ro quiet splash $vt_handoff
    initrd /boot/initrd.img-3.16.0-9-generic
    menuentry 'Ubuntu, with Linux 3.16.0-9-generic (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-9-generic--8432f995-66bc-42f8-b240-02adeef5f9af' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos6'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 8432f995-66bc-42f8-b240-02adeef5f9af
    else
    search --no-floppy --fs-uuid --set=root 8432f995-66bc-42f8-b240-02adeef5f9af
    fi
    linux /boot/vmlinuz-3.16.0-9-generic root=UUID=8432f995-66bc-42f8-b240-02adeef5f9af ro quiet splash $vt_handoff
    initrd /boot/initrd.img-3.16.0-9-generic
    menuentry 'Ubuntu, with Linux 3.16.0-9-generic (recovery mode) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-9-generic--8432f995-66bc-42f8-b240-02adeef5f9af' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos6'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 8432f995-66bc-42f8-b240-02adeef5f9af
    else
    search --no-floppy --fs-uuid --set=root 8432f995-66bc-42f8-b240-02adeef5f9af
    fi
    linux /boot/vmlinuz-3.16.0-9-generic root=UUID=8432f995-66bc-42f8-b240-02adeef5f9af ro recovery nomodeset
    initrd /boot/initrd.img-3.16.0-9-generic
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    ### BEGIN /etc/grub.d/60_memtest86+ ###
    ### END /etc/grub.d/60_memtest86+ ###
    here is my /etc/mkinitcpio.conf
    MODULES="btrfs"
    BINARIES=""
    FILES=""
    HOOKS="base udev autodetect modconf block filesystems keyboard fsck btrfs_advanced"
    I'll get back with you on the `cat /proc/cmdline` in a moment...
    Last edited by ninjaaron (2014-10-29 05:11:56)

  • Can only mount certain drivers as user (permission issue)

    # /etc/fstab: static file system information.
    # <file system> <mount point> <type> <options> <dump> <pass>
    #Entry for /dev/sda3 :
    UUID=9d30da3d-1705-4d6e-8925-d54368a6ba83 / ext4 rw,relatime,noatime,discard,data=ordered 0 1
    #Entry for /dev/sda4 :
    UUID=2594-9B6A /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
    #Entry for /dev/sdc1 :
    UUID=18223DAB223D8F2E /media/veePortable ntfs-3g rw,user,users,sync,exec,dev,suid,noatime,nodiratime,noauto,uid=1000,gid=100,umask=000 0 0
    #Entry for /dev/sdd1 :
    UUID=249E57549E571D9C /media/veeStorage ntfs-3g rw,user,users,sync,exec,dev,suid,noatime,nodiratime,noauto,uid=1000,gid=100,umask=000 0 0
    #Entry for /dev/sda2 :
    UUID=369A97239A96DEA5 /media/veeSSD ntfs-3g rw,user,users,sync,exec,dev,suid,noatime,nodiratime,noauto,uid=1000,gid=100,umask=000 0 0
    # veeBackup /dev/sdb1 :
    UUID=d91fd6de-3a65-4a78-961b-ea53bf8e1542 /media/veeBackup ext4 rw,user,users,sync,exec,dev,suid,noatime,nodiratime,noauto,uid=1000,gid=100,umask=000 0 0
    # veeData /dev/sdb2 :
    UUID=e7d0ed28-a65c-44ea-9ce1-529c4071afe5 /media/veeData ext4 rw,user,users,sync,exec,dev,suid,noatime,nodiratime,noauto,uid=1000,gid=100,umask=000 0 0
    This is my /etc/fstab file.
    I can successfully mount using Thunar "veeStorage" and "veePortable", which are external USB drives.
    When trying to mount "veeSSD", "veeBackup" or "veeData", Thunar tells me I don't have the required permissions.
    Doing "sudo mount --all" doesn't mount them. I have to manually mount them with
    sudo mount /dev/sdb1 /media/veeBackup
    sudo mount /dev/sdb2 /media/veeData
    sudo mount /dev/sda2 /media/veeSSD
    fdisk -l : http://pastie.org/8102730
    Blkid
    /dev/sda1: LABEL="System Reserved" UUID="18F8916FF8914BBE" TYPE="ntfs"
    /dev/sda2: LABEL="veeSSD" UUID="369A97239A96DEA5" TYPE="ntfs"
    /dev/sda3: UUID="9d30da3d-1705-4d6e-8925-d54368a6ba83" TYPE="ext4"
    /dev/sda4: UUID="2594-9B6A" TYPE="vfat"
    /dev/sdb1: LABEL="veeBackup" UUID="d91fd6de-3a65-4a78-961b-ea53bf8e1542" TYPE="ext4"
    /dev/sdb2: LABEL="veeData" UUID="e7d0ed28-a65c-44ea-9ce1-529c4071afe5" TYPE="ext4"
    /dev/sdc1: LABEL="veePortable" UUID="18223DAB223D8F2E" TYPE="ntfs"
    /dev/sdd1: LABEL="veeStorage" UUID="249E57549E571D9C" TYPE="ntfs"

    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?

  • Fat32 External Hard Drive does NOT mount on Windows XP Pro under boot camp

    I have a gateway 160gb portable external HDD. When it came pre-formatted in NTFS. It mounted on Windows XP under boot camp or Vmware Virtual machine very well.
    I then formatted it under HFS+ to use it with superduper.
    Now that I want to convert it back to NTFS. I formatted it under Fat32 so that windows can recognize it and I can format it again under NTFS.
    The drive mounts fine on Mac OSX leopard but not on Windows XP (bootcamp or Vmware VM). Could someone help? I need this drive to be under NTFS so that I can store work related files which can only be run on Windows and some of the files are larger than 4gb.
    Thank you

    Under Disk Utility>Partition select anything other than 'Current' under 'Volume Scheme', then the format field will light. However, you should have been able to format under Windows Disk Management once it was online. See:
    http://www.microsoft.com/windowsxp/using/setup/tips/advanced/ntfs.mspx

  • Share a mounted AFP volume across user accounts on the same computer

    Hi all,
    I have a Mac Mini with several attached disks (HFS+). I'm using it as a file server, to share these disks over my home network. I'm mounting these as AFP server volumes on a second computer (MacBook Pro). This all works fine. Both are running MacOS 10.6.2.
    The problem is that my MacBook Pro has two user accounts, and when I mount AFP volumes under one user, the other user can't access them. It seems that mounted AFP volumes are assigned read/write permissions for only the user that mounted them.
    Ideally, I'd like to mount a volume once, and have it accessible from both user accounts. I've tried changing permissions in the AFP volume's Get Info window, but the changes don't take effect.
    Does anyone know how to do this? Thanks!!
    cjb

    Rick
    I'm no expert in this department, but I believe that your question was the reason Apple started the 'Group' calendar. Check this page out:
    http://www.mac.com/WebObjects/Groups.woa/wa/afterLogin?cty=US&aff=consumer&lang= en
    Perhaps your answer lies within.
    * Guy

  • I forgot my admin password for my macbook and my macbook doesnt allowme to go on single user or boot up in safe mode or boot up with the option key all it does is show a image of a globe blinking everytime i try to do something

    please people help me i brought this macbook from a friend and now its ****** up its a macbook late 2006 and it dosesnt allow me to do anything everytime i click on a key to go on single user terminal or boot up cd or run on safe mode it shows a image of a globe(earth)

    Somehow the HDD is screwed up. Data saving issue is not directly Toshiba related issue and before you spend time here discussing about such things I recommend you to ask someone with good PC knowledge what can be done about data saving.
    When the HDD is in the notebook again start notebook as first step set BIOS to default settings.
    After doing this install recovery image. After doing this you will have clean preinstalled OS and everything should work properly again.
    I hope you will be able to do this using HDD recovery option.
    How to do this you can find on http://aps2.toshiba-tro.de/kb0/HTD1303440001R01.htm
    Have you maybe created recovery discs?

  • [SOLVED]trying to mount disk so all users can read write

    I'm trying to mount my hard drive to /mnt/2TB automatically at startup.  My /etc/fstab looks like this...
    /dev/sda2 / ext4 errors=remount-ro 0 1
    /dev/sdb1 /mnt/2TB ntfs auto,exec,rw,users,uid=1000 0 0
    ls / shows...
    drwxrwxrwx 3 root root 4096 Jun 30 20:09 mnt
    ls /mnt shows...
    drwxrwxrwx 1 root root 4096 Jun 20 21:21 2TB
    When I restart the disk mounts fine but I cannot write anything to disk.  I want to mount this disk so that anyone can read, write, and execute on it.  I specified these options in my fstab.  What options am I missing?
    EDIT:
    I figured it out.  I had to install ntfs-3g.  Once I did that I changed my fstab to this...
    /dev/sda2 / ext4 errors=remount-ro 0 1
    /dev/sdb1 /mnt/2TB ntfs-3g defaults,uid=1000 0 0
    Then I changed /mnt permissions to ...
    drwxr-xr-x 3 root root 4096 Jun 30 20:09 mnt
    Then I changed /mnt/2TB permissions to...
    drwxrwxrwx 1 necbot users 4096 Jun 20 21:21 2TB
    Works great!
    Last edited by necbot (2014-07-02 00:07:43)

    I ran across this in the ntfs-3g manual which might be of some interest. It appears that adding "permissions" to the mount options for ntfs-3g might accomplish roughly what you want, but you may have to perform some work to get it operational. Likewise, the Windows ACL may interfere and a quick glance seems to me to suggest that you might have to tweak things from Windows to get the permissions working well.
    I personally have all of my Windows partitions mounted under /windows, but I can see why that isn't an ideal solution if you're dabbling in Arch or have things you want to more easily share in one direction.
    Hope this helps somewhat even though you've already marked the topic as solved.

Maybe you are looking for

  • HT2500 has apple blocked leopard from functioning with email if email has been upgraded to icloud?

    i upgraded to icloud and suddenly i can no longer receive email on my mac mini or macbook pro.  i have my husband and mother's mac account in my email as well and they have not upgraded to icloud and their mail works fine.  i have a new computer with

  • Illustrator installation with error.

    I'm trying to do the installation of the illustrator but giving this error 82829s5 already checked the procedures that are reported, but still could not install the program.      

  • "Auto Play" feature for Videos on iPod Classic 160Gb

    I have a 160GB iPod Classic, that just came out about a year ago, and it is updated with the latest firmware (or so says iTunes). I'm also using iTunes 8. I have also gone through all the usual help desk diagnostic processes, the ones in which they a

  • Help to find the RPL

    My Nokia N70 Needs the RPL file Message Edited by linwood on 13-Jan-2009 02:01 PM

  • Encore CS5 turning my 264 menus into MPEG2...why?

    Blu Ray authoring on a Mac using Encore CS5. Video is compressed in Apple Compressor 3.5 as H264 and all is well until I build the project. Encore then takes my 264 encoded menus and recompresses them into MPEG2 making them play back herky jerky and