Mount Fat16 [solved]

What is the command for mounting Fat16 system???
Caurse I have to specify the fs, but nothing seems to accept it?
Mount -t msdos /dev/??????

dosfstools is the name of the package, so just install it. Then just retry mounting the disk/partition.

Similar Messages

  • USB Auto-mounting Woes [SOLVED]

    Hi,
    I've been trying to get my USB sticks to auto-mount and grant all users permission to mount/unmount them.
    To achieve that I initially added the following to my sudoers using visudo:
    %wheel ALL=NOPASSWD: /bin/mount
    %wheel ALL=NOPASSWD: /bin/umount
    That however didn't solve my inability to (un)mount drives in PCMan FM.. so I headed towards the wiki. The wiki stated the following:
    You can easily automount and eject removable devices with the combination of pmount, udisks2 and spacefm. Note you have to run spacefm in daemon mode with spacefm -d & in your startup scripts, ~/.xinitrc or ~/.xsession, to get automounting.
    I wasn't too fussed about having to use spacefm and everything seemed to work just fine.. until I tried format a USB stick using gparted. Gparted fails because because seemingly half way through the formatting procedure the drive is mounted (my suspicion is that it's spacefm).
    mkdosfs: /dev/sdb1 contains a mounted file system.
    If i unmount and format manually using the CLI it works just fine.. but I quite like gparted
    I tried removing
    spacefm -d
    from my .xinitrc and that actually stops openbox from starting up. Uninstalling (and later re-installing when it didn't help) pmount didn't help either, spacefm just auto-mounts in a strange 'run' way..
    So now I'm stuck, anyone experienced similar issues with gparted and spacefm?
    Last edited by omgitsaheadcrab (2012-06-22 13:27:07)

    ck-list-sessions shows an active consokekit session, so that should be fine?
    Session1:
    unix-user = '1000'
    seat = 'Seat1'
    session-type = 'x11'
    active = TRUE
    x11-display = ':0.0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2012-06-22T12:24:47.734505Z'
    login-session-id = '3'
    The gparted error log is as follows:
    GParted 0.12.1
    Libparted 3.1
    Delete /dev/sdb1 (fat32, 7.37 GiB) from /dev/sdb 00:00:01 ( SUCCESS )
    calibrate /dev/sdb1 00:00:00 ( SUCCESS )
    path: /dev/sdb1
    start: 2048
    end: 15466495
    size: 15464448 (7.37 GiB)
    delete partition 00:00:01 ( SUCCESS )
    ========================================
    Create Primary Partition #1 (fat32, 7.37 GiB) on /dev/sdb 00:00:01 ( ERROR )
    create empty partition 00:00:00 ( SUCCESS )
    path: /dev/sdb1
    start: 2048
    end: 15466495
    size: 15464448 (7.37 GiB)
    set partition type on /dev/sdb1 00:00:01 ( SUCCESS )
    new partition type: fat32
    create new fat32 file system 00:00:00 ( ERROR )
    mkdosfs -F32 -v -n "PATRIOT" /dev/sdb1
    mkdosfs 3.0.12 (29 Oct 2011)
    mkdosfs: /dev/sdb1 contains a mounted file system.
    ========================================
    I still can't help but feel it's spacefm doing something funny (automounting when it shouldn't)
    Last edited by omgitsaheadcrab (2012-06-22 12:31:36)

  • Strange USB mount error: Solved

    when I plug in my SD card reader I get the following message.
    It works as root and the last time I tried it worked as user.
    Using KDE and testing.
    solved by adding my user to the storage group 
    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 did a more careful forum search.
    :oops:

    ataraxia wrote:
    You have no swap configured? Konqueror and Firefox are both huge memory hogs. You could easily use all your memory doing ordinary things (especially if you use KDE or other large things).
    Configure some swap. If you have no free partitions, but a little free space, you can swap to a file: http://www.netadmintools.com/art1.html I suggest at least 1 GB of swap.
    a was forgoten activate the swap .
    1 0x00 1 1 0 0x83 254 63 1023 63 20000862
    2 0x00 254 63 1023 0x83 254 63 1023 20000925 80003700
    3 0x00 254 63 1023 0x82 254 63 1023 100004625 996030 << that is the swap
    4 0x00 254 63 1023 0x83 254 63 1023 101000655 524136690
    thankz
    PD: sorry for my english

  • Confusion over removable drive mounts? [Solved]

    I've installed Arch with the XFCE DE and i'm more then pleased with it! :-D
    However, i'm baffled by where my mounts are located? I have nothing in /mnt/ or /media/, which is where i would usually start looking for my removable drives.
    I followed the 'beginners guide' to the letter, i'm assuming things have changed somewhat.
    #!/bin/bash
    # /etc/rc.local: Local multi-user startup script.
    # create optical drive symlinks
    ln -s /dev/sr0 /dev/cdrom
    ln -s /dev/sr0 /dev/cdrw
    ln -s /dev/sr0 /dev/dvd
    ln -s /dev/sr0 /dev/dvdrw
    This is the section that is new to me, i'm just trying to find out where i can navigate to in the CLI to my removable media?
    I have managed to get XFCE to mount everything after following the XFCE wiki.
    Last edited by ashlee84 (2011-09-19 17:15:39)

    Arch specific cd symlinks are now no longer created.
    On 2011-05-19 udev 169-1 removed cdsymlinks.sh (among other things)
    http://projects.archlinux.org/svntogit/ … 60ccd3d56e
    You need to mount your optical discs somewhere (unless they're AudioCds or blank discs) so you go to the mounpoint of your choice. The symlinks allow you to use other device names, not just /dev/sr0, e.g. both
    mount -o ro /dev/sr0 /media/cd
    mount -o ro /dev/cdrom /media/cd
    should work. Now just
    cd /media/cd/
    Last edited by karol (2011-09-19 16:57:48)

  • Mount tmpfs [solved]

    added in /etc/fstab:
    none /tmp tmpfs nodev,nosuid,noexec,nodiratime,size=128M 0 0
    then
    # mount -a
    and
    $ mount | grep /tmp
    none on /tmp type tmpfs (rw,noexec,nosuid,nodev,nodiratime,size=128M)
    but i'm not sure, how i can test it? if think it doesn't work.
    i just open mp3 file in firefox to download, - it saved in /tmp, but no see changes in memory ($ htop, $ free)
    edit:
    oh, sorry. i just downloaded file bigger than 128mb, and firefox give error.
    it works.
    Last edited by Pooh-Bah (2011-07-29 12:14:32)

    Have you tried mount -o remount /tmp ?

  • Vfat partition mount issue [Solved]

    I have two fat32 partitions (/dev/sda5 and /dev/sda6) that I cannot seem to mount automatically on bootup
    The error given is "mount point does not exist"
    However the directories that they mount into do exist - running "mount /dev/sda5" works fine once I am logged in
    This mounts them into the correct folders
    my fstab is:
    # /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=4708-CDB1 /mnt/documents vfat defaults 0 0
    #UUID=486B-CDCA /mnt/media vfat defaults 0 0
    /dev/sda5 /home/media vfat user,rw,umask=000 0 0
    /dev/sda6 /home/documents vfat user,rw,umask=000 0 0
    /dev/sda11 /usr ext4 defaults 0 1
    UUID=6adfcc0e-6b08-49aa-9e75-234f45695ca3 /home ext4 defaults 0 1
    UUID=6e604f97-451c-45ed-b761-75242e4df880 swap swap defaults 0 0
    UUID=b76b2dfe-a561-4e15-8209-cc3e56b2087e / ext4 defaults 0 1
    The three file system checks happen ok, but then the errors appear about the non-existant mount points
    As you can see from my fstab I have tried mounting them into /mnt/documents etc as well, which also returns the errors
    I would be prefer a nice clean fix but would be happy with a script that ran on login etc to run "mount /dev/sda5" but dont know how to do that or where to put it
    Thanks
    Richard
    Last edited by rgeo (2009-03-23 15:51:17)

    rgeo,
    probably /home is not yet mounted when the system trys to mount /dev/sda5.
    I suppose that mounting order in /etc/fstab matters, even though I am not sure.
    That would not explain why mounting in /mnt failed, if the directory documents existed.
    You can always put the line 'mount /dev/sda5' on /etc/rc.local that gets executed before login.
    Mektub

  • Quick mounting issue {solved}

    I'm trying to repair my system (pacman updated libreadline without bash and I didn't think to stop it) all the forum posts say to mount to /mnt and then use the live CD to get your network and mirror list up, but I can't mount my /var partition and pacman keep breaking and claiming that it can't fint mnt/var when I try to update. I formatted according to the beginners guide so my /var is ReiserFS format and the /home and /root are both ext3. /home and / both mount happily on /mnt but /var refuses to mount and the command mount gives me "unknown filesystem type "ReiserFS"". I've tried various abbreviations but I couldn't get it to mount and my quick search didn't turn up a post about how to mount ReiserFS format, mostly threads about which filesystem to choose. I assume I just need to use the right parameters to get mount to recognize the partition.
    so... anyone know the parameter for ReiserFS?
    Last edited by blackfedora (2009-08-14 19:00:08)

    Thanks for replying, next time i break the system I'll give that a try. I decided to just to a fresh install preserving /home. About half way through installation I realized the problem was probably that i had been capitalizing ReiserFS. Sure enough, when I finished getting everything set up I checked and mounting worked when I used reiserfs as the filesystem type parameter.

  • [Solved] Some problems.. (cron, sudo, mount, mpd)

    Hello all, glad to be back with archlinux again :)
    A few errors I encountered though that I would like some help with:
    I have this script here:
    $ ls /etc/cron.hourly/
    totalt 4,0K
    -rw-r--r-- 1 root root 34 2 dec 03.44 pacman.hourly.sh
    $ cat /etc/cron.hourly/pacman.hourly.sh
    #!/bin/bash
    pacman -Sy
    return 0;
    Cron can't run it, errors from the log:
    30-Dec-2007 00:02 initgroups failed: root Operation not permittedChangeUser failed (root): /usr/sbin/run-cron /etc/cron.daily
    30-Dec-2007 00:02 FILE /var/spool/cron/root USER root pid 23281 cmd /usr/sbin/run-cron /etc/cron.daily
    30-Dec-2007 00:22 initgroups failed: root Operation not permittedChangeUser failed (root): /usr/sbin/run-cron /etc/cron.weekly
    30-Dec-2007 00:22 FILE /var/spool/cron/root USER root pid 10195 cmd /usr/sbin/run-cron /etc/cron.weekly
    30-Dec-2007 01:01 initgroups failed: root Operation not permittedChangeUser failed (root): /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 01:01 FILE /var/spool/cron/root USER root pid 15952 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 02:01 initgroups failed: root Operation not permittedChangeUser failed (root): /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 02:01 FILE /var/spool/cron/root USER root pid 9428 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 02:54 /usr/sbin/crond V3.2 dillon, started
    30-Dec-2007 03:01 FILE /var/spool/cron/root USER root pid 11302 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 04:01 FILE /var/spool/cron/root USER root pid 7751 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 05:01 FILE /var/spool/cron/root USER root pid 16539 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 06:01 FILE /var/spool/cron/root USER root pid 7280 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 07:01 FILE /var/spool/cron/root USER root pid 26785 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 08:01 FILE /var/spool/cron/root USER root pid 18862 cmd /usr/sbin/run-cron /etc/cron.hourly
    30-Dec-2007 09:01 FILE /var/spool/cron/root USER root pid 6531 cmd /usr/sbin/run-cron /etc/cron.hourly
    hm, apparently it's working now? Strange.
    ok, problem number 2.
    I like to mount my smb shares from fstab.
    //Goamania.se/Muzax /mnt/Muzax smbfs credentials=/home/willie/.smbpassword,uid=1000,gid=1000,noauto 0 0
    /home/willie/.smbpassword
    $ ls /home/willie/.smbpassword
    -rw------- 1 root root 30 26 dec 04.06 /home/willie/.smbpassword
    $ sudo cat /home/willie/.smbpassword
    user=someuser
    password=somepass
    If I sudo mount as a user I get the following error:
    $ sudo mount /mnt/Muzax
    1601: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
    SMB connection failed
    But no problem mounting as root, or unmounting as user with sudo.
    /etc/sudoers:
    $ sudo cat /etc/sudoers
    # sudoers file.
    # This file MUST be edited with the 'visudo' command as root.
    # Failure to use 'visudo' may result in syntax or file permission errors
    # that prevent sudo from running.
    # See the sudoers man page for the details on how to write a sudoers file.
    # Host alias specification
    # User alias specification
    # Cmnd alias specification
    # Defaults specification
    # Runas alias specification
    # User privilege specification
    root ALL=(ALL) SETENV: ALL
    willie ALL=(ALL) SETENV: ALL
    # Uncomment to allow people in group wheel to run all commands
    # and set environment variables.
    # %wheel ALL=(ALL) SETENV: ALL
    # Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: SETENV: ALL
    # Samples
    # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
    # %users localhost=/sbin/shutdown -h now
    Oh, and a last question:
    Is there someone who knows if there is a way to get mpd to play alac (apple lossless) files? Faad2 doesn't seem to support alac. :/
    Last edited by WiLLiE (2008-01-03 23:21:04)

    byte wrote:/usr/sbin/run-cron expects executable (+x) files in /etc/cron.*
    Yeah, I missed that when posting the question. Seems to work now.
    Still have the sudo + mounting problem though. (I'm forced to su to root to mount)
    Edit:
    Solved. Me being stupid, had user= in my credentials file (but it is the same credentials file i've used like a year on other dists)
    Last edited by WiLLiE (2008-01-03 23:19:51)

  • [SOLVED, kinda] Extremely weird ntfs issue

    Here's the problem: I have an NTFS partition where I keep some video files. Browsing that partition in Windows, I can see and access all the files. When I mount it in Linux, however, most files are missing.
    Any ideas?
    Last edited by dcc24 (2010-07-25 18:40:54)

    Umm... I think I solved this, kinda.
    First I tried to unmount the disk, but it failed with:
    ~ sudo umount /dev/sda1
    umount: /dev/sda1: device is busy
    So, I tried to find what is keeping it busy:
    fuser -m /dev/sda1
    And it said "/bin/bash" was responsible! Weird, but I closed all my terminals, started urxvt and now I could umount!
    At this point mounting manually solved all my problems. I can access the disk with its full content.

  • Hard Drive not showing in Airport Extreme

    i am using windows 7 ultimate 64 bit operating system
    I have the hard drive showing in the Airport Utility but can't access the files
    Now i have tried all of this from the apple website with no luck, am i missing something here i have read that it only supports fat32 operating systems which the hard drive is but struggling to connect to it.
    Any advice is appreciated
    Automatically mounting hard disks
    From the main window of AirPort Disk Utility enable "Show AirPort Disks in the menu bar".
    Enter the username and password required to access the AirPort Disk(s).
    Manually mounting hard disks using the AirPort Disk menu bar item
    Click the AirPort Disk menu bar icon () and select the Base Station with desired USB hard drive.
    Select the desired hard disk(s) (AirPort Disk).
    Enter the username and password required to access the AirPort Disk(s).
    Manually mounting Mac OS Extended (HFS+) volumes
    From the Finder's Go menu choose Connect to Server.
    Enter the AirPort Extreme Base Station's LAN IP address (by default 10.0.1.1).
    Enter the username and password required to access the AirPort Disk(s).
    Select the desired AirPort Disk(s) from the available Volumes.
    Manually mounting FAT16/FAT32 volumes
    From the Finder's Go menu choose Connect to Server.
    Enter the AirPort Extreme Base Station's LAN IP address preceded by smb:// (for example, smb://10.0.1.1 )
    Enter the username and password required to access the AirPort Disk(s). Leave the Workgroup field empty unless you have assigned one in AirPort Utility.
    Select the desired AirPort Disk from the available CIFS (Common Internet File System) volumes

    You can usually enter anything you want for the user name, but the password will need to be the device password for the AirPort Extreme....(not the wireless network password).

  • How can I access USB drive on AirPort Extreme with iPad

    Good day. I recently purchased an AirPort Extreme, and am very pleased. I thought I would take advantage of the ability to store files and videos of my children on my USB drive on the router. Installation was flawless, however, i cannot access the USB drive with my IPad. I have seen several postings about this, am i correct in reading that this is not possible without a 3rd party app? If that is the case, could someone point me in the right direction?

    Have you tried this? (And is the Airport new enough that you can call Apple?)
    *Manually mounting Mac OS Extended (HFS+) volumes*
    *From the Finder's Go menu choose Connect to Server.*
    *Enter the AirPort Extreme Base Station's LAN IP address (by default 10.0.1.1).*
    *Enter the username and password required to access the AirPort Disk(s).*
    *Select the desired AirPort Disk(s) from the available Volumes.*
    *Manually mounting FAT16/FAT32 volumes*
    *From the Finder's Go menu choose Connect to Server.*
    *Enter the AirPort Extreme Base Station's LAN IP address preceded by smb:// (for example, smb://10.0.1.1 )*
    *Enter the username and password required to access the AirPort Disk(s). Leave the Workgroup field empty unless you have assigned one in AirPort Utility.*
    *Select the desired AirPort Disk from the available CIFS (Common Internet File System) volumes*

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

  • I Solved Can't Mount Error/Flashing Orange Light/Not recognized by iTunes!

    ++IMPORTANT! PLEASE READ THIS ENTIRE POST!++
    I solved all of my Ipod shuffle issues and just uploaded 5 albums worth of songs with no problems! Now I am listening to Black Eyed Peas and it might me my imagination, but I think the sound is vastly improved from before. It took me 3 flippin' days to troubleshoot this and solve the problem, probably 6 hours worth of my time. Apple: You guys need to program your hardware to handle anti-virus software, Window's security updates, etc. Too many software conflicts!
    Let me first tell you what happened that caused my Ipod to "die". Simply, I built a brand new custom PC to replace my Dell Inspiron laptop. I purchased my shuffle about six months ago and it worked like a charm until I tried plugging it into my new computer's usb port. Then all **** broke loose and the Ipod would not engage. I went here for support and tried updating it with the current updater (1/10/2006 version) to no avail. I uninstalled all the drivers, wiped everything off my Ipod manually, deleted files, made back-up copies of my library, etc. I wiped everything off my system that had anything to do with an iPod. Nothing worked.
    THEN, I came across this article posted on Apple. Hopefully it is still up:
    http://docs.info.apple.com/article/html?artnum=93716
    Follow each and every step. The steps are laid out well, and nothing was missing in terms of a hidden step. If you follow it to the T, you should be able to restore your Ipod to like-new working order.
    Some key things to remember:
    1. Make sure you empty your recycle bin after deleting all of the iTunes and iPod related files. Then restart your system. Your system caches copies of files associated with iPod. When it see's another version, the two start conflicting with one another, and that causes problems. Deleting your Temp folder is also critical, and this is outlined in one of the steps in the article above.
    2. It is VERY IMPORTANT that you exit out of any anti-virus program you have running, including the firewall while you download AND install the iTunes and iPod software. Install the iTunes software first, restart your computer, then install the iPod updater software, Restart again. Do not dismiss this. It is probably the reason why most people's iPod's won't mount and they simple fail to recognize their system even has a firewall running (even Window's firewall).
    3. Be patient and follow the instructions. There are five printed pages in this article and it takes about an hour to go through each step, uninstall software, redownload software, install it, etc. After spending 6 hours troubleshooting this, an hour of actually making progress should be easy!
    I hope this helps. If you cannot mount your iPod, don't throw it away or go out and buy a new one. I am confident that you will be able to fix your problems and be listening to music on your shuffle soon!
    kPod78
    Custom PC   Windows XP Pro  

    I tried all this last week, but without success! A whole day, I was looking for a solution, but nothing worked. At least I tried to formate my iPod at another Laptop, but it doesn´t work. (Two weeks ago, I just heard a book from audible. After a short break, the iPod didn´t work no more.)Nice to hear, that you have been succesfull.
    alrein
    Laptop Benq   Windows XP  

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

Maybe you are looking for

  • Startup screen resolution low

    I noticed that the startup screen (the one with the grey apple) is being displayed at a lower resolution. I can tell because it looks all fuzzy on my LCD which has a native resolution of 1280X1024. Also, when I'm at the boot camp selection menu the d

  • WebDynpro call WS problem (possibly bug). Looking for a way to get around.

    Hi all, I have Web Service which I want to call from Web Dynpro application. Creating WD model I noticed that some of the Web Service messages have name <b>return</b>. So WD model generates nice <b>private java.util.List return;</b> code which would

  • Internal drives locked - "chflags: command not found"

    My Intel MacPro has always had occasional issues with ownership and permissions ever since migrating my home folder from a PowerPC. As this is no longer my primary machine, I unwisely decided to do some tidying up. I have drives in 3 bays and they ar

  • Equation solving

    I would like to plot the following equation I=exp(x-I) Is there any easy way to solve for 'I' having a given x?

  • ITunes 6.0 - problem with QuickTime 7

    I am also having a problem launching iTunes since I tried to upgrade to version 6 - I get the error stating I need the latest QuickTime version. I have uninstalled, reinstalled, several times with no success. I tried to download the standalone versio