[SOLVED] grub "unknown filesystem" error for big partition layout

Last night / this morning I copied the root and swap partitions of an Arch Linux installation (stushiba) I had on an old Toshiba hard drive, as well as the "system reserved" and other partitions of a Windows 8 install (stuzate) on another 500GB hard drive, onto a new 2TB Western Digital hard drive using Gparted via an external Arch environment I run off of a microSD card + adapter (sturling).
After doing so, I installed GRUB to the new drive to the best of my ability, but when I try to boot the system with just that drive, this is what I see:
GRUB loading.
Welcome to GRUB!
error: unknown filesystem.
Entering rescue mode...
grub rescue>
Running ls doesn't find anything:
grub rescue> ls
(hd0) (hd0,msdos4) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
grub rescue> ls (hd0,msdos4)
(hd0,msdos4): Filesystem is unknown.
grub rescue> ls (hd0,msdos3)
(hd0,msdos3): Filesystem is unknown.
grub rescue> ls (hd0,msdos2)
(hd0,msdos2): Filesystem is unknown.
grub rescue> ls (hd0,msdos1)
(hd0,msdos1): Filesystem is unknown.
The system should be on (hd0,msdos3) - it's ext4, and, if I insert the old Toshiba hard disk to the system and select that as my boot device in BIOS, it boots from the partition on the old drive's grub menu, into the partition in the new drive (because they have the same UUID), so the partition's definitely readable/bootable. (I've tried both regenerating the grub menu and installing grub from this boot scenario, with no change.)
(That said, if I enter a console on my system with a working GRUB installation and do an ls on that partition, I get more "unrecognized filesystem" messages.)
Once the new partition had loaded, I ran
sudo grub-mkconfig -o /boot/grub/grub.cfg
and rebooted, but GRUB was still broken.
I tried fixing this by rebooting into the latest installation media, with only the new hard drive plugged in, and running
mount /dev/sda3 /mnt
arch-chroot /mnt
modprobe dm-mod
grub-install --recheck /dev/sda
But that still hasn't fixed anything: I still get the "error: unknown filesystem." message whenever I try to do anything in GRUB.
My /boot/grub/grub.cfg: http://sprunge.us/RMeD
Help!
Last edited by STUART (2013-09-12 01:55:16)

This is the output when running from sturling (neither partition booted).
/dev/sda is the new disk, /dev/sdb is the microSD card I'm running the system off of, and /dev/sdc is the old disk.
[stuart@sturling ~]$ sudo lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ntfs System Reserved F24C78CE4C788EDB
├─sda2 ntfs F68C7D338C7CF00B
├─sda3 ext4 stushiba 1c8533ed-4a3c-4a4c-907b-682bd2313492
└─sda4 swap 97c30b3e-f763-437b-aa71-0378bef4c017
sdb
├─sdb1 vfat savfat A13A-D130 /vfat
└─sdb2 ext4 saroot 7434b70f-7028-4a8d-ad78-a4975a98e1a6 /
sdc
├─sdc1 ext4 stushiba 1c8533ed-4a3c-4a4c-907b-682bd2313492
└─sdc2 swap 97c30b3e-f763-437b-aa71-0378bef4c017
sr0
[stuart@sturling ~]$ sudo fdisk -l /dev/sda
Disk /dev/sda: 2000.4 GB, 2000365289472 bytes, 3906963456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0005f107
Device Boot Start End Blocks Id System
/dev/sda1 2048 718847 358400 7 HPFS/NTFS/exFAT
/dev/sda2 718848 1937063935 968172544 7 HPFS/NTFS/exFAT
/dev/sda3 1937063936 3873409023 968172544 83 Linux
/dev/sda4 3873409024 3906963455 16777216 82 Linux swap / Solaris
[stuart@sturling ~]$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 31.9 GB, 31914983424 bytes, 62333952 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000c314b
Device Boot Start End Blocks Id System
/dev/sdb1 2048 8390655 4194304 c W95 FAT32 (LBA)
/dev/sdb2 * 8390656 62333951 26971648 83 Linux
[stuart@sturling ~]$ sudo fdisk -l /dev/sdc
Disk /dev/sdc: 100.0 GB, 100030242816 bytes, 195371568 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x8bef8bef
Device Boot Start End Blocks Id System
/dev/sdc1 2048 178593791 89295872 83 Linux
/dev/sdc2 178593792 195371007 8388608 82 Linux swap / Solaris

Similar Messages

  • Unknown filesystem error [solved]

    I just updated arch and now when I try to mount my usb harddrive I get this error:
    # mount /mnt/usbdrive
    mount: unknown filesystem type 'vfat'
    Anyone know whats up?

    I met the same problem. 
    the key is that the kernel is updated ( e.g. from 2.23 -> 2.24 ).
    the  vfat kernel module reside in difference directory (/lib/modules/XXXx-2.24/)after update.
    but the kernel version in /proc  is the old one ,  until you reboot.
    if you don't reboot, when load the vfat module, the insmod will search the  /lib/modules/`uname -r` , which can found nothing to load.  well,  what you get is nothing but some string like
    # modprobe vfat
    FATAL: Could not load /lib/modules/2.6.23-ARCH/modules.dep: No such file or directory.
    so, you can understand why you are happy now.

  • [SOLVED] mount: unknown filesystem type 'ext2'

    I probably have the most complicated first-time arch setup that you'll ever hear a n00b post.  XD
    I just finished setting up an encrypted arch box with a usb boot drive (it contains the key-file), but when I go to boot, the system reports the following:
    mount: unknown filesystem type 'ext2'
    Of all the things to break!  Ext2???!
    This is for the default boot mode, when boot into the fallback initramfs mode, the arch box boots up fine (although it takes 2 whole minutes).  I think that the issue is that I'm missing a module in my mkinitcpio.conf file.
    /etc/fstab file:
    UUID=1245ASDF / btrfs discard,autodefrag,compress=lzo,rw,relatime,ssd,space_cache 0 0
    UUID=2245ASDF /boot ext2 rw,noatime 0 2
    UUID=3245ASDF none swap defaults 0 0
    /etc/mkinitcpio.conf file:
    HOOKS="base btrfs udev autodetect modconf block encrypt lvm2 filesystems keyboard fsck"
    /etc/default/grub file:
    GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda:enc cryptkey=/dev/sdb2:ext2:/keyfile crypto=sha512:twofish-xts-plain64:512:0:"
    Last edited by a-jamesregan (2015-04-13 19:15:48)

    Wow, there was literally a note about the exact issue I was having on the wiki...
    https://wiki.archlinux.org/index.php/Mkinitcpio#MODULES
    Note: If using reiser4, it must be added to the modules list. Additionally, if you will be needing any file system during the boot process that is not live when you run mkinitcpio — for example, if your LUKS encryption key file is on an ext2 file system but no ext2 file systems are mounted when you run mkinitcpio — that file system module must also be added to the MODULES list. See Dm-crypt/System configuration#cryptkey for more details.
    PS: How do I mark an issue as solved?
    Last edited by a-jamesregan (2015-04-13 10:28:20)

  • Unknowner publisher error for signed apps

    We have an AIR app (signed with Thawte code signing cert)
    that we use to associate to a certain file extension. When we
    download and open a file with the extension that is associated with
    air app in IE7, IE throws "Unknowner publisher" warning for the
    application exe. Is there a way to sign the application exe also so
    that users will know we are not shipping any untrusted executable
    in our app?
    You can see a screenshot at
    http://www.gotcodeblog.com/screenshots/unknown_publisher.png
    Thanks

    No, AIR does not have this capability. There is currently no
    relationship between the signature applied to the .air file and the
    authenticode signature that Windows is looking for.
    Oliver Goldman | Adobe AIR Engineering

  • How can I solve an "Unknown server error"?

    I've been trying since YESTERDAY to download the Photoshop trial and it keeps saying that an "unknown server error" occurred with the message: "Sign in is currently unabailable. We are unable to access your account. Please try again later."
    - Always when it happens I AM logged in on the website. It can't be a login issue
    - I have already uninstalled and installed again the Creative Cloud app
    - I have already restarted the computer
    - I have already signed out and in again on the website
    - I have already closed and opened the Creative Cloud window a thousand times
    - And I have already tried later
    I don't know what else to do, and this thing is delaying my work.

    Hi Prii,
    Please refer the KB : http://helpx.adobe.com/creative-cloud/kb/unknown-server-error-launching-cc.html

  • [SOLVED] Grub 2 gives Error: Invalid Signature

    Hello everyone.
    I am trying to dual boot Arch and Windows 7. I am boot into Arch with no problem but when I select Windows 7; I am greeted with the 'Error: Invalid Signature' and redirects back to the Grub 2 menu.
    I have googled and have tried many times, so I thought I would come to the endless supply of knowledge of the bbs.archlinux forums.
    I can boot into Windows when I have it as the first boot drive in the BIOS, so I Windows is fine. It's got to be one simple step I'm missing here.
    P.S. I really wasn't sure where to put this post.
    I'll go ahead and list some (hopefully) useful information:
    sudo fdisk -l
    Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000
    Device Boot Start End Blocks Id System
    /dev/sdc1 * 63 1992059 995998+ 83 Linux
    Partition 1 does not start on physical sector boundary.
    /dev/sdc2 1992060 9992429 4000185 82 Linux swap / Solaris
    Partition 2 does not start on physical sector boundary.
    /dev/sdc3 9992430 976773167 483390369 83 Linux
    Partition 3 does not start on physical sector boundary.
    Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0ca96061
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 2048 1953521663 976759808 7 HPFS/NTFS/exFAT
    Disk /dev/sda: 60.0 GB, 60022480896 bytes, 117231408 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x4df1d31e
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 117227519 58612736 7 HPFS/NTFS/exFAT
    Where /dev/sda is Windows
               /dev/sdb is an extra disk that holds music and documents
               /dev/sdc is Arch
                       sdc1 is /boot
                       sdc2 is swap
                       sdc3 is root
    Also my BIOS are set up to boot the Arch disk, then Windows, and final the extra disk.
    /etc/grub.d/40_custom:
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    menuentry "Windows 7" {
    set root=(hd0,1)
    drivemap -s (hd0) (hd1)
    chainloader +1
    /boot/grub/grub.cfg
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    insmod part_gpt
    insmod part_msdos
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    set default="0"
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    else
    menuentry_id_option=""
    fi
    export menuentry_id_option
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    function load_video {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    fi
    if [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    insmod part_msdos
    insmod ext2
    set root='hd2,msdos3'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos3 --hint-efi=hd2,msdos3 --hint-baremetal=ahci2,msdos3 c15450d4-4fe6-4124-aa4e-a6419188845b
    else
    search --no-floppy --fs-uuid --set=root c15450d4-4fe6-4124-aa4e-a6419188845b
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    fi
    terminal_input console
    terminal_output gfxterm
    set timeout=5
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch GNU/Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-c15450d4-4fe6-4124-aa4e-a6419188845b' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd2,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 4637508e-7f78-4f2d-9cd7-90868f1de62f
    else
    search --no-floppy --fs-uuid --set=root 4637508e-7f78-4f2d-9cd7-90868f1de62f
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=UUID=c15450d4-4fe6-4124-aa4e-a6419188845b ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux.img
    menuentry 'Arch GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-c15450d4-4fe6-4124-aa4e-a6419188845b' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd2,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 4637508e-7f78-4f2d-9cd7-90868f1de62f
    else
    search --no-floppy --fs-uuid --set=root 4637508e-7f78-4f2d-9cd7-90868f1de62f
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=UUID=c15450d4-4fe6-4124-aa4e-a6419188845b ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux-fallback.img
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    ### END /etc/grub.d/20_memtest86+ ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    menuentry "Windows 7" {
    set root=(hd0,1)
    drivemap -s (hd0) (hd1)
    chainloader +1
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    Thanks in Advance for anyone that is willing to help. Let me know if you need anymore information.
    I am going to keep on researching and trying.
    Last edited by pjk1939 (2012-12-02 23:22:35)

    Alright everyone I got it working. I will show what I did and mark as solved.
    For some reason, that I do not know the answer too, the Window's bootloader was on my extra harddrive /dev/sdb1 as opposed to /dev/sda1, where my Windows partion actually is. I'm not sure what I did to do that or if that is just is just how Windows works.
    my /etc/grub/40_custom:
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    menuentry "Windows 7" {
    insmod ntfs
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set BE4CA71B4CA6CD89
    chainloader +1
    I added in the
    insmod ntfs
    and
    search --no-floppy --fs-uuid --set BE4CA71B4CA6CD89
    so that it would boot from the /dev/sdb1 drive.
    I found the UUID by running the command:
    sudo blkid

  • [SOLVED] grub-install command failing for UEFI

    I downloaded the 8/2013 iso and burned it with dd. I have an ASUS Rampage IV Extreme motherboard. I was booted into efi mode on both the ISO and in the chroot (the /sys/firmware/efi directory did exist).
    I followed the instructions in the Beginner's Guide, but with a 512 MB EFI partition as sda1, 50 GB root as sda2, the rest of my 256 GB SSD as /home, and a 100 GB space on my HDD as /tmp. Everything was ext4 and the EFI partition was a fat32. The EFI partition was mounted on /boot of the new install, as the beginner's guide stated it should be
    Everything worked until I get to the part of installing GRUB. Before installing, I again confirmed that /sys/firmware/efi existed. When booting, on the motherboard boot selection screen, it showed 2 options for my USB, one with the name of my drive and another with [UEFI] in front of the drive name. I selected the UEFI option, so I was booted into UEFI mode, and the USB's bootloader also gave options to boot into a UEFI shell instead of the standard Arch ISO bootloader I get on MBR computers (though I did not try those EFI shell options). I looked into te /sys/firmware/efi/efivars directory and it had 2 items in it
    Going back to the chroot's / directory, I did the first command in the guide for installing grub (after installing grub and efibootmgr with pacman).
    umount /sys/firmware/efi/efivarsk
    This gave the error that the directory was not mounted
    modprobe -r efivars and modprobe efivars worked correctly (or at least they didn't output any errors).
    When I got to
    grub-install --efi-directory=/boot --bootloader-id=arch_grub --recheck
    it gave this error:
    Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
    I searched around on the interwebs and for every other person this problem was occuring because they were booted into BIOS mode instead of UEFI mode, and booting the USB into UEFI mode fixed the problem for them. However, the /sys/firmware/efi directory exists and I made sure to boot into EFI mode in the BIOS.
    Are there any other reasons that this could be happening?
    Also, is there really any advantage to GPT/EFI booting over GPT/BIOS booting other than a 1-2 second shorter boot time?
    Last edited by subraizada3 (2013-08-23 21:10:37)

    You burnt it to CD?DVD, right? Not dd? Because that won't create an EFI bootable USB key, for example.
    modprobe efivars never gives errors (that I've seen). The question is whether the directories are populated. It isn't enough for /sys/firmware/efi to exist. /sys/firmware/efi/vars/ should be full of a *lot* of stuff. In fact /sys/firmware/efi/efivars/ should have lots of stuff before you umount it.
    Did you modprobe before arch-chroot? That's essential if the installed kernel is different from the one on the installer (which is very likely).
    I think you are confused. There's no such thing as GPT/MBR booting.
    GPT and MBR are 2 ways of partitioning disks. GPT has various advantages explained on the wiki page.
    EFI and BIOS are 2 ways of booting.
    In my personal opinion, if BIOS booting works for you, I'd stick with BIOS. EFI is buggy - why be a guinea pig if you can help it?
    Also in my personal opinion, if you can only use GPT in EFI mode, it is worth the hassle to use EFI to reap the benefits of GPT.
    At least, those are the decisions I made. Nothing will convince my laptop to boot BIOS mode with a GPT disk. MBR+BIOS is fine but GPT+BIOS is a non-starter. So I use GPT+EFI.  On machines that don't care, I prefer BIOS+GPT.
    If you are dual booting Windows, I believe BIOS+GPT may not be an option but I'm not certain of this.
    Your kilometres may vary.
    By the way, you almost certainly do not want a partition for /tmp unless you are extraordinarily short of RAM and even then...

  • SQL*Loader problem - not efficient, parsing error for big xml files

    Hi Experts,
    First of all, I would like to store xml files in object relation way. Therefore I created a schema and a table for it (see above).
    I wants to propagate it (by using generated xml files), hence I created a control file for sql loader (see above).
    I have two problems for it.
    1, It takes a lot of time. It means I can upload a ~80MB file in 2 hours and a half.
    2, At bigger files, I got the following error messages (OCI-31011: XML parsing failed OCI-19202: Error occurred in XML processing LPX-00243: element attribute value must be enclosed in quotes). It is quite interesting because my xml file is generated and I could generated and uploaded the first and second half of the file.
    Can you help me to solve these problems?
    Thanks,
    Adam
    Control file
    UNRECOVERABLE
    LOAD DATA
    CHARACTERSET UTF8
    INFILE *
    APPEND
    INTO TABLE coll_xml_objrel
    XMLTYPE(xml)
    FIELDS
    ident constant 2
    ,file_name filler char(100)
    ,xml LOBFILE (file_name) TERMINATED BY EOF
    BEGINDATA
    generated1000x10000.xml
    Sql Loader command
    sqlldr.exe username/password@//localhost:1521/SID control='loader.ctl' log='loadr.log' direct=true
    Schema
    <?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://www.something.com/shema/simple_searches" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.something.com/shema/simple_searches">
        <element name="searches" type="tns:searches_type"></element>
        <element name="search" type="tns:search_type"></element>
        <element name="results" type="tns:results_type"></element>
        <element name="result" type="tns:result_type"></element>
        <complexType name="searches_type">
            <sequence>
                <element ref="tns:search" maxOccurs="unbounded"></element>
            </sequence>
        </complexType>
        <complexType name="search_type">
            <sequence>
                <element ref="tns:results"></element>
            </sequence>
            <attribute ref="tns:id" use="required"></attribute>
            <attribute ref="tns:type" use="required"></attribute>
        </complexType>
        <complexType name="results_type">
            <sequence maxOccurs="unbounded">
                <element ref="tns:result"></element>
            </sequence>
        </complexType>
        <complexType name="result_type">
            <attribute ref="tns:id" use="required"></attribute>
        </complexType>
        <simpleType name="type_type">
            <restriction base="string">
                <enumeration value="value1"></enumeration>
                <enumeration value="value2"></enumeration>
            </restriction>
        </simpleType>
        <attribute name="type" type="tns:type_type"></attribute>
        <attribute name="id" type="string"></attribute>
    </schema>
    Create table
    create table coll_xml_objrel
    ident Number(20) primary key,
    xml xmltype)
    Xmltype column xml
    store as object relational
    xmlschema "http://www.something.com/schema/simple_searches.xsd"
    Element "searches";

    Hi Odie_63,
    Thanks for your answer.
    I will post this question in the XML DB forum too (edit: I realized that you have done it. Thanks for it).
    1, Version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    2, see above
    3, I have registered my schema with using dbms_xmlschema.registerSchema function.
    Cheers,
    Adam
    XML generator:
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import javax.xml.stream.XMLOutputFactory;
    import javax.xml.stream.XMLStreamException;
    import javax.xml.stream.XMLStreamWriter;
    public class mainGenerator {
        public static void main(String[] args) throws FileNotFoundException, XMLStreamException {
            // TODO Auto-generated method stub
            final long numberOfSearches = 500;
            final long numberOfResults = 10000;
            XMLOutputFactory xof = XMLOutputFactory.newFactory();
            XMLStreamWriter writer = xof.createXMLStreamWriter(new FileOutputStream("C:\\Working\\generated500x10000.xml"));
            writer.writeStartDocument();
            writer.writeStartElement("tns","searches", "http://www.something.com/schema/simple_searches");
            writer.writeNamespace("tns", "http://www.something.com/schema/simple_searches");
            for (long i = 0; i < numberOfSearches; i++){
                Long help = new Long(i);
                writer.writeStartElement("tns","search", "http://www.something.com/schema/simple_searches);
                writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "type", "value1");
                writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "id", help.toString());
                writer.writeStartElement("tns","results", "http://www.something.com/schema/simple_searches");
                for (long j = 0; j < numberOfResults; j++){
                    writer.writeStartElement("tns","result", "http://www.something.com/schema/simple_searches");
                    Long helper = new Long(i*numberOfResults+j);
                    writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "id", helper.toString());
                    writer.writeEndElement();
                writer.writeEndElement();
                writer.writeEndElement();
            writer.writeEndElement();
            writer.writeEndDocument();
            writer.close();
    registerSchema:
    begin
    dbms_xmlschema.registerSchema(
    'http://www.something.com/schema/simple_searches',
    '<?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://www.something.com/schema/simple_searches" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.something.com/schema/simple_searches">
        <element name="searches" type="tns:searches_type"></element>
        <element name="search" type="tns:search_type"></element>
        <element name="results" type="tns:results_type"></element>
        <element name="result" type="tns:result_type"></element>
        <complexType name="searches_type">
            <sequence>
                <element ref="tns:search" maxOccurs="unbounded"></element>
            </sequence>
        </complexType>
        <complexType name="search_type">
            <sequence>
                <element ref="tns:results"></element>
            </sequence>
            <attribute ref="tns:id" use="required"></attribute>
            <attribute ref="tns:type" use="required"></attribute>
        </complexType>
        <complexType name="results_type">
            <sequence maxOccurs="unbounded">
                <element ref="tns:result"></element>
            </sequence>
        </complexType>
        <complexType name="result_type">
            <attribute ref="tns:id" use="required"></attribute>
        </complexType>
        <simpleType name="type_type">
            <restriction base="string">
                <enumeration value="value1"></enumeration>
                <enumeration value="value2"></enumeration>
            </restriction>
        </simpleType>
        <attribute name="type" type="tns:type_type"></attribute>
        <attribute name="id" type="string"></attribute>
    </schema>',
    TRUE, TRUE, FALSE, FALSE);
    end

  • [SOLVED] Read-only filesystem error

    Hi there,
    i'm trying to install Arch Linux (2012.10.06) about a week.
    I have problem, that i can't connect to wired internet, because I have access only to wireless....
    Let's begin, i read all of this:
    https://wiki.archlinux.org/index.php/Ne … stallation
    https://wiki.archlinux.org/index.php/Co … ng_network
    https://wiki.archlinux.org/index.php/Wireless_Setup
    My problems (can't access internet while installing arch):
    Img 1
    Img 2
    Img 3
    Img 4
    Img 5
    Img 6
    I just don't know what to do...
    Last edited by CauseLT (2012-10-30 22:13:16)

    ewaller wrote:
    I am not sure exactly what you are asking.  I think you are asking as to whether you can install Arch alongside Ubuntu using the spare space on your drive. The answer is, yes.  But, things can go wrong if there is pilot error.
    From Ubuntu, please post the output of sudo fdisk -l /dev/sda and of mount.
    As to your English -- it is far better than my Lithuanian.  I regret that I have never mastered a second language;  No need to apologize.
    Disk /dev/sda: 640.1 GB, 640135028736 bytes
    255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0009b88f
    Device Boot Start End Blocks Id System
    /dev/sda1 * 2046 849594367 424796161 5 Extended
    /dev/sda4 849594368 1250260991 200333312 7 HPFS/NTFS/exFAT
    /dev/sda5 2048 7999487 3998720 82 Linux swap / Solaris
    /dev/sda6 8001536 203311103 97654784 83 Linux
    /dev/sda7 203313152 849594367 323140608 83 Linux
    mount:
    /dev/sda6 on / type ext4 (rw,errors=remount-ro)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    udev on /dev type devtmpfs (rw,mode=0755)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
    none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
    none on /run/shm type tmpfs (rw,nosuid,nodev)
    none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
    /dev/sda7 on /home type ext4 (rw)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    gvfsd-fuse on /run/user/cause/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=cause)
    /dev/sda4 i will delete durning Arch installation, because I don't use that partition (old Windows D disk)..
    Last edited by CauseLT (2012-10-29 00:17:43)

  • I had the "unknown syncing error" for so long with no improvement that I finally uninstalled Firefox sync--but I'm STILL getting the error all day long!!!!

    Running Firefox 4.0, was running Sync 1.7 on a Windows XP machine. Became so frustrated with the constant error message at the bottom of my screen (Sync encountered an error while syncing: Unknown error. Sync will automatically retry this action.) that I uninstalled Sync. However, after multiple Ff restarts the error message continues to appear.
    I noted that at least 10 other people had posted this as a problem in the forums but didn't see any solutions.
    Can you help?

    I know the last reply was from a couple weeks ago, but honestly, I haven't been able to find anything else in the last week of searching Google. I'm new to the MDT process but I'm having the same issue with what you posted. I can shift-F10 during the "Applying
    system settings" and open my unattend.xml file and remove the IEWelcomeMsg line and the image deploys perfectly, so I know that's my problem. I can't figure out where that line is coming from. I have edited every unattend.xml file in the Templates folder under
    MDT and also the one in my deployment task sequence, but somewhere during that deployment, that one setting gets added back to the unattend file and nukes the whole image. I'm about to pull my hair out. I'm implementing MDT to save time but I feel like the
    last couple of weeks trying to get it to work have been a waste. I have thought about backing my reference image back to IE9, but having to deploy IE10 post image seems like it's an unnecessary burden. Any help would be appreciated.
    ~Adam

  • Unknown Download Error - FOR ONE YEAR

    I'm having a strange issue - maybe Apple's looking and can help me resolve this. A year ago (yes, a year ago) I tried to download "Inglorious Bastards" and something happened and the download never happened although I was billed. Now, everytime I fire up iTunes, it always tries to download IB, with no success. This is getting really frustrating and I don't know what to do. Your help and suggestions are welcome!

    Apple won't know to look into this issue if you don't let them know about it, and posting in the Discussions won't alert them; we're all basically just fellow users here.
    Do other items download successfully? If nothing will download, disable any download accelerators, antivirus, etc. you may have on your system (or router) and see if that makes a difference. If it's just this one item that fails, or if it's blocking other downloads, contact the iTunes Store Customer Service department using the form on their Support page (select the category and subcategory closest to the issue you're reporting and you'll find either an "Express Lane" button - just follow the instructions to get to the contact form - or an "Email Us" button) and explain your situation to them.
    Regards.

  • [SOLVED] grub error on installation

    Hello
    Ive just attempted to install arch for the first time, however grub fails when attempting to install
    /boot is on sda5 and root on sda6. both are logical partitions, the rest are primary. root is ext4, boot is ext2.
    tty7 gives:
    grub> device (hd0) /dev/sda
    grub> root (hd0,4)
    Filesystem type unknown, partition type 0x1
    i ran a find /boot/grub/stage1 with the grub utility under a separate tty, but grub doesnt find it
    i did find it manually under /mnt however. i also ran "root (hd0," in grub and it gives the same error for every partition
    the automatically generated menu.lst looked like this:
    # (0) Arch Linux
    title Arch Linux
    root (hd0,4)
    kernel /vmlinuz-linux root=/dev/sda6 ro
    initrd /initramfs-linux.img
    # (1) Windows
    title Windows
    rootnoverify (hd0,0)
    #makeactive
    chainloader +1
    I only uncommented the lines for windows dual boot. The rest looked correct so I left it.
    From what Ive read on these forums and from googling, it seems as though the grub utility cannot read the partitions correctly. i used windows 7 diskpart to partition. Is this the reason that the install fails and should I be using something else to partition?
    Last edited by neilzium (2011-12-17 15:34:54)

    Hmm... you may have some issues with installing GRUB to a logical partition but then again the last time I tried to do something like this was a few years ago and I don't remember so well. Do you want the GRUB installation that you're working on now to be the main bootloader for your computer? If so then you could try installing GRUB to the MBR. It's not a fix, I know, but it would be an adequate workaround. Do you have a second linux distribution installed on /dev/sda3 and /dev/sda4? Then you could try using the bootloader on /dev/sda3 to boot arch on /dev/sda6.
    As far as actually thinking about the problem and the error that you have and not just stalling for an answer by giving you random workarounds partition type 0x1 is FAT12 and doesn't look too much like a linux boot partition, which should be more like 0x83.
    This thread is kinda interesting, not sure if it's the exact same problem but anyways, here
    This is where I found the info for whether logical boot partitions work or not

  • [SOLVED] Grub boots to rescue mode err: unknown filesystem every drive

    So I installed Arch and it all seemed to go reasonably well (well, had a little trouble installing GRUB to begin with, but I think that's just because I needed a BIOS boot partition at the start of the drive). I installed it onto a 4TB I have, which due to its size has a GPT partition table even though my mobo (Gigabyte GA-P67A-UD4-B3, don't think it matters though) uses a regular old BIOS. Initially it was two partitions, the Microsoft reserved partition then a big NTFS data partition. I shrunk the NTFS partition and then made (in this order on the disk, starting at third) an ext4 partition for /boot, a swap partition, and a big btrfs partition (in which I created subvolumes for /, /etc, /home and /var). GRUB wouldn't install (I forgot the exact error) but what I could find suggested it was because there needed to be room for it at the start of the disk, so I deleted the Microsoft reserved partition (Windows is installed on an SSD, and its bootloader is on another hard drive entirely, so I didn't think I needed it) and created an empty partition with the right code using gdisk, then I could install GRUB to the 4TB HDD.
    Unfortunately, when I try to boot into GRUB it immediately comes up with error: unknown filesystem and dumps me at the GRUB rescue prompt. Using ls, I can see my HDDs and their partitions, but whenever I try to use (for example) ls (hd0,gpt3)/ - which I think should probably be the ext4 boot partition, but it does this for everything - it just says error: unknown filesystem again.
    This seems pretty close to (if not exactly the same as) my problem, so I tried what he suggested, but when I tried to run the command he says worked, (grub-install --recheck --disk-module=native /dev/sda) - and don't worry, I didn't do that blindly, I know /dev/sda is my 4TB HDD - I just get the error grub-install: --disk-module: (PROGRAM ERROR) Option should have been recognized!?. So I'm all out of ideas and I've been trying for a few hours. Please help me, before I go insane... more insane. I can boot the USB drive I used to install Arch and chroot into my installation, but I haven't found a way to actually boot the installation yet.
    SOLVED: Apparently the partition I was using for /boot was too far back on the drive (past the first 2TB). When I shuffled partitions around so that the /boot partition was near the start of the drive (it starts at sector 2048 now!) that seemed to fix it.
    Last edited by Slashee the Cow (2015-04-12 15:36:51)

    Tried using insmod btrfs in the grub rescue shell last night. Didn't work, can't remember if the insmod command itself gave me an error or whether it still couldn't see any files or anything. Tried it again today, but that was after I converted /dev/sda3 back to ext4 and mounted it at /boot (since it being ext2 wasn't working, and not using it wasn't working, so I figure what's the harm) and I just got error: unknown filesystem.
    Anyway: using grub-install from outside chroot seems to work (still can't use --disk-module), but grub-mkconfig just generates this:
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    insmod part_gpt
    insmod part_msdos
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    if [ "${next_entry}" ] ; then
    set default="${next_entry}"
    set next_entry=
    save_env next_entry
    set boot_once=true
    else
    set default="0"
    fi
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    else
    menuentry_id_option=""
    fi
    export menuentry_id_option
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    function load_video {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    fi
    if [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    insmod ext2
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root ec4cf3cd-d72d-4988-a2ce-421f45d52824
    else
    search --no-floppy --fs-uuid --set=root ec4cf3cd-d72d-4988-a2ce-421f45d52824
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_US
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
    set timeout=5
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_linux ###
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    ### BEGIN /etc/grub.d/60_memtest86+ ###
    if [ "${grub_platform}" == "pc" ]; then
    menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
    search --fs-uuid --no-floppy --set=root ec4cf3cd-d72d-4988-a2ce-421f45d52824
    linux16 /boot/memtest86+/memtest.bin
    fi
    ### END /etc/grub.d/60_memtest86+ ###
    I'm not an expert on GRUB configuration files, but I figured that even if that didn't just boot me straight to the rescue shell, it wasn't going to boot anything... other than memtest86+ maybe. So I went back into chroot and run grub-mkconfig and it generated this:
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    insmod part_gpt
    insmod part_msdos
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    if [ "${next_entry}" ] ; then
    set default="${next_entry}"
    set next_entry=
    save_env next_entry
    set boot_once=true
    else
    set default="0"
    fi
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    else
    menuentry_id_option=""
    fi
    export menuentry_id_option
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    function load_video {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    fi
    if [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    insmod part_gpt
    insmod btrfs
    set root='hd0,gpt5'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 b21e6211-5e7a-4769-9f53-b9b5d554a242
    else
    search --no-floppy --fs-uuid --set=root b21e6211-5e7a-4769-9f53-b9b5d554a242
    fi
    font="/root/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_US
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
    set timeout=5
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b21e6211-5e7a-4769-9f53-b9b5d554a242' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt3'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 184916fd-57a7-48cf-858e-93a5d339ade2
    else
    search --no-floppy --fs-uuid --set=root 184916fd-57a7-48cf-858e-93a5d339ade2
    fi
    echo 'Loading Linux linux ...'
    linux /vmlinuz-linux root=UUID=b21e6211-5e7a-4769-9f53-b9b5d554a242 rw rootflags=subvol=root quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux.img
    submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-b21e6211-5e7a-4769-9f53-b9b5d554a242' {
    menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-b21e6211-5e7a-4769-9f53-b9b5d554a242' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt3'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 184916fd-57a7-48cf-858e-93a5d339ade2
    else
    search --no-floppy --fs-uuid --set=root 184916fd-57a7-48cf-858e-93a5d339ade2
    fi
    echo 'Loading Linux linux ...'
    linux /vmlinuz-linux root=UUID=b21e6211-5e7a-4769-9f53-b9b5d554a242 rw rootflags=subvol=root quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux.img
    menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-b21e6211-5e7a-4769-9f53-b9b5d554a242' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt3'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 184916fd-57a7-48cf-858e-93a5d339ade2
    else
    search --no-floppy --fs-uuid --set=root 184916fd-57a7-48cf-858e-93a5d339ade2
    fi
    echo 'Loading Linux linux ...'
    linux /vmlinuz-linux root=UUID=b21e6211-5e7a-4769-9f53-b9b5d554a242 rw rootflags=subvol=root quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux-fallback.img
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry 'Windows Vista (loader) (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-4E94BAB294BA9C41' {
    insmod part_gpt
    insmod ntfs
    set root='hd1,gpt1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 4E94BAB294BA9C41
    else
    search --no-floppy --fs-uuid --set=root 4E94BAB294BA9C41
    fi
    chainloader +1
    menuentry 'Windows Vista (loader) (on /dev/sde1)' --class windows --class os $menuentry_id_option 'osprober-chain-CEF01053F010445D' {
    insmod part_msdos
    insmod ntfs
    set root='hd4,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos1 --hint-efi=hd4,msdos1 --hint-baremetal=ahci4,msdos1 CEF01053F010445D
    else
    search --no-floppy --fs-uuid --set=root CEF01053F010445D
    fi
    chainloader +1
    menuentry 'Windows Vista (loader) (on /dev/sde5)' --class windows --class os $menuentry_id_option 'osprober-chain-4E94BAB294BA9C41' {
    insmod part_msdos
    insmod ntfs
    set root='hd4,msdos5'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos5 --hint-efi=hd4,msdos5 --hint-baremetal=ahci4,msdos5 4E94BAB294BA9C41
    else
    search --no-floppy --fs-uuid --set=root 4E94BAB294BA9C41
    fi
    chainloader +1
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    ### BEGIN /etc/grub.d/60_memtest86+ ###
    ### END /etc/grub.d/60_memtest86+ ###
    Still didn't work though.
    I don't know grub config, but is the UUID specified in
    linux /vmlinuz-linux root=UUID=b21e6211-5e7a-4769-9f53-b9b5d554a242 rw rootflags=subvol=root quiet
    supposed to be the UUID for /boot or /? Because the UUID there is for the btrfs partition being mounted at / (which I guess would explain why it has the correct subvol listed, which I'm not sure if it's necessary, given that should be the default subvolume). So... that's probably alright (just something that stood out to me).
    As for installing grub on another disk: I suppose I could try, though I'd rather keep it on one drive if I can (sometimes it gets complicated enough having Windows and my Windows bootloader on different drives... I should probably try moving the Windows bootloader to the SSD where Windows is installed. Would it matter which drive? The options are:
    sda: 4TB, GPT table, the one I'm having problems with now
    sdb: 2TB, MBR table, nothing in boot sector AFAIK
    sdc: 240GB SSD, GPT table, would rather not use it since Windows is installed on there, even if its bootloader isn't
    sdd: 1TB, MBR table, nothing in boot sector AFAIK
    sde: 500GB, MBR table, has the Windows bootloader so I'd rather not mess that up (although given it's the smallest and I have no free SATA ports, it'll be next to go when I need more space, so I might want to move the bootloader)
    (sdf and sdg which appear in lsblk earlier are just USB flash drives, and I'd rather not have to rely on having to use one of them to boot Linux).
    As for repartitioning /dev/sda: as long as I can do it non-destructively, sure. Well I mean non-destructively for the NTFS partition, which is mostly full of Steam games (and I might have enough room on other drives and portable drives to keep the rest safe), but on my crappy Australian internet connection (aren't they all) it'd probably take me a couple of weeks to redownload them. I don't mind if I have to get rid of the Linux partitions, I already tried going through the install again once before to try to get it to work, another time isn't going to matter. So I guess I could try using gparted to delete the Linux partitions, move the NTFS partition to the end of the disk, and recreate the Linux partitions in front of it (although moving that much data might take a while, so I'd probably want to do it overnight). For reference, right now it's:
    128MB of unformatted space (where the Microsoft reserved partition was, but now it's flagged as a BIOS boot partition, even though it's far bigger than it needs to be for that, I didn't feel like moving the other partitions back just to claim less than 128MB)
    ~2.7TB NTFS data partition (important)
    ~1GB ext4 /boot partition
    8GB swap partition
    ~1TB btrfs partition with subvolumes mounted at /, /home, /etc and /var

  • Fresh btrfs root partition cannot boot/unknown filesystem [solved]

    Just reformatted my SSD with 3 partitions.
    1) EFI
    2) /boot (ext4)
    3) / (btrfs)
    I copied over my systefrom tars, adjusted the new fstab to use btrfs, I rebuilt my kernel images, and rebuilt grub.cfg in the chroot.  When I reboot, I get:
    Welcome to grub!
    error: unknown filesystem
    Entering rescue mode...
    grub rescue>
    Per the wiki, there should be no special setup steps to boot to a btrfs root with grub.  When did I f-up?
    /etc/fstab
    LABEL=arch64 / btrfs defaults,discard,noatime,ssd,compress=lzo 0 0
    LABEL=boot /boot ext4 defaults,discard,noatime 0 2
    Excuse the short post, typing in a phone.
    Last edited by graysky (2013-07-29 01:24:47)

    Yes, it is dropped to a GRUB rescue shell.  I can boot if I manually type the following but WTF?!  Why isn't grub doing this by itself?
    grub rescue> set prefix=(hd0,2)/grub
    grub rescue> insmod (hd0,2)/grub/x86_64-efi/linux.mod
    grub rescue> set root=(hd0,2)
    grub rescue> linux /vmlinuz-linux-ck root=/dev/sda3
    grub rescue> initrd /initramfs-linux-ck.img
    grub rescue> boot
    Link to my autogenerated /boot/grub/grub.cfg
    Last edited by graysky (2013-07-29 00:28:58)

  • [SOLVED] Grub Error 17 and other not so fun stuff

    Booted today and greeted by grub error 17.
    I booted from Arch Live CD
    fdisk -l
    looks ok
    fdisk /dev/sdb
    x,f,w   nothing done, proper order
    ok, let's chroot my install and install grub
    mount /dev/sdb1 /mnt
    unknown filesystem type, doh
    mount -t ext4 /dev/sdb1 /mnt
    nope
    mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
    missing codepage or helper program, or other error
    (aren't you trying to mount an extended partition,
    instead of some logical partition inside?)
    In some cases useful info is found in syslog - try
    dmesg | tail
    dmesg | tail
    attempt to access beyond end of device
    sdb1: rw=0, want=4, limit=2
    EXT4-fs: unable to read superblock
    attempt to access beyond end of device
    sdb1: rw=0, want=4, limit=2
    EXT4-fs: unable to read superblock
    time to fsck ?
    Last edited by bloodniece (2009-10-04 15:11:12)

    bloodniece wrote:
    I fixed it thanks to testdisk.
    When I initially set this install of Arch up I used a whole disk in 2 partitions: / and swap. A grub error 17 led me to believe the partition table was fuxored.  Fdisk did not fix the partition table but it was reporting the root partition as extended, which would not boot and is NOT how I set the system up.  If had been up for about 10 months and working fine.  I was able to use testdisk in a livecd session to both backup my home and etc directories and fix the partition table.
    I'm marking this issue fixed.  But I'm still confused as to what the hell happened.  Unclean shutdown?
    I'm getting contantly ERROR 17...
    I dunno how to fix, I simply reboot some times and it desapears..
    If someone could give me a clue..
    Thx guyz!

Maybe you are looking for

  • Filtering programatically in alv report

    please let me know is it posible to filering in alv report.please respond immediately....

  • New Mac= A new iPod? I don't want this to happen.

    Can you guys please help me? So I have an ipod 4 and I got it 2 years ago. It is old and now extremely slow. So I have just got a new mac book air last month and I used to sync my ipod 4, and iphone 5 on to an old hp computer. I want to sync using my

  • Variable not working in Webtemplate

    Hi, we've defined a variable for our webtemplate but it's not working. It works fine until the variable screen, but the variable isn't populated there. It would be great if somebody would have an idea what's wrong: Here's the link from template on: &

  • About RFC

    hi, I use a RFC FM to get a file in the target system. In the FM, if I failed to open the file, I give a message: messsage s000(00) with 'No file found'. stop. But when I test, I choose a target, the program is dump, I choose another, there is no mes

  • Password questions on new mac pro

    Please forgive a very elementary question from a decades-long PC user. Just received my first Mac ever, a 2.66, 4 gigs,2/500, ati card Pro. Struggling with passwords. Loaded my admin password at initial startup with a "hint" in case I forgot it. The