[solved] mount CD/DVD

This is my problem
the DVD only shows up in "system:/media/sr0
not in
or in
My DVD Player, and also MP3 Player can't find the DVD. The Error,
no media found in "/media"
I have two DVD one DVDRom and one DVD +-RW DL Burner
so far there is no problem with K3B to burn a DVD or CD.
This Error is related to Amarok, Kaffeine, XMMS, Gxine and another players. They don't find the DVD or CD.
vi /etc/rc.conf
DAEMONS=(syslog-ng hwd network netfs kdm dbus hal crond)
What do I missing?
Last edited by JaDa (2007-06-28 23:53:07)

ndlarsen wrote:
Misfit138 wrote:I have my dvd/cdrom entries commented out in my fstab, and I let hal handle it completely. Works great.
It does look like the icon text states "blank something".
oops, it is blank & jones my test audio CD!
My problem is solved! Thanks for all your ideas!
The most important what I missed was "autofs"! Hal and dbus are not enough!
Install autofs
pacman -S autofs
then follow this wiki
http://wiki.archlinux.org/index.php/AutoFS_HowTo
very important
Edit the file /etc/autofs/auto.master. Delete the existing contents and add the following line:
/media /etc/autofs/auto.media
and take a closer look if you using VI or VIM command on "/media /" it's not "/media/"
If Autofs doesn't automatically unmount your devices (after you finish this wiki), replace last line by :
/media /etc/autofs/auto.media --timeout 3
you need to add "--timeout 3"
also add the daemon "aufofs" in the "/etc/rc.conf" if you like it at the startup.
The USB devises for digital camera and USB Stick or just changing Musik/Movie CD/DVD just work fine now.
There is no error anymore in Kaffeine or another players
no media found in "/media"
all is works perfect. The Icon's for mounted devises show now up on my desktop (KDE) too!

Similar Messages

  • Mounting Oracle DVD's

    Hello Everyone,
    Just thought I would share an experience here, with the hope it helps someone.
    This note is about mounting Oracle DVD's on HPUX 11.11, on a RP5470 Unix Server. In the past, we have used the pfs_mount command. pfs_mount has caused nothing but lots of trouble. As ridiculous as this sounds, reboots were sometimes required to get the DVD or CD to eject.
    After some digging around, we have found that using the following command solved all our issues.
    mount -F cdfs -e -o ro,rr /dev/rmt/<device_file> <mount_directory>
    Hope this helps...Colin

    Colin,
    Thanks for sharing this with us.
    Regards,
    Hussein

  • How can I force mount a dvd that isn't even seen by Disk Utility? I can see it on the Mac when using my Windows 7 partition via Boot Camp, but not in Lion, which is how I would rather be running.

    How can I force mount a dvd that isn't even seen by Disk Utility? I can see it on the Mac when using my Windows 7 partition via Boot Camp, but not in Lion, which is how I would rather be running.

    Well if there is a EFI block, then running a program in OS X isn't going to do a lick of good.
    After all EFI was designed for Trusted Computing and Digital Rights Management, to act between the OS and hardware, can read drives, contact the Internet and everything.
    Windows doesn't use EFI, will have UEFI in Windows 8 though.

  • Unable to mount the DVD on Oracle VM Server 2.2.1

    Hi All,
    Good day, We are unable to mount the DVD on Oracle VM Server 2.2.1. System is throwing the following info in messages file.
    Server X4170 M2
    OS: Oracle VM Server 2.2.1
    usb 2-3.1: reset low speed USB device using ehci_hcd and address 8
    usb 2-3.2: reset low speed USB device using ehci_hcd and address 9
    USB disconnect, address 8
    Regards
    Gurudatta N.R

    and i go to the temp mountpoint that the script will mount on
    Starting install...
    ERROR: Invalid NFS location given: [Errno 2] No such file or directory: '/var/lib/xen/xennfs.7x4Rf4/boot/x86_64/vmlinuz-xen'
    [root@ovs2 opt1]# df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/cciss/c0d0p2 3050092 3033308 0 100% /
    /dev/cciss/c0d0p1 101086 47114 48753 50% /boot
    tmpfs 288856 0 288856 0% /dev/shm
    none 288768 40 288728 1% /var/lib/xenstored
    /dev/cciss/c0d0p3 288623616 301056 288322560 1% /var/ovs/mount/A52CB661C1CF41D198D50F6379822694
    /var/isos/OracleLinux-R5-U7-Server-x86_64-dvd.iso
    3755446 3755446 0 100% /el/EL5-x86
    192.168.229.110:/el/EL5-x86
    3755456 3755456 0 100% /opt1
    192.168.229.110:/el/EL5-x86/
    3755456 3755456 0 100% /var/lib/xen/xennfs.NnE54I
    [root@ovs2 opt1]# cd /var/lib/xen/xen
    xend-db/ xennfs.7jHT0q/ xennfs.fQNnQD/ xennfs.LR6hDx/ xennfs.QnxyeH/
    xennfs.5Pr0vm/ xennfs.8aMSAA/ xennfs.fRhXiN/ xennfs.NnE54I/ xennfs.yEw4KL/
    [root@ovs2 opt1]# cd /var/lib/xen/xen
    xend-db/ xennfs.7jHT0q/ xennfs.fQNnQD/ xennfs.LR6hDx/ xennfs.QnxyeH/
    xennfs.5Pr0vm/ xennfs.8aMSAA/ xennfs.fRhXiN/ xennfs.NnE54I/ xennfs.yEw4KL/
    [root@ovs2 opt1]# cd /var/lib/xen/xennfs.NnE54I/
    [root@ovs2 xennfs.NnE54I]# ls
    blafdoc.css EULA GPL README-en RELEASE-NOTES-en.html Server VT
    Cluster eula.en_US images README-en.html RPM-GPG-KEY supportinfo
    ClusterStorage eula.py isolinux RELEASE-NOTES-en RPM-GPG-KEY-oracle TRANS.TBL
    [root@ovs2 xennfs.NnE54I]# find . -name vmlinuz\*
    ./images/pxeboot/vmlinuz
    ./images/xen/vmlinuz
    ./isolinux/vmlinuz
    [root@ovs2 xennfs.NnE54I]#

  • Mounting a dvd on Solaris 10

    I am a linux user, not a Solaris user and I am running solaris 10 on a Blade 100. I want to mount a dvd but am unsure of how to mount it because of the difference between Solaris and Linux command lines. "mount cdrom" does not work. I am sure this is an easy answer to this question but I can't seem to get this DVD mounted.
    Thanks,
    Michael

    Unless you've changed the system's configuration, mounting
    CD/DVD media is supposed to happen automatically, with the
    help of the "vold" daemon.
    The CD/DVD will be mounted somewhere in /cdrom/xxxx with a
    symbolic link /cdrom/cdrom0 pointing to the root directory of the
    media.
    If you've disabled "vold", of if you didn't install it, manual mounting
    works like this:
    1. iostat -En
    This command can be used to print a list of SCSI/ATAPI/USB/
    Firewire disk/cdrom/dvdrom devices. Note the disk id in front
    of the entry, for example "c1t1d0":
    % iostat -En
    c1t1d0           Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
    Vendor: HL-DT-ST Product: DVDRAM GMA-4020B Revision: A105 Serial No:
    Size: 0.00GB <0 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 1 Predictive Failure Analysis: 02. Manually mount the device, using the device id from the above
    iostat command, with slice "s2" appended (on Solaris x86:
    append "p0").
    # mount -F hsfs /dev/dsk/c1t1d0s2 /mnt

  • Roof Mount TV/DVD Issues

    Guys,
    We recently had two roof mount TV/DVD systems installed in our pediatric ambulances.  The problem that we're having is that because it is so bumpy in the back of the amblance, that the screens are dropping down when not in use, and the tabs that are supposed to hold the screens up are snapping off.  Any suggestions on how to secure them without making it look totally ghetto?  We have explored the use of velcro, but are afraid that after much use, they will just start tearing the frames off of the TV. (IE: The velcro is stronger than the plastic). 
    The units are Pyle Audio PLRD175IF, 17" TV/DVD player
    Thanks for any suggestions.

    the screens should have come with a metal brackett for support. these bracketts are the backbone of the screen staying in place. looks like you need to have them secured properly to the top of the vehicle useing some type of speed clips or short bolts with lock washers. i'm not sure what type of screens you have but you should use universal top mount screens.

  • IMac G5 won't mount commercial DVDs

    I have a 1-year old iMac G5 that suddenly stopped mounting commercial DVDs (e.g., movies). DVDs and CDs containing software programs mount fine, as do unformatted DVDs for burning. But not movie DVDs. My software is up to date, including latest security upgrades (so I'm kind of suspecting the latter as a possible cause for the problem). But have others seen this or worked out solutions?

    Mine has done this on occasion.
    After ejecting a few times/restarting, it works.
    I can't get it to do it consistently though so I can't troubleshoot it.

  • MacBook will not mount CDs but will mount & read DVDs

    This MacBook is used mainly for surfing, email and word processing. Very few other programs are installed and/or used. Recently it stopped mounting and reading CD's. It continues to mount & read DVD's. When I insert a CD (commercial or home burned) the drives sounds like it is trying to read it and then after awhile it ejects the CD. I have other Macs & PC's which can read the rejected CDs.
    All software is up-to-date and disk permissions are in good shape. AppleCare had me reset the PRAM. Would appreciate any other steps I can try to fix the situation. In several weeks, I will be traveling to a city with an authorized Apple repair unit where I can have the computer looked at. I'd rather fix it myself if possible

    If your computer is covered by warranty or extended Applecare they will probably replace the drive.
    In many cases, though, these sorts of problems can be simply overcome using a drive cleaning disc.
    Certainly worth a try if you are out of warranty (Apple have said that they don't like cleaning discs in the past so you may not want to use one if you are still under warranty etc. I have personally used cleaning discs for many years in Apple slot load drives without the slightest problem however, and they have instantly "fixed" drives that would otherwise seem to be beyond redemption!).
    Cheers
    Rod

  • Force mount nonexistent dvd drive

    Hello all, So intro: The other day I pop in a dvd backup that has some files I need, now the dvd is not readable, no scratches or anything to the disk read surface. The dvd is just dead.  So what I want to do is to force mount the dvd and make an image and then try and sort through the files if at all possible. What I would like to do is:
    sudo mount -t iso9660 /dev/sr0 /mnt/dvd -o force,ro
    and possibly create an image or what I am most leaning towards is dumping the image to a file and then analyising it later:
    dd if=/dev/sr0 of=/home/x/dvdrec.iso conv=noerror
    but doing so gives me an error
    dd: opening '/dev/sr0': No medium found
    and of course the force mounting results in an error saying no media was detected...
    Is there anyway to trick fstab into thinking there is a medium mounted there (like there is)
    I have searched around the net trying to find some way to recover the files but have had no success. So I was wondering if what I said above would be possible and would work at recovering my files. Any other suggestions on recovering my data? Any feedback is greatly appreciated.

    Nope no error with the drive (at least I dont think so), it reads other dvds perfectly fine, and before it read the dvds that I am trying to get it to read, I always run a data verification check after burning a disk and they always pass, then I try them just to double check.... I havent had a chance to try it on another dvd drive but I have arranged to use my friends computer to see if it works with his computer, if it does then the my drive is gone.... on the other hand if it doesnt work who knows. Another thing is that I have some other dvds from the same set that are perfectly fine, partly corrupt, and fully unreadable. I dont mistreat my dvds and I can see the burnt in data in the disk, but my comp just cant read it. Im at a loss. Possibly defective media? but that wouldnt explain why it worked before....

  • Need drivers, Vista won't mount Leopard DVD

    Somehow Parallels Desktop (or something) hosed the drivers on my BootCamp partition. Result: can't mount DVDs. Since the only solution for restoring the drivers is to insert the Leopard DVD, you can see my problem. I need drivers to mount the DVD and I need to mount the DVD to get the drivers!
    Is there any way out of this vicious circle?

    Use another Windows system to put the Drivers folder from the Leopard CD on a USB or FW storage device and then apply the drivers individually on your BootCamp Vista from the storage device. There is some information about this on page 24 of the BootCamp installation instructions.
    Message was edited by: xnav

  • [SOLVED]Mounting usb drives "not authorized" with thunar-volman (XFCE)

    Hi,
    I'm new to Arch (even though I must be approximately at my 15th try at installing it properly) and I have a problem with thunar-volman.
    Whenever I log in as user, and try to mount a usb drive with thunar, let's say I want to plug a drive labeled Ext3_8Go, I get the same message in a pop-up window : "Failed to mount Ext3_8Go (or anything close, not in English in the text), not authorized (that part is in English)"
    My install is :
    - net install
    - partitions : 9Go for /, no swap, no separate /home
    - packages : base and base-devel. The only modifications in the package list is that I remove ppp, pcmciautils, and xfsprogs.
    - config : at the install stage I only modify rc.conf to change LOCALE and HOSTNAME, and pacman's mirrorlist to allow all French mirrors in addition to the one at the top.
    When the usb installation is over, I run this script :
    "installation_xfce.sh"  (there may be some errors left, I modify this script as I learn) :
    #!/bin/bash
    # expected environment : freshly installed archlinux, login : root.
    echo "Are you connected to internet ? If not, please Ctrl+C and reload this script when connected"
    echo "Otherwise, press ENTER to continue installation"
    read var_dummy
    echo "Creation of the user : please type in your user name :"
    read var_username
    useradd -u 1000 -g users -G audio,lp,storage,optical,video,wheel,games,power,network -d /home/$var_username/ -s /bin/bash -m $var_username
    echo "You will now be asked to create the password for this user:"
    passwd $var_username
    # Add servers for pacman to find packages
    cat >> /etc/pacman.conf << EOF
    [multilib]
    Include = /etc/pacman.d/mirrorlist
    [archlinuxfr]
    Server = http://repo.archlinux.fr/\$arch
    [catalyst]
    Server = http://catalyst.apocalypsus.net/repo/catalyst/\$arch
    EOF
    # Install packages
    pacman -Syyu
    pacman -S acpi acpid alsa-oss alsa-plugins alsa-utils catalyst catalyst-utils cpufrequtils cups dbus gstreamer0.10-base-plugins iptables laptop-mode-tools mesa net-tools netcfg ntp pm-utils rfkill rsync sudo ttf-dejavu vim wireless_tools xf86-input-evdev xorg-server xorg-utils xorg-xinit xorg-xinput yaourt conky gamin gnome-icon-theme gnome-keyring gvfs-afc network-manager-applet networkmanager slim slim-themes archlinux-themes-slim hicolor-icon-theme xfce4 xfce4-goodies
    # If pacman failed, better stop the script here, and wait for a network connection
    if [[ $?!=0 ]]
    then
    echo : failed to install packages - check your network connection, or review script
    exit 1
    fi
    # Fix sound issue
    cat > /home/$var_username/.asoundrc << EOF
    pcm.!default{
    type hw
    card 1
    device 0
    ctl.!default{
    type hw
    card 1
    device 0
    EOF
    chown $var_username:users /home/$var_username/.asoundrc
    # Configure video settings for X to use Catalyst
    if [[ ! -e /etc/X11/xorg.conf.d ]]
    then
    mkdir /etc/X11/xorg.conf.d
    fi
    cat > /etc/X11/xorg.conf.d/20-fglrx.conf << EOF
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    EndSection
    EOF
    sed -e 's/top_left/bottom_right/' -e '/alignment/i\double_buffer yes' -e '/CPU Usage/a\${color lightgrey}Temperatures:' -e '/CPU Usage/a\ CPU:$color ${hwmon 0 temp 1}°C' </etc/conky/conky.conf >/home/$var_username/.conkyrc
    chown $var_username:users /home/$var_username/.conkyrc
    # Install clickpad support
    yaourt -S xf86-input-synaptics-clickpad
    # Add french keyboard to X
    sed '/MatchIsKeyboard/a\\tOption "XkbLayout" "fr"' </etc/X11/xorg.conf.d/10-evdev.conf >/etc/X11/xorg.conf.d/10-evdev.conf.new
    mv -f /etc/X11/xorg.conf.d/10-evdev.conf.new /etc/X11/xorg.conf.d/10-evdev.conf
    # Add new daemons, remove old ones, disable hwclock and remove netfs since I don't use it. add it if you need it
    sed '/DAEMONS=/c\DAEMONS=(!hwclock dbus syslog-ng networkmanager laptop-mode acpid @alsa @cupsd @cpufrequtils ntpd crond)' </etc/rc.conf >/etc/rc.conf.new
    mv -f /etc/rc.conf.new /etc/rc.conf
    # Slim login manager ; change theme
    mv /usr/share/slim/themes/archlinux-darch-grey /tmp/
    mv /usr/share/slim/themes/default /tmp/
    rm -r /usr/share/slim/themes/*
    mv /tmp/archlinux-darch-grey /usr/share/slim/themes
    mv /tmp/default /usr/share/slim/themes
    sed '/^current_theme/c\current_theme archlinux-darch-grey' </etc/slim.conf >/etc/slim.conf
    # XFCE login, and thunar launched as a daemon
    sed '/^# exec/c\' </etc/skel/.xinitrc >/tmp/.xinitrc
    sed '/^# .../c\' </tmp/.xinitrc >/home/$var_username/.xinitrc
    cat >> /home/$var_username/.xinitrc << EOF
    exec ck-launch-session startxfce4
    thunar --daemon &
    EOF
    chown $var_username:users /home/$var_username/.xinitrc
    # Boot to runlevel 5 now, and run slim then
    sed -e 's/id:3/#id:3/' -e 's/#id:5/id:5/' -e 's|x:5:respawn:/usr/bin/xdm|#x:5:respawn:/usr/bin/xdm|' -e 's|#x:5:respawn:/usr/bin/slim|x:5:respawn:/usr/bin/slim|' </etc/inittab >/etc/inittab.new
    mv -f /etc/inittab.new /etc/inittab
    # Add colored prompt to user and root
    sed '/^PS1/c\' </etc/skel/.bashrc >/root/.bashrc
    cat >> /root/.bashrc << EOF
    PS1='\[\e[0;32m\]\u@\h\[\e[m\] \[\e[0;35m\]\w\[\e[m\] \[\e[m\] \[\e[0;32m\]\t -\[\e[m\] \[\e[1;31m\]\$ \[\e[m\] '
    EOF
    cp /root/.bashrc /home/$var_username/.bashrc
    chown $var_username:users /home/$var_username/.bashrc
    # How does one do that automatically ?
    # Manually add user to sudoers
    EDITOR="vim" visudo
    # Reboot, because it's quick and I'm too lazy to learn how to start all the daemons and others.
    reboot
    I can mount as a user, no password asked, with :
    udisks --mount /dev/sdb2
    but the GUI method tells me "not authorized".
    "groups user" outputs :
    lp wheel games network video audio optical storage power users
    the command "ck-list-sessions" outputs :
    Session2:
    unix-user = '1000'
    realname = ''
    seat = 'Seat1'
    session-type = ''
    active = TRUE
    x11-display = ':0.0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2011-08-15T08:56:03.716103Z'
    login-session-id = '1'
    Session1:
    unix-user = '1000'
    realname = ''
    seat = 'Seat2'
    session-type = ''
    active = FALSE
    x11-display = ':0.0'
    x11-display-device = ''
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2011-08-15T08:56:03.573029Z'
    login-session-id = '1'
    For those who don't have time to read the installation script, DBUS is in the DAEMONS list of rc.conf, and .xinitrc launches : exec ck-launch-session startxfce4
    Any idea ?
    Last edited by choubbi (2011-08-15 15:05:04)

    Thanks a lot !
    That worked !
    I stumbled across this part of the wiki several times before, but didn't really understand so I had not tried.
    If anyone's interested in the script, here's the corrected version :
    #!/bin/bash
    # expected environment : freshly installed archlinux, login : root.
    echo "Are you connected to internet ? If not, please Ctrl+C and reload this script when connected"
    echo "Otherwise, press ENTER to continue installation"
    read var_dummy
    echo "Creation of the user : please type in your user name :"
    read var_username
    useradd -u 1000 -g users -G audio,lp,storage,optical,video,wheel,games,power,network -d /home/$var_username/ -s /bin/bash -m $var_username
    echo "You will now be asked to create the password for this user:"
    passwd $var_username
    # Add servers for pacman to find packages
    cat >> /etc/pacman.conf << EOF
    [multilib]
    Include = /etc/pacman.d/mirrorlist
    [archlinuxfr]
    Server = http://repo.archlinux.fr/\$arch
    [catalyst]
    Server = http://catalyst.apocalypsus.net/repo/catalyst/\$arch
    EOF
    # Install packages
    pacman -Syyu
    pacman -S acpi acpid alsa-oss alsa-plugins alsa-utils catalyst catalyst-utils cpufrequtils cups dbus gstreamer0.10-base-plugins iptables laptop-mode-tools mesa net-tools netcfg ntp pm-utils rfkill rsync sudo ttf-dejavu vim wireless_tools xf86-input-evdev xorg-server xorg-utils xorg-xinit xorg-xinput yaourt conky gamin gnome-icon-theme gnome-keyring gvfs-afc network-manager-applet networkmanager slim slim-themes archlinux-themes-slim hicolor-icon-theme xfce4 xfce4-goodies
    # If pacman failed, better stop the script here, and wait for a network connection
    if [[ $?!=0 ]]
    then
    echo : failed to install packages - check your network connection, or review script
    exit 1
    fi
    # Fix sound issue
    cat > /home/$var_username/.asoundrc << EOF
    pcm.!default{
    type hw
    card 1
    device 0
    ctl.!default{
    type hw
    card 1
    device 0
    EOF
    chown $var_username:users /home/$var_username/.asoundrc
    # Configure video settings for X to use Catalyst
    if [[ ! -e /etc/X11/xorg.conf.d ]]
    then
    mkdir /etc/X11/xorg.conf.d
    fi
    cat > /etc/X11/xorg.conf.d/20-fglrx.conf << EOF
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    EndSection
    EOF
    sed -e 's/top_left/bottom_right/' -e '/alignment/i\double_buffer yes' -e '/CPU Usage/a\${color lightgrey}Temperatures:' -e '/CPU Usage/a\ CPU:$color ${hwmon 0 temp 1}°C' </etc/conky/conky.conf >/home/$var_username/.conkyrc
    chown $var_username:users /home/$var_username/.conkyrc
    # Install clickpad support
    yaourt -S xf86-input-synaptics-clickpad
    # Add french keyboard to X
    sed '/MatchIsKeyboard/a\\tOption "XkbLayout" "fr"' </etc/X11/xorg.conf.d/10-evdev.conf >/etc/X11/xorg.conf.d/10-evdev.conf.new
    mv -f /etc/X11/xorg.conf.d/10-evdev.conf.new /etc/X11/xorg.conf.d/10-evdev.conf
    # Add new daemons, remove old ones, disable hwclock and remove netfs since I don't use it. add it if you need it
    sed '/DAEMONS=/c\DAEMONS=(!hwclock dbus syslog-ng networkmanager laptop-mode acpid @alsa @cupsd @cpufrequtils ntpd crond)' </etc/rc.conf >/etc/rc.conf.new
    mv -f /etc/rc.conf.new /etc/rc.conf
    # Slim login manager ; change theme
    mv /usr/share/slim/themes/archlinux-darch-grey /tmp/
    mv /usr/share/slim/themes/default /tmp/
    rm -r /usr/share/slim/themes/*
    mv /tmp/archlinux-darch-grey /usr/share/slim/themes
    mv /tmp/default /usr/share/slim/themes
    sed '/^current_theme/c\current_theme archlinux-darch-grey' </etc/slim.conf >/etc/slim.conf
    # XFCE login, and thunar launched as a daemon (note that the part with 'if [ -d /etc/X11/xinit/xinitrc.d ]" is not present, to avoid mounting problems when logged as regular user)
    cat > /home/$var_username/.xinitrc << EOF
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    exec ck-launch-session startxfce4
    thunar --daemon &
    EOF
    chown $var_username:users /home/$var_username/.xinitrc
    # Boot to runlevel 5 now, and run slim then
    sed -e 's/id:3/#id:3/' -e 's/#id:5/id:5/' -e 's|x:5:respawn:/usr/bin/xdm|#x:5:respawn:/usr/bin/xdm|' -e 's|#x:5:respawn:/usr/bin/slim|x:5:respawn:/usr/bin/slim|' </etc/inittab >/etc/inittab.new
    mv -f /etc/inittab.new /etc/inittab
    # Add colored prompt to user and root
    sed '/^PS1/c\' </etc/skel/.bashrc >/root/.bashrc
    cat >> /root/.bashrc << EOF
    PS1='\[\e[0;32m\]\u@\h\[\e[m\] \[\e[0;35m\]\w\[\e[m\] \[\e[m\] \[\e[0;32m\]\t -\[\e[m\] \[\e[1;31m\]\$ \[\e[m\] '
    EOF
    cp /root/.bashrc /home/$var_username/.bashrc
    chown $var_username:users /home/$var_username/.bashrc
    # How does one do that automatically ?
    # Manually add user to sudoers
    EDITOR="vim" visudo
    # Reboot, because it's quick and I'm too lazy to learn how to start all the daemons and others.
    reboot
    The important part of the script to solve the problem is :
    cat > /home/$var_username/.xinitrc << EOF
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    exec ck-launch-session startxfce4
    thunar --daemon &
    EOF
    chown $var_username:users /home/$var_username/.xinitrc

  • SOLVED: Mounting IDE ZIP Drives, "Special Device hdb4 Does Not Exist"

    I thought I would post a follow-up, since I have finally resolved this long standing issue, which has plagued me since my first days with Linux many years ago.
    As outlined in my original post below, every time I would attempt to access a Zip disk for the first time since boot, Linux (pretty much all distros I have ever tried, with the exception of SuSE 9.3) would fail to mount the disk and report back that "Special device hdb4 does not exist". Of course the "hdb4" part varies from distro to distro and machine to machine, depending on how your Zip disk is connected and how the distro names its disks, but the basic error has been constant. I have always worked around it by redoing the mount command specifying just the device, not the partition, and while that would always fail, it would force the creation of the device /dev/hdb4, and I could carry on. Annoying but effective.
    FINALLY, a long term answer. I got my inspiration from a really snarky post I read in another online forum where someone had posted this very same question (this is a very common problem with no common answer it seems!). The respondant, who completely failed to provide a helpful answer, basically said "listen, the OS is telling you what is wrong - the device hdb4 doesn't exist - so fix it, and all will be just fine". Of course, the respondant didn't even bother to offer a suggestion about HOW to fix it.
    However, therein lies the inspiration for the solution. Indeed they are right, /dev/hdb4 *doesn't* exist, so how to fix that? They had a point. I started researching the mysteries of mknod, a program that can create /dev files, and the even deeper mysteries of Linux device numbers, both major and minor.
    In the end, I found a wonderfully informative document that described the current standard for the device numbering scheme used by mknod, and Linux in general. The key things of interest are this:
    1/ The major number for IDE based drives is 3.
    2/ IDE allows for 64 partitions per device, so the minor numbers are 0-63 for device "a", 64-127 for device "b" and so on. You derive the minor number of interest for your particular device by taking the starting value of the minor number range of interest for your device and adding the partition number to it. So, for example, hdb4 would have a minor number of 64 (the start of the minor number range for device "b") plus 4 (the partition number in "hdb4"), yielding a result of 68.
    3/ The major number for SCSI based drives, or those that your OS treats as SCSI, is 8.
    4/ SCSI allows for 16 partitions per device, so the minor numbers are 0-15 for device "a", 16-31 for device "b" and so on. You derive the minor number of interest for your particular device by taking the starting value of the minor number range of interest for your device and adding the partition number to it. So, for example, sdb4 would have a minor number of 16 (the start of the minor number range for device "b") plus 4 (the partition number in "hdb4"), yielding a result of 20.
    In my case, Arch seems to be treating all of my disk based devices as SCSI, perhaps because I do have a real SCSI interfaced Jaz drive in my machine. So, the Zip disk of interest in my machine is sdc4 (my real SCSI jaz is sda, my Arch root is sdb, and the IDE Zip is sdc). Applying the above, for /dev/sdc4:
    - The major number is 8.
    - The minor number is 32 (start of range for device "c") plus 4 (the partition number) = 36.
    Armed with this knowledge, I su'd to root and entered:
    # mknod /dev/sdc4 b 8 36
    and like magic, there is was, /dev/sdc4. I popped a disk into the drive and my first attempt to access it was greeted with success, not the usual "device does not exist" error! By the way, the "b" in the above command is just part of the mknod syntax, and indicates that I am creating a block device (vs. a character device, or some other type of device - disk drives all seem to be "block" devices for apparent reasons).
    SO, determine your major number by device type (it will usually be 3 or 8), compute your minor number by device letter and partition number, and add a mknod command to your system startup (so you don't have to do it manually every time) and you are done! No more annoying "device does not exist" errors.
    Now for the kicker. It turns out that this information has been available under my nose all along. I just didn't recognize the code. If you do the following:
    # ls -ald /dev/sd*
    Linux obligingly provides you with the major number and the start of the minor number range for your device. Since Linux has always detected the Zip *device* (just not the partition) this is really all you need to know. When I issue the above command, I get an output like:
    brw-rw----  1  root  disk  8,   32   date   time   /dev/sdc
    Guess what, there they are! "8" is the major number of interest, "32" is the start of the minor number range of interest. If I had just recognized that, and known that all I had to do was add the partition number to the minor number to get the magic number to feed into mknod, things would have been easier.
    Sorry for the long post, but like so many things in Linux, the OS doesn't make this easy on the uninitiated. I sincerely hope that this post may help lots of other people to resolve this vexing and longstanding problem.

    Solved!
    See the lengthy response in this post:
    http://bbs.archlinux.org/viewtopic.php?id=36468
    I posted the solution separately, with the most informative title I could come up with, so that others Googling this topic on the web may hopefully easily find it.

  • [Solved] Mounting Partitions from Beginners Guide

    Hi everyone. I've setup Arch before, but I see that the installer has been removed. I had a question on some of the documentation from the Beginners Guide...
    From the section "Prepare the storage drive" it states to setup the partitions like so:
    Name Flags Part Type FS Type [Label] Size (MB)
    sda1 Boot Primary Linux 15440
    sda2 Primary Linux swap / Solaris 1024
    sda3 Primary Linux 133000*
    In the section below it ("Mount the partitions ") it explains to "mount any other separate partition" like so:
    # mkdir /mnt/home
    # mount /dev/sda4 /mnt/home
    # mkdir /mnt/boot
    # mount /dev/sda1 /mnt/boot
    However, I set my partitions up just how it was above, when I put in the syntax "mount /dev/sda4 /mnt/home" I receive an error that sda4 doesn't exist. Using my best judgement I put in "mount /dev/sda3 /mnt/home" as I set my partitions exactly the way from the storage drive section (minus some storage space for sda3). I'd just like to be sure that I set this up right and not doing anything extremely wrong. For some reason, Arch won't boot after I have the system setup in virtualbox, and I'm trying to narrow down the issue.
    Thanks.
    Last edited by Quill (2012-09-01 04:16:22)

    Trilby wrote:
    It says to do that if you have any additional partitions.  You do not.
    Sda3 should not be mounted as home, it should be your root partition right?  You should have already done
    mount /dev/sda3 /mnt
    You should not remount sda3 as something else (in fact I suspect it should give an error).
    That partition scheme does not have a separate home parition.
    Cool, thanks for the info. Yeah, sda3 is set as my root partition. It's solved.

  • Error trying to mount the DVD to a network based ISO image in Windows 2008 Hyper-V RC0

    Greetings,
    When I try to configre the guest OS settings to mount the CD/DVD drive to an ISO image I have setting on a file share, I consistently get an error. The only time I have been able to mount an ISO since upgrading to RC0 (I don't remember if I tested this in the BETA) is when the ISO is locally on the Windows 2008 Hyper-V server.
    To be specific, I get the following error:
    Virtual Machine Connection (title of the window)
    Inserting the disk failed.
    Failed to add device 'Microsoft Virtual CD/DVD disk'.
    User account does not have sufficient privelage to open attachment '\\remoteserver\share\ISONAME.ISO'.
    Error: 'General access denied error'
    'NEWGUESTOSNAME' failed to add device 'Microsoft Virtual CD/DVD Disk'. (VMID 26C8B66F-5D3F-47F9-9D80-474D0F778522)
    'NEWGUESTOSNAME': User Account does not have sufficient privelage to open attachement '\\remoteserver\share\ISONAME.ISO'.
    Error: 'General access denied error' (0x80070005). (VMID 26C8B66F-5D3F-47F9-9D80-474D0F778522)
    I am not sure what credentials it is using. It looks almost like it is using the new computer name as credentials or something like that. The account I am logged in as at the time is a Domain Admin and has access to every server and every share. I can browse to the ISO just fine through the Hyper-V Insert Disk function, it just won't take.
    I have checked the Hyper-V server settings and the Guest OS settings and can't find where to specifcy what account to use to connect to remote ISOs. Anyone have any clue on what I am doing wrong?

    Thanks for the various replies.
    Understood it is an issue with the Hyper-V server computer account getting the files, and not the actual guest OS. At this point I think I will just copy some ISO's to the server. I did note the last time I used a "local" ISO that I had to manually type out the local path to the files on the server, as when I tried to browse to the local server drives through the console I got an error about connecting to the local server (which wasn't really local) through the network drives. I don't remember the exact error, but I know I couldn't get it to point to the ISO on the D:\ drive through the browse feature, but rather I just typed out the path and it was fine. That too seems like a bit of a buy/annoyance as I should be able to browse files local to the Hyper-V server, and not have to type out the path.
    I guess I would ask MSFT to consider changing the behavior of the console just a little before RTM if it is being run remotely against the Hyper-V server, versus locally on it, if the permissions being used to get to the remote files are going to be different depending. I.E. It is not intuitive that the same exact action in the same exact console would behave any differently when the console is run on the Hyper-V server versus remotely against the Hyper-V server. I.E. Add in a pop-up when remotely connected to the Hyper-V server to let the user know that some permissions may not proxy through (or whatever verbiage you want to use).
    This will pop-up more and more as people like me try to deploy Hyper-V on Core servers, and they used Hyper-V on a normal Windows 2008 server previously.
    Thanks!

  • [SOLVED] mount.nfs4: access denied by server

    Hi folks. I seem to be having a bit of a problem getting nfs4 to work. I am trying to mount a share from alpha (my fileserver) onto charlie (my workstation). Both of these are new Arch systems and I haven't had any nfs working yet, although I have with other distros on the same hardware.
    Fileserver (alpha) config:
    # /etc/exports
    /files 192.164.1.0/24(rw,sync,fsid=0,no_subtree_check)
    # /etc/hosts.allow
    sshd: 192.168.1.0/255.255.255.0
    nfsd: 192.168.1.0/255.255.255.0
    rpcbind: 192.168.1.0/255.255.255.0
    mountd: 192.168.1.0/255.255.255.0
    idmapd: 192.168.1.0/255.255.255.0
    statd: 192.168.1.0/255.255.255.0
    [General]
    Verbosity = 3
    Pipefs-Directory = /var/lib/nfs/rpc_pipefs
    Domain = localdomain
    [Mapping]
    Nobody-User = nobody
    Nobody-Group = nobody
    [Translation]
    Method = nsswitch
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 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/sda1 /boot ext3 defaults 0 1
    /dev/sda2 swap swap defaults 0 0
    /dev/sda5 / ext3 defaults 0 1
    /dev/sda6 /var ext3 defaults 0 1
    /dev/sda7 /home ext3 defaults 0 1
    /dev/sda8 /files ext3 defaults 0 1
    rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs defaults 0 0
    nfsd /proc/fs/nfsd nfsd rw,nodev,noexec,nosuid 0 0
    DAEMONS=(syslog-ng network netfs rpcbind nfs-common nfs-server hal @alsa @crond @openntpd @sshd)
    [root@alpha ~]# df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda5 19228276 879492 17372036 5% /
    none 507792 140 507652 1% /dev
    none 507792 0 507792 0% /dev/shm
    /dev/sda1 93307 15887 72603 18% /boot
    /dev/sda6 19228276 372632 17878896 3% /var
    /dev/sda7 19228276 176224 18075304 1% /home
    /dev/sda8 902688436 204872 856629640 1% /files
    [root@alpha ~]#
    Workstation (charlie) config:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 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
    UUID=437982b2-5c84-4f53-954d-cf43f8b4e707 / ext3 defaults 0 1
    UUID=97d79d76-357a-4f4e-8513-f181bff6af62 /boot ext3 defaults 0 1
    UUID=d8525095-9b97-4439-932f-8f4e0236cce1 /home ext3 defaults 0 1
    UUID=ffba933b-af93-407c-b1b8-69d1cc5be146 swap swap defaults 0 0
    rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs defaults 0 0
    alpha:/ /files nfs4 defaults 0 0
    [General]
    Verbosity = 3
    Pipefs-Directory = /var/lib/nfs/rpc_pipefs
    Domain = localdomain
    [Mapping]
    Nobody-User = nobody
    Nobody-Group = nobody
    [Translation]
    Method = nsswitch
    DAEMONS=(syslog-ng network crond alsa hal fam rpcbind nfs-common netfs)
    [root@charlie ~]# mount -a
    mount.nfs4: access denied by server while mounting alpha:/
    [root@charlie ~]#
    This happens even after both systems are rebooted. Can anyone spot what I am missing?
    Thanks for looking.
    Last edited by dgregory46 (2009-10-21 01:04:09)

    Now I really feel stupid. A little proofreading would have saved me a big headache. In /etc/exports I was exporting to 192.164.1.0/24 while my network is the more standard 192.168.1.0/24.
    It works fine now, although I did take phaul's suggestion and added my main share "inside" the nfs4 root.

Maybe you are looking for

  • SkillBuilders Modal With Chart

    Using Apex 4.2 I am trying to open an interactive report in a modal window by clicking a bar in a chart. I am trying to use the Skill Builders plugin, but not getting very far. Has anybody got an example of how to do this Thanks in advance Gus

  • CS6 Crashed Windows File Explorer when loading Actions

    Had a Tif file open and was trying to load an action set saved from CS5.  The Actions File Open dialog box opened then crashed the Windows Explorer (not internet Explorer) and allowed me to cancel the Adobe Actions Open dialog when the explorer resta

  • Unable to add album artwork to iTunes

    Try as I might, I'm unable to add album artwork to an album that I have in iTunes. I've bought up the Info dialog for the album by either command + I or from the context menu to get the info for the entire album - and then I've tried dragging the alb

  • Changing skin tones with adjustment layer fails

    Hi, I am running PS CC 2014 and all I want to do is to adjust a skin tone to match it to the rest of the bodys skin color. I have watched some videos on YouTube but my PS doesnt seem to work that way and I wonder why. My workflow: Copy background lay

  • My mails got lost , how do i recover them

    my mails and accounts have lost , is there any way i can recover as i have not taken backup .....