Is my fstab okay?

Don't know but can sombody have a look at my fstab to see if its okay. I have switched to udev. Thanks:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
# /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
tmpfs                  /tmp          tmpfs     defaults            0      0
usbfs                  /proc/bus/usb usbfs  defaults            0      0
/dev/cdroms/cdrom0     /mnt/cd   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      user,noauto             0      0
/dev/discs/disc1/part2 swap swap defaults 0 0
/dev/discs/disc1/part1 / ext3 defaults 0 1
/dev/discs/disc1/part3 /home reiserfs defaults 0 0
/dev/discs/disc1/part4 /windows vfat defaults 0 0
/dev/hdd                /media/cdrecorder       auto    user,exec,noauto,comment=managed 0 0
/dev/hdc                /media/cdrom            auto    user,exec,noauto,comment=managed 0 0
/dev/fd0                /media/floppy           auto    user,exec,noauto,comment=managed 0 0

Below is my current fstab and it works fine:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
# /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
tmpfs                  /tmp          tmpfs     defaults            0      0
usbfs                  /proc/bus/usb usbfs  defaults            0      0
/dev/hdc             /mnt/cd   iso9660   ro,user,noauto,unhide   0      0
/dev/hdd             /mnt/dvd  udf       ro,user,noauto,unhide   0      0
/dev/fd0             /mnt/fl   vfat      user,noauto             0      0
/dev/hdb2 swap swap defaults 0 0
/dev/hdb1 / ext3 defaults 0 1
/dev/hdb3 /home reiserfs defaults 0 0
/dev/hdb4 /windows vfat defaults 0 0
How ever when i try to play dvd i get the message:
Totem could not play 'dvd://'.
No URI handler implemented for "dvd://"
Help me out please.

Similar Messages

  • Migration Questions! (fstab, bootloader,networking)

    Background
    My current laptop is a Toshiba R700, and it's on its way out unfortunately. I've been using Arch on it for a while, but I still feel like this is a beginner question.
    I am planning to just swap the hard drives since I cheaped out and ordered one without a drive. I think I have everything in order, but I have never done this before so I want to run my plan by you guys, and I have some questions along the way.
    I am replacing it with a Clevo W230SS.
    R700:
    -Intel graphics
    -Intel wireless
    Clevo:
    -Nvidia+Intel graphics
    -Bigfoot/Killer Wireless (supported in ath9k)
    I have read https://wiki.archlinux.org/index.php/mi … w_hardware but it's a little unclear.
    fstab
    After converting to UUID, my current fstab is:
    UUID=f5091d78-6070-4152-8610-2f8b07ca1700 / ext4 rw,relatime,discard 0 1
    UUID=2057a94a-a8aa-4df5-ad51-cef18bb1b0ef none swap defaults,discard 0 0
    So that part should be fine?
    Bootloader
    Next, I need to configure the bootloader. I can disable UEFI on my new system. My current bootloader is syslinux. Since my fstab is now UIID, does that mean I don't need to make any bootloader changes?
    Regenerate kernel image
    I have no idea how I would do this without booting first. Does this mean I can't just boot my old kernel image?
    Graphics Drivers
    Since both systems have intel graphics, is it okay to leave this alone for now, and set up bumblebee and nvidia drivers later?
    Network
    I am currently using an intel wireless card, but I will switch to Bigfoot Killer Wireless-N, which worried me at first, but supposedly it's covered under the ath9k driver.
    My concern is I don't see ath9k in the /usr/lib/firmware directory, I only see ath6k. Am I missing a package?
    http://wireless.kernel.org/en/users/Drivers/ath9k says:
    To enable ath9k, you must first enable mac80211 through make menuconfig when compiling your kernel. If you do not know what this means then please learn to compile kernels or rely on your Linux distribution's kernel.
    But then, I am able to modprobe ath9k without any issue, so does that mean udev will be able to find it? Or do I need to add it manually to /etc/modules-load.d/? I think it loads because when I run lsmod after loading it I get:
    ath9k 94641 0
    ath9k_common 1906 1 ath9k
    ath9k_hw 396294 2 ath9k_common,ath9k
    ath 19419 3 ath9k_common,ath9k,ath9k_hw
    mac80211 510355 2 ath9k,iwldvm
    cfg80211 459335 5 ath,iwlwifi,ath9k,mac80211,iwldvm
    led_class 3611 4 ath9k,toshiba_acpi,sdhci,iwldvm
    Is this all?
    Thank you everyone!

    Well, I would suggest you just try it.  If it does not work, you can go in through a Chroot environment and fix it.

  • [SOLVED] Systemd-fstab-generator: Out of memory...

    Hello using multilib lib32-systemd 208-1 and systemd208-1...  I have a problem where I will boot and it hangs at mounting drives:
    systemd-fstab-generator[135]: Out of Memory.
    systemd[1]:  /usr/lib/systemd/system-generators/systemd-fstab-generator exited with exit status 1. 
    I have chrooted in and upgrade stuff and modified my fstab and grub config stuff a bit since I was getting the /root read only problem..  (changed to rw) and it works... However I cannot seem to find where this problem is coming from and the only thing that I can think is that systemd cannot parse /etc/fstab correctly..  My fstab has labels like:  Label=/home, Label=/, Label=/var, Label=/boot, etc...  it was fine till a couple days ago...  Using kernel 3.11.3 x86_64...
    Last edited by adramalech (2013-10-06 20:50:20)

    Okay so here is my fstab:
    tmpfs /dev/shm tmpfs defaults,noatime 0 0
    none /tmp tmpfs defaults,noatimenodev,nosuid,mode=1777 0 0
    /dev/sdd2 none swap sw 0 0
    proc /proc proc nodev,noexec,nosuid 0 0
    # /dev/sdc2 UUID=0cf15f7d-a6e0-4b4b-8ca0-e3fa32ca79f5
    LABEL=/ / ext4 errors=remount-ro,defaults,rw,discard,noatime,data=ordered 0 1
    # /dev/sdc1 UUID=22cee2cf-55fa-4721-b3da-68191c477643
    LABEL=/boot /boot ext2 defaults 0 0
    # /dev/sdc3 UUID=79bcca95-af9a-4f9f-99ab-78020a3960da
    LABEL=/home /home ext4 errors=remount-ro,defaults,rw,noatime,discard,data=ordered 0 1
    /dev/sdd3 /var ext4 errors=remount-ro,defaults,rw,relatime,data=ordered 0 2
    LABEL=Storage /media/Storage ext4 errors=remount-ro,defaults,rw,relatime,data=ordered 0 2
    ***EDIT#1***
    Storage is a WD 2TB Caviar green, same with /var and swap,  /boot, /home, / are on an M4 128GB SSD, and the rest are just stuff put in tmpfs and proc like normal...  Tried keeping the heavily read/write data off of the ssd to conservative with writes
    I am wondering if I can not just update my damn Labels in fstab and through gparted and call it a day...
    ***EDIT#2***
    Okay so I only went through and thought to update packages that needed updating since that might have fixed the problem... I saw an update for lib32-systemd 208-1 and some other non-essentials stuff so updated rebooted and still same problem     I have used this fstab for a considerable amount of years using arch and then back using gentoo for a couple years with no problems... Wondering if now it is being picky with labels...
    Last edited by adramalech (2013-10-06 19:19:49)

  • Anyone know how to enable windows_names option in ntfs-3g (NO FSTAB!!)

    Hey ho, I just found out about ntfs-3g's windows_names option, which prevents ntfs-3g creating files with names that the windows don't like (which should be default, of course).  Anyway, anyone know how I can enable this option without using fstab, a file which causes me to develop a rash all over my body just thinking about it?
    Cheers!

    Oh...(goes off to learn in-depth workings of how disk mounting is handled in linux...)
    Okay, here's what I learned, maybe:
    (i) Devices in Linux used to  be managed by HAL, which is now dead (or at least, everyone seems to want it dead)
    (ii)  HAL is now superceded by DeviceKit, a supposedly better device manager.  It had something called devicekit-disks (which is now called udisks)
    (iii) UDev is, uh, also a device manager...it probably handles other stuff than udisks.  Or maybe udisks is part of a udev "package" or something?
    (iv) Pacman tells me I have both udev and udisks installed.
    (v) I have not the slightest clue, really, how disks are mounted on my computer.
    (vi) Still less do I have any idea how to achieve what I want without using fstab.
    (vii) I think I'll use fstab...
    Last edited by darkbeanies (2011-07-29 12:47:26)

  • My safari is not working. Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen stay

    . Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen and stays like that.

    If Safari crashes on launch and you don't have another web browser, you should be able to launch Safari by starting up in safe mode.
    You may have installed the "Genieo" or "InstallMac" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the linked support article, you may also need to remove this file in the same way:
    ~/Library/LaunchAgents/com.genieo.completer.ltvbit.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those you find, remove them as well.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those.
    After removing the malware, remember to reset your home page in all the web browsers affected, if it was changed.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    Make sure you don't repeat the mistake that led you to install the malware. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • When I click on any of my movie or TV shows in Itunes I immediately get an error message that says Itunes has stopped working and closes the program. I can sync the movies and shows to my phone okay but I can't watch on Itunes. Can anyone help?

    When I click on any of my movie or TV shows in Itunes I immediately get an error message that says Itunes has stopped working and closes the program. I can sync the movies and shows to my phone okay but I can't watch on Itunes. Can anyone help?

    Let's try the following user tip with that one:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

  • Preventing disabling of check box - item okay in MIGO

    Dear all,
    In the MIGO transaction - during goods receipt for subcontractor material, when the item (incoming) is checked as item okay - automatically the child material (Material sent to subcontractor) is also activated thereby to enable 543 movement.
    Unfortunately some of the users are disabling the check box (for the material sent to the subcontractor). This prevents depletion of stock from the subcontractor but inflates the stock of the incoming material.
    Is there any way - either by authorisation check to prevent users disabling the check box or other methods?
    Experts suggestion is required in this regard.
    Thanks in advance.
    Regards,
    M.M

    Hi Magesh,
    it is possible. use Badi enhancement
    MB_MIGO_BADI goto
    IF_EX_MB_MIGO_BADI~POST_DOCUMENT
    tell your abaper to put the logic like
    parent ID and subcomponent ID need to select
    if either of two is not selected
    then error message will prompt not to save the GR doc since subcomponent is unselected.
    reference field EKPO check PSTYP
    hope this help you.
    regards,
    Maia
    Edited by: Maia on Apr 18, 2008 3:07 PM

  • A semiautomatic alternative to /etc/fstab

    This is probably highly redundant... the chances are, someone will likely say "XYZ does that for you and you can configure it in 5 minutes", but here goes anyways.
    I wanted a simple way to mount the disks in my computer to the same location regardless of where they were in the system (thus via UUID) but what I *didn't* want was to have to copy/type the UUID myself. The following possibly shaky bash script is the result.
    First, however, a (very real-world) demonstration of its functionality!
    /disks/ + ./domount
    Using scriptdir "/disks/.mountscripts".
    Running mount... [ok]
    [Disk ST3250620A_5QE4M336]
    group0-root -> /disks/250gb: [ok]
    38067a33-0556-4cab-a5c5-c96b313bd174 -> /disks/250gb/boot: [ok]
    21D4-2E62 -> /disks/250gb/data: [ok]
    group0-home -> /disks/250gb/home:
    == mount error ==
    mount: wrong fs type, bad option, bad superblock on /dev/mapper/group0-home,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    =================
    [R]etry/Skip [P]artition/Skip [D]isk/[Q]uit? q
    /disks/ + fsck.jfs /dev/mapper/group0-home
    fsck.jfs version 1.1.15, 04-Mar-2011
    processing started: 11/10/2011 20:28:10
    Using default parameter: -p
    The current device is: /dev/mapper/group0-home
    Block size in bytes: 4096
    Filesystem size in blocks: 52099072
    **Phase 0 - Replay Journal Log
    Filesystem is clean.
    /disks/ + ./domount
    Using scriptdir "/disks/.mountscripts".
    Running mount... [ok]
    [Disk ST3250620A_5QE4M336]
    group0-root -> /disks/250gb: (already mounted)
    38067a33-0556-4cab-a5c5-c96b313bd174 -> /disks/250gb/boot: (already mounted)
    21D4-2E62 -> /disks/250gb/data: (already mounted)
    group0-home -> /disks/250gb/home: [ok]
    group0-var -> /disks/250gb/var: [ok]
    partition1.vfat -> /disks/250gb/home/backup/80gb/mnt/partition1.vfat: [ok]
    partition2.vfat -> /disks/250gb/home/backup/80gb/mnt/partition2.vfat: [ok]
    partition3.vfat -> /disks/250gb/home/backup/80gb/mnt/partition3.vfat: [ok]
    partition4.ext3 -> /disks/250gb/home/backup/80gb/mnt/partition4.ext3: [ok]
    data2 -> /disks/250gb/home/backup/32gb-2/mnt/data2: [ok]
    [Disk ST340014A_5MQ4HB90]
    0854-08DE -> /disks/20gb-1/data-1: [ok]
    4846-D7E2 -> /disks/20gb-1/data-2: [ok]
    3070DB1E70DAE99C -> /disks/20gb-1/winnt: [ok]
    38BB-158D -> /disks/20gb-1/pool: [ok]
    [Disk WDC_WD800BB-22J_WD-WCAM9H677098]
    e336c404-fca8-4f2b-9c75-81c22f339741 -> /disks/80gb: [ok]
    4738-E723 -> /disks/80gb/vfat: [ok]
    a827cfa1-08cf-4a24-a989-aae94ea0801b -> /disks/80gb/boot: [ok]
    7bb5df89-3a90-4c92-8aa7-a94271806087 -> /disks/80gb/var: [ok]
    09b652b7-4f5e-4895-8464-6f972a44fdd6 -> /disks/80gb/home: [ok]
    a2534aa6-b70f-442d-805e-365ee626d4be -> /disks/80gb/tmpspace: [ok]
    4871-993D -> /disks/80gb/tmpspace2: [ok]
    386a2a83-22e2-425c-bd48-cb0a1fad8a87 -> /disks/80gb/pool: [ok]
    /disks/ +
    Here's the script! (I can pastebin it if neccessary)
    #!/bin/bash
    # ohai from i336 :P <[email protected]>
    # Oct-Nov 2011
    # Public domain, no warranty. Be sure to use the "t" flag on the first run!
    # This program has two modes: scan mode and run mode.
    # Configuration
    # =============
    # You first need to create/go into the directory you want to mount your disks
    # in, such as /mnt (I use /disks), and create the subdirectory ".mountscripts", or
    # alternatively "programname-mountscripts" (the second directory bearing the
    # name of the program/symlink, a simple mechanism to implement some flexibility).
    # You can substitute any created symlinks whereever "./domount" is mentioned.
    # The existance of this directory indicate that this is the work directory.
    # (For added flexibility, the program will look for the second directory, the
    # one bearing its name, first, then fall back on ".mountscripts" if this is not
    # found.)
    # Scan Mode
    # =========
    # After creating this directory for the first time you will want to run
    # "./domount s" to generate the mountscripts into the mountscript directory
    # (which is selected as specified above).
    # Run Mode
    # ========
    # At this point, go into the mountscript directory, open all the files you find
    # there in a text editor, and add in the mountpoints you want to use after the
    # UUID parameter to 'partop' (an internal function defined in this file for the
    # scripts).
    # ** The first time you simply MUST run "./domount t" in order to see that the
    # 'mount' commands are correct! **
    # After this is done, run "./domount" and it will go ahead and mount the disks.
    # Run "./domount u" and it will unmount everything. (No options exist for
    # individual partitions as yet).
    # Limitations
    # ===========
    # * If you use domount to mount loopback images inside real partitions and the
    # real partitions are also mounted by domount, well, domount will try to
    # unmount them in the same order as when it mounts... and it will break.
    # Simple solution: skip however many real [p]artitions you have, then
    # re-run domount again. :)
    # * If you change a disk (eg add a partition), well, you'll have to delete the
    # file for that disk, re-scan (domount will not touch the other scripts) then
    # re-add your partitions back in. This program wasn't really designed to deal
    # with that kind of situation :)
    # * This program does not support LVM partitions - quite frankly, it doesn't
    # even realize such things exist. Thus you will not find any LVM partitions
    # listed in the generated scripts, or any "LVM partitions ignored"
    # messages - indeed, if you only have LVM partitions on a given disk, the
    # resulting syntactically incorrect script will contain an 'if' block with
    # no content and the shell will produce an error.
    toollist=
    needtool=0
    for tool in find lsblk blkid cfdisk xargs grep tail mountpoint; do
    type -P $tool > /dev/null 2>&1
    if [ $? -eq 0 ]; then
    toollist="${toollist} ${tool}"
    else
    toollist="${toollist} [${tool}]"
    needtool=1
    fi
    done
    if [ $needtool -eq 1 ]; then
    echo "This program requires the following tools in order to run. Those marked with"
    echo "brackets cannot be found (using \`type') and their containing packages"
    echo "likely need to be installed."
    echo $toollist
    exit 1
    fi
    sizes=(bytes KB MB GB TB)
    progname=$(basename $0)
    if [ -d ".mountscripts" ]; then
    scriptdir="$(pwd)/.mountscripts"
    elif [ -d ".${progname}-mountscripts" ]; then
    scriptdir="$(pwd)/.${progname}-mountscripts"
    fi
    if ([[ ! -d "${scriptdir}" ]] && [[ "$1" != "s" ]]) || [[ "$1" == "h" ]]; then
    cat << EOF
    usage: $0 [s] [t]
    s = scan
    t = test run (USE THIS THE FIRST TIME AFTER YOU HAVE DONE A SCAN)
    EOF
    exit 1
    fi
    if [[ "$1" = "s" ]]; then
    echo -n "Scanning disk tables... (by name)"
    parttable=(); while IFS= read -r line; do parttable+=("$line"); done < \
    <(find /dev/disk/by-id/ -name "scsi-SATA*" -name "*-part*" -type l | xargs stat -L -c "%t-%T %n")
    echo -n ", (by UUID)"
    uuidtable=(); while IFS= read -r line; do uuidtable+=("$line"); done < \
    <(find /dev/disk/by-uuid/ -type l | xargs stat -L -c "%t-%T %n")
    echo -ne " [ok]\nRunning blkid..."
    blkidtable=(); while IFS= read -r line; do blkidtable+=("$line"); done < \
    <(blkid)
    echo -ne " [ok]\nRunning lsblk (uno momento)..."
    lsblktable=(); while IFS= read -r line; do lsblktable+=("$line"); done < \
    <(lsblk -bro name,size,fstype,model | grep -v group | tail -n +2)
    echo -e " [ok]\n"
    if [ ${#parttable[@]} -ne ${#uuidtable[@]} ]; then
    echo 'Something is very wrong with either this program'
    echo 'or your disk configuration. O.o'
    exit 1
    fi
    echo -e "Using scriptdir \"${scriptdir}\".\n"
    echo -ne "\e[1GCompiling mapping table... [ ]\e[?25l"
    max=$[${#parttable[@]}*${#parttable[@]}]
    runindex=0
    for ((i = 0; i < "${#parttable[@]}"; i++)); do
    partsplit=(${parttable[$i]})
    devok=0
    devname="$(readlink -f ${partsplit[1]})"
    partsize=
    for uuid in "${uuidtable[@]}"; do
    uuidsplit=($uuid)
    c=$[((runindex*43)/$[max-1])]
    echo -ne "\e[29G"
    if [ $c -gt 0 ]; then eval \printf "%.s#" {0..$c}; else echo -n '.'; fi
    if [ $c -lt 43 ]; then eval \printf "%.s." {$[c+1]..43}; fi
    ((runindex++))
    if [[ "${partsplit[0]}" = "${uuidsplit[0]}" ]]; then
    partlabel=
    devok=1
    for entry in "${blkidtable[@]}"; do
    if [[ "${entry:0:$[${#devname}+9]}" != "${devname}: LABEL=\"" ]]; then continue; fi
    partlabel="${entry:$[${#devname}+9]}"
    partlabel=$(echo -n $(echo $partlabel | cut -d'"' -f1))
    done
    for entry in "${lsblktable[@]}"; do
    entry=($entry)
    if [[ "/dev/${entry[0]}" != "$devname" ]]; then continue; fi
    partsize=${entry[1]}
    parttype=${entry[2]}
    done
    if [ ! partsize ]; then
    echo "$0: error: cannot determine partition size for $devname"
    exit 1
    fi
    devline="${partsplit[1]:26} ${uuidsplit[1]:18} ${partsize} ${parttype}${partlabel:+ $partlabel}"
    map[${#map[@]}]="$devline"
    fi
    done
    if [ $devok -eq 0 ]; then
    checkparttable[${#checkparttable[@]}]="${parttable[$i]#* }"
    fi
    done
    echo -e "\e[?25h\e[75Gdone.\n"
    if [[ ${#checkparttable[@]} -gt 0 ]]; then
    cat << EOF
    Warning: The following partitions do not have matching UUID entries
    in /dev/disk/by-uuid/.
    Linux seems to be quite smart, and won't list UUIDs for LVM
    members, partitions \`mount' cannot mount without the -t flag,
    or extended partition headers, but /dev/disk/by-id/ will still
    list them. So these are probably not a problem but may still
    warrant a double-check; if these contain valid filesystems you
    will need to insert them manually since their UUIDs cannot be
    calculated.
    EOF
    for partition in "${checkparttable[@]}"; do
    echo " >> $(readlink -f $partition) (/dev..by-id/${partition:26})";
    done
    echo
    fi
    find /dev/disk/by-id/ -name "scsi-SATA*" -not -name "*-part*" -type l | while read disk; do
    scriptfile="${scriptdir}/${disk:26}.mount.sh"
    rm -f "${scriptfile}"
    if [ ! -f "${scriptfile}" ]; then
    echo -ne "No mountscript found for disk ID \"${disk:26}\", creating one...\nRunning cfdisk... "
    cfdtable=(); while IFS= read -r line; do cfdtable+=("$line"); done < \
    <(cfdisk -Ps $disk | grep -v "Free Space" | grep -v "Unusable" | tail -n +6)
    echo -ne "[ok]\nRunning smartctl... "
    smartctlinfo="$(smartctl -i $disk)"
    diskdevname="$(readlink -f ${disk})"
    diskdevname=${diskdevname:5}
    disk="${disk:26}"
    disktable[${#disktable[@]}]="${disk}"
    tmp=
    diskparttable=
    for entry in "${lsblktable[@]}"; do
    entry=($entry)
    if [[ "${diskdevname}" != "${entry[0]}" ]]; then continue; fi
    devicename=$(echo -n $(echo "${entry[@]}" | cut -d' ' -f3-))
    done
    echo -e "# Script generated by domount at $(date +'%T on %D (MM/DD/YY)') for disk \"${devicename}\"\n" > "${scriptfile}"
    echo '# '$(echo "$smartctlinfo" | grep '^Model Family:') >> "${scriptfile}"
    echo '# '$(echo "$smartctlinfo" | grep '^Device Model:') >> "${scriptfile}"
    echo -e '# '$(echo "$smartctlinfo" | grep '^User Capacity:')"\n" >> "${scriptfile}"
    for part in "${map[@]}"; do
    if [[ "${part:0:$[${#disk}+1]}" != "${disk}-" ]]; then continue; fi
    diskparttable="${diskparttable}${part}\n";
    done
    mapfile -t diskparttable < <(echo -ne "${diskparttable%%\\n}" | sort -n -k1.$[${#disk}+6]n)
    echo -ne "if diskexists ${disk}; then\n\t\n" >> "${scriptfile}"
    for part in "${diskparttable[@]}"; do
    partsplit=($part)
    parttype=
    for line in "${cfdtable[@]}"; do
    line=($line)
    if [[ "X${partsplit[0]:${#disk}+5}X" != "X${line[0]}X" ]]; then continue; fi
    parttype="${line[1]}"
    done
    if [[ "X${parttype}X" = "XX" ]]; then
    echo "$0: error: Cannot parse cfdisk output"
    rm -f "${scriptfile}"
    exit 1
    fi
    echo -ne "\t# Partition: #${partsplit[0]:${#disk}+5} (${parttype}, ${partsplit[3]}" >> "${scriptfile}"
    if [[ "${partsplit[3]}" = "swap" ]]; then
    echo -n " - Skipping" >> "${scriptfile}"
    fi
    echo -n "); Size: " >> "${scriptfile}"
    sizeidx=0
    size=${partsplit[2]}
    while [ $size -gt 0 ]; do
    sizetext="${size}${sizes[$sizeidx]} ${sizetext}"
    size=$(($size/1024))
    ((sizeidx++))
    done
    sizetext=($sizetext)
    for ((i = 0; i < 2; i++)); do
    if [ $i -eq 1 ]; then echo -n ' (' >> "${scriptfile}"; fi
    if [[ "${sizetext[$i]: -1:1}" = "s" ]]; then
    echo -n "${sizetext[$i]:0:-5} bytes" >> "${scriptfile}"
    else
    echo -n "${sizetext[$i]:0:-2} ${sizetext[$i]: -2:2}" >> "${scriptfile}"
    fi
    if [ $i -eq 1 ]; then echo -n ')' >> "${scriptfile}"; fi
    done
    if [[ "X${partsplit[4]}X" != "XX" ]]; then
    echo -n "; Label: \"" >> "${scriptfile}"
    echo $(echo -n "${part}" | cut -d' ' -f5-)"\"" >> "${scriptfile}"
    else
    echo >> "${scriptfile}"
    fi
    if [[ "${partsplit[3]}" != "swap" ]]; then
    echo -e "\tmountpart /dev/disk/by-uuid/${partsplit[1]} \n\t" >> "${scriptfile}"
    else
    echo -e "\t" >> "${scriptfile}"
    fi
    done
    echo "fi" >> "${scriptfile}"
    echo -e "[ok]\nSuccess!\n"
    #echo ---; cat $scriptfile; echo ---
    else
    echo "Script found for disk ID ${disk}"
    fi
    done
    exit
    fi
    trap 'echo; exit' SIGINT
    echo -ne "Using scriptdir \"${scriptdir}\".\nRunning mount..."
    mapfile -t mounttable < <(mount)
    echo -e " [ok]"
    function spin() {
    trap 'echo -e "\e[?25h"' SIGINT SIGQUIT SIGKILL
    echo -ne "\e[?25l"
    if [[ $unicode -eq 1 ]]; then s=$(printf \\u2580\\u259C\\u2590\\u259F\\u2584\\u2599\\u258C\\u259B); m=8; d=0.03; else s='/-\|'; m=4; d=0.07; fi
    ("$@" & pid=$! ; c=1; while ps -c $pid 2>&1>/dev/null; do echo -ne "\e[s${s:c:1} \e[u"; c=$[c+1]; test $c -eq $m && c=0; sleep $d; done)
    echo -ne "\e[?25h"
    trap SIGINT SIGQUIT SIGKILL
    function diskexists {
    disk=/dev/disk/by-id/scsi-SATA_${@}
    if [[ ! -L $disk ]]; then
    echo "(Disk $0 is not installed)"
    else
    echo "[Disk ${1}]"
    fi
    function partop {
    if [[ $mode -eq 1 ]]; then
    while true; do
    echo -n "Unmounting ${1##*/}... "
    if ! mountpoint > /dev/null 2>&1 $2; then
    echo "(Not mounted, or not a mountpoint)"
    break;
    fi
    if [ ! -d $2 ]; then
    echo "error: Not a directory!"
    break
    fi
    cmd="umount $1"
    if [[ ! $testmode ]]; then
    output="$(${cmd} 2>&1)"
    err=$?
    else
    echo "{would run: ${cmd}} "
    fi
    if [[ $err = 0 ]]; then
    if [[ ! $testmode ]]; then echo "[ok]"; fi
    return
    else
    echo -e "\n== umount error =="
    echo -n "${output}"
    echo -e "\n=================\n"
    c=X;
    while [[ ! $c =~ (R|r|P|p|D|d|Q|q) ]]; do read -sn1 -p"[R]etry/Skip [P]artition/Skip [D]isk/[Q]uit? " c; echo $c; done
    echo
    case $c in
    D|d) skipdisk=1; break ;;
    P|p) break ;;
    Q|q) exit ;;
    esac
    fi
    done
    else
    if [[ $skipdisk = 1 ]] && [[ $newdisk = 0 ]]; then return; fi
    err=0
    skipdisk=0
    newdisk=0
    while true; do
    echo -n "${1##*/} -> $2: "
    if mountpoint > /dev/null 2>&1 $2; then
    echo "(already mounted)"
    break;
    fi
    if [[ $testmode == 0 ]]; then echo echo -n "Mounting"; fi
    if [ ! -d $2 ]; then
    echo -n " (creating dir $2"
    cmd="mkdir -p $2 2>&1"
    if [[ ! $testmode ]]; then
    output="$(eval $cmd)"
    err=$?
    else
    echo -n " {would run: $cmd}"
    fi
    echo -n ') '
    fi
    if [[ $err = 0 ]]; then
    if [[ $testmode == 0 ]]; then echo -n '... '; fi
    cmd="mount $@"
    if [[ ! $testmode ]]; then
    output="$(${cmd} 2>&1)"
    err=$?
    else
    echo "{would run: ${cmd}} "
    fi
    else
    echo
    fi
    if [[ $err = 0 ]]; then
    if [[ ! $testmode ]]; then echo "[ok]"; fi
    return
    else
    echo -e "\n== mount error =="
    echo -n "${output}"
    echo -e "\n=================\n"
    c=X;
    while [[ ! $c =~ (R|r|P|p|D|d|Q|q) ]]; do read -sn1 -p"[R]etry/Skip [P]artition/Skip [D]isk/[Q]uit? " c; echo $c; done
    echo
    case $c in
    D|d) skipdisk=1; break ;;
    P|p) break ;;
    Q|q) exit ;;
    esac
    fi
    done
    fi
    if [[ $1 = "u" ]]; then mode=1; else mode=0; fi
    if [[ $1 = "t" ]]; then testmode=1; fi
    scripts=(${scriptdir}/*.mount.sh)
    for ((i = 0; i < ${#scripts[@]}; i++)); do
    newdisk=1
    . ${scripts[$i]}
    if (($i < ${#scripts[@]} - 1)); then echo; fi
    done
    echo -ne "\e[?25h"
    Hopefully someone else finds this helpful. I am aware of udev/automount; that was overkill, since the disks are always installed, and I don't need a system whose focus is on-the-fly detection of newly inserted media of whatever kind.
    -i336
    Last edited by i336 (2011-11-10 04:42:08)

    Thanks. I might use it soon...
    Does it automatically make folders named after the volume labels? And does it handle the conversion of spaces and non-alphanumeric characters to octal codes?
    I could read the script but it would be faster for everyone reading, if you leave the answer as a reply.
    I also think that there should be some major work done on modernizing the fstab, either by replacing it with a better implementation of file system mounting or changing the file structure and adding in better handling of non-alphanumerics. I don't want to have to look up a stupid octal table every time I type in my labels.

  • My IPad cannot download live Tv from skygo. I have no problem with my lap top so I assume the broad band is okay. Can anybody suggest why the live streaming will not work on my iPad one.

    My IPad cannot download live Tv from skygo. I have no problem with my lap top so I assume the broad band is okay. Can anybody suggest why the live streaming will not work on my iPad .

    Are you using the Sky Go app to try and watch it ? If so are you logged in with your Sky account ?
    If you are using the app then you could try closing the app completely and see if it works when you re-open it : from the home screen (i.e. not with Sky Go 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Sky Go app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Leaving pc with SSD on -okay?

    Model Name: Satellite P770-BT4G22  / Model-Part Number: PSBY3U-0CX02H
    I have had a problem with restore points disappearing on my computer.  If you go to Control Panel>System>System Protection and the Configuration tab it will show space taken up (I have it set to 20% allowed) and it would be making them every day, but when I'd go to view them (Control Panel>Backup and Restore> Recover System Settings or Your Computer) it would not be uncommon for Windows say there were none and that I had to set up System Restore.   So I'd go back to the Config screen and "delete" the restore points to free up the space, set it all up again only to have them disappear randomly.  It seemed like this was happening 1-2X a week to me.  
    I'm kinda past troubleshooting that as I looked at it on a Windows 7 forum, tried everything I could find, and none of it worked. Although  someone has suggested there may be problems with the hibernation or paging files and I should delete them - I haven't tried that yet.
    However, quite by accident, I found that if I left my computer on - did not let it go to sleep - the problem disappeared.  It's been weeks now and it hasn't happened once.  I have oddles of restore points.
    So my question is if it is okay to leave my computer - which has a hybrid solid state drive - on all the time?  I have another computer which is a server and on all the time but it's a desktop without a SSD and I don't know if it's different for a notebook with a SSD.  If leaving it on is a problem then I will need to look harder to find a solution to my problem.
    Thanks.
    Solved!
    Go to Solution.

    FWIW, Sally, we have about 20 laptops here in docks. They run 24/7.
    We shut them down only when undocking or redocking or when traveling.
    Been doing that for many years with no known mishaps. 
    -Jerry

  • Okay so when I try to download apps on my phone a totally different Apple ID that I've never used before popped up. I've already tried settings under apps/iTunes and signed into my own apple account. But even doing so my apple Id won't show up

    Okay so when I try to download apps on my phone a totally different Apple ID that I've never used before popped up. I've already tried settings under apps/iTunes and signed into my own apple account. But even doing so my apple Id won't show up

    Try this:
    Open the iTunes app, select the Music tab, then scroll all the way down to the bottom.  Here you can sign out of any current Apple ID and sign into a new one.  Good luck!
    And just in case there is another Apple ID linked to your account you can check at http://appleid.apple.com.

  • When i sign into icloud it says my apple id is okay but i do not have icloud and it will not prompt me to set it up

    when i sign into icloud it says my apple id is okay but i do not have icloud and it will not prompt me to set it up

    You can't setup an iCloud account using a PC. You need a Mac, or an IOS device. You can sign into iCloud on your PC once you open an account.

  • Fstab,samba and ntfs trouble!!

    Hi!
    I have setup samba, everything is working..but!
    I use gnome-2.12 for the moment, with hal/dbus and I have been trying to figure out WHY the h*ll gnome can mount the smbfs harddrive, but not unmount it when finished...this ends up with I having like twenty different "mount /mnt/samba " pids if I do a ps -ef
    then I have to umount every single one of them by hand and as root!
    So , i figured, hey, I must make umount accessible by my user, and I did, it workes because I can umount my ordinary harddrive as a user, but not the sambashare...
    SO I read some more with google, and found that this is a bug in umount, so my question is:
    Can I use smbumount with the sambashares instead ?? (because that one work)...the trouble is that I can't seem to find any option in GNOME to set which command to use when mounting/unmounting smbfs
    or, even better perhaps, is there other ways to get shared files from a Windows machine than using Samba?
    # /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 /mnt/cd auto ro,user,noauto,unhide 0 0
    /dev/hda7 swap swap defaults 0 0
    /dev/hda2 / reiserfs defaults 0 0
    /dev/hda5 /mnt/blandad ntfs rw,uid=1000,gid=100,owner,noauto,exec,umask=0000,nls=iso8859-1 0 0
    /dev/hda6 /home/spel reiserfs users,auto 0 0
    //server/film /mnt/film smbfs noauto,users,gid=users,nls=iso8859-1,noatime,exec,username=guest,password,workgroup=HEM 0 0
    //server/music /mnt/musik smbfs noauto,users,gid=users,iocharset=iso8859-1,noatime,exec,username=guest,password,workgroup=HEM 0 0
    //server/backup /mnt/backup smbfs noauto,users,gid=users,iocharset=iso8859-1,noatime,exec,username=guest,password,workgroup=HEM 0 0

    CyberTron wrote:is there other ways to get shared files from a Windows machine than using Samba?
    If you install M$ SFU on the Windoze box, you can use NFS to connect to it.

  • I get error message on my ipad mini OxE800000A it worked okay a little while ago

    I get error message on my ipad mini OxE800000A it worked okay a little while ago

    Try the following document:
    iPhone, iPad, iPod touch: Unknown error containing '0xE' when connecting to a Windows PC

  • I have a MacBookPro, an iPad and an iMac using a wifi connection with an airport extreme base station. Lately I am having trouble with connection time outs. Right now the laptop and ipad are connected okay but the iMac has timed out and I can't reconnect

    Please help. Just the last week or so (maybe since Apple released a new software update for my Airport, I keep getting kicked off the net and can't reconnect - it doesn't even show my wifi network in the list of available networks. I am considering resetting the airport as detailed in the manual. If I do this will it act as a new one and can I set it up as from the beginning. My Mac is running OSX 10.6.8 and if I try to use the airport setup assistant it tells me i can't use this version of the app with the version of my OS (because I have upgraded my OS ) I assume
    I get a message saying my network requires a WPA password and when I put it in it says connection timeout - meanwhile here I am on my laptop and connecting okay to the net that way - so strange.
    If I connect directly to the computer I have a good connection so it is not my ISP
    I am 64 and a woman and I thought I was reasonably savvy having had Macs since 1992. This has me stumped and I really would like some advice - otherwise I think I'll just go iout andf buy a new airport.
    And just so you know . . . I have a smart TV and it is connecting to the net okay!

    apikoros wrote:
    The Utility transferred all of the AE's settings, so I still have to change the password, which leaves me with only 2 other questions, I think:
    1)  I assume it's just a matter of using the Utility, entering a stronger password and checking for it to be remembered in Keychain Access.  But do I have to  change the password for each individual unit-- the TC, the Extreme and both Expresses-- or will changing it just for the TC alone work for the entire network?
    Resetting the password you will need to do for each device... the utility cannot even see those old units.
    So you will have to do it for each one.. think it through.. because as you change passwords the others will lose connection.. so start from the express which are wireless extending .. change those first.. and go back up the chain.. as each one changes it will drop off the network.. until you reach extreme and change that. Then you might need to reboot the whole network to get everything talking again. If something goes wrong.. just pluck that one out of the mix and plug in ethernet.. reset and redo the setup. That is my preferred method anyway.. do everything in isolation one by one. By ethernet and then nothing goes wrong.
    2)  Who's the treasonous SOB who spilled the beans to you about the ICBM in my back yard?!?
    N.Korean hackers.
    [Edit] Whoops-- one more question:  I want to partition the TC's disk, but Disk Utility doesn't see it.  What do I need to do?
    You cannot partition a network disk. And apple provided no tools for it in the TC itself. You can pull the disk out and partition it but that voids your warranty. (although done with care who is to know).
    Look at Q3 here.
    http://pondini.org/TM/Time_Capsule.html
    Mixing TM and data on the TC is worth planning carefully. They don't necessarily sit happily together.

Maybe you are looking for