Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Ubuntu 10.04 with Windows

  • 04-07-2010 5:20pm
    #1
    Registered Users, Registered Users 2 Posts: 742 ✭✭✭


    I have recently installed Ubuntu 10.04 but kept Windows XP on the laptop too, however when I choose windows in the start up process it fails to load, has anbody had similar problems or have any ideas how í could get windows back

    Thanks

    tom


Comments

  • Registered Users, Registered Users 2 Posts: 17,727 ✭✭✭✭Sherifu


    From Ubuntu;

    Check that ntldr and ntdetect.com are on the root of your xp partition.
    Also check the boot.ini on your xp partition contains the right info.
    If you have repartitioned when installing ubuntu things may have changed and need to be updated there.

    e.g. for windows xp on the first disk and first partition it will look like this;

    [boot loader]
    timeout=30
    default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
    [operating systems]
    multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /NOEXECUTE=OPTIN /FASTDETECT


  • Registered Users, Registered Users 2 Posts: 721 ✭✭✭mk6705


    So windows XP isn't booting? Try this. Open terminal in Ubuntu. (Applications-Accessories-Terminal) and try re-installing GRUB (Google "Ubuntu GRUB install command").
    If that doesn't do it...then come back.


  • Registered Users, Registered Users 2 Posts: 742 ✭✭✭mayotom


    Adro947 wrote: »
    So windows XP isn't booting? Try this. Open terminal in Ubuntu. (Applications-Accessories-Terminal) and try re-installing GRUB (Google "Ubuntu GRUB install command").
    If that doesn't do it...then come back.

    Thanks Adro

    I have tried that but to no avail, just to give you some more info
    at the beginning when I boot up I have the option to choose ubuntu(default) or memory test of Windows
    when I choose windows I eventually get taken to a rescue Sony Vaio Rescue Screen, which gives choices like hardware diagnostics( I have run it but all is fine) or format the C drive, really don t want to do that, or windows safe mode with doesnt work


    Sherif

    I have not been able to find boot.ini

    sorry Im a bit rusty with these things


    Also I have noticed a few other issues, when I was originally installing ubuntu my batteries died and i had to start again, but now I have 2 30GB partitions for ubuntu, is there a way to undo this


    thanks guys


  • Registered Users, Registered Users 2 Posts: 17,727 ✭✭✭✭Sherifu


    The partitions are easily fixed with the partition editor on the Ubuntu live cd.
    You can delete the partition you don't want assuming it's empty and resize the other one to fill the free space.

    Not finding boot.ini is a problem.
    Can you give me an idea of what your disk was like before installing Ubuntu and what it's like now?
    i.e. was it all xp and now it's supposed to be half for xp and half for ubuntu?
    The failed install may have messed some things up on your machine.


  • Registered Users, Registered Users 2 Posts: 742 ✭✭✭mayotom


    Sherifu wrote: »
    The partitions are easily fixed with the partition editor on the Ubuntu live cd.
    You can delete the partition you don't want assuming it's empty and resize the other one to fill the free space.

    Not finding boot.ini is a problem.
    Can you give me an idea of what your disk was like before installing Ubuntu and what it's like now?
    i.e. was it all xp and now it's supposed to be half for xp and half for ubuntu?
    The failed install may have messed some things up on your machine.

    Hi Serifu,

    Sorry I did make another mistake with my original post as the OS was Windows Vista, Before the install everything was windows, where as now it is split 144GB to Windows, 30 to Ubuntu and 31 to Ubuntu again--

    also I installed from a memory stick where I downloaded Ubuntu, I presume I can find the partition editor there

    where exactly would I find the boot.ini file I presumed that it would be there as soon as I opened the windows drive, would it be a hidden file?

    thanks


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    mayotom wrote: »
    when I choose windows I eventually get taken to a rescue Sony Vaio Rescue Screen
    Sounds like Grub's entry for "Windows" is just pointing to the wrong partition number (Vaio recovery partition instead of the Windows partition). This could happen if there are multiple FAT or NTFS partitions. Can you run these commands in terminal and paste the output here?
    sudo fdisk -l
    
    cat /boot/grub/menu.lst
    
    cat /boot/grub/grub.cfg
    


  • Registered Users, Registered Users 2 Posts: 742 ✭✭✭mayotom


    sudo fdisk -l

    thomas@thomas-csf:~$ sudo fdisk -l
    [sudo] password for thomas:

    Disk /dev/sda: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xfa414f60

    Device Boot Start End Blocks Id System
    /dev/sda1 1 1302 10454016 27 Unknown
    /dev/sda2 * 1302 18796 140517235+ 7 HPFS/NTFS
    /dev/sda3 18796 30402 93225985 5 Extended
    /dev/sda5 22665 26390 29928670 83 Linux
    /dev/sda6 30081 30402 2580480 82 Linux swap / Solaris
    /dev/sda7 18796 22499 29750272 83 Linux
    /dev/sda8 22500 22665 1325056 82 Linux swap / Solaris
    /dev/sda9 26391 29922 28369920 83 Linux
    /dev/sda10 29923 30080 1267712 82 Linux swap / Solaris

    Partition table entries are not in disk order

    Disk /dev/sdb: 4007 MB, 4007657472 bytes
    5 heads, 32 sectors/track, 48921 cylinders
    Units = cylinders of 160 * 512 = 81920 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xa483e143

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 51 48922 3909696 b W95 FAT32

    cat /boot/grub/menu.lst

    thomas@thomas-csf:~$ cat /boot/grub/menu.lst
    cat: /boot/grub/menu.lst: No such file or directory

    cat /boot/grub/grub.cfg[/code]


    thomas@thomas-csf:~$ cat /boot/grub/grub.cfg[/code]
    cat: /boot/grub/grub.cfg[/code]: No such file or directory



    So it seems to be an issue with the grub.cfg file, I have gone into the file directly and it is located as per the above directory, below is the text from the grub.cfg file
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #

    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    set default="0"
    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 recordfail {
    set recordfail=1
    if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
    }
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set abc18381-50c6-4895-a267-4add974a27c1
    if loadfont /usr/share/grub/unicode.pf2 ; then
    set gfxmode=640x480
    insmod gfxterm
    insmod vbe
    if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
    fi
    fi
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set abc18381-50c6-4895-a267-4add974a27c1
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    if [ ${recordfail} = 1 ]; then
    set timeout=-1
    else
    set timeout=10
    fi
    ### END /etc/grub.d/00_header ###

    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    ### END /etc/grub.d/05_debian_theme ###

    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.32-22-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set abc18381-50c6-4895-a267-4add974a27c1
    linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=abc18381-50c6-4895-a267-4add974a27c1 ro quiet splash
    initrd /boot/initrd.img-2.6.32-22-generic-pae
    }
    menuentry 'Ubuntu, with Linux 2.6.32-22-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set abc18381-50c6-4895-a267-4add974a27c1
    echo 'Loading Linux 2.6.32-22-generic-pae ...'
    linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=abc18381-50c6-4895-a267-4add974a27c1 ro single
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-2.6.32-22-generic-pae
    }
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set abc18381-50c6-4895-a267-4add974a27c1
    linux16 /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set abc18381-50c6-4895-a267-4add974a27c1
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows Vista (loader) (on /dev/sda1)" {
    insmod ntfs
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set c680c94c80c943a1
    chainloader +1
    }
    menuentry "Windows Recovery Environment (loader) (on /dev/sda2)" {
    insmod ntfs
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 1c245d09245ce774
    drivemap -s (hd0) ${root}
    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 ###


  • Registered Users, Registered Users 2 Posts: 17,727 ✭✭✭✭Sherifu


    mayotom wrote: »
    thomas@thomas-csf:~$ cat /boot/grub/grub.cfg[/code]
    cat: /boot/grub/grub.cfg[/code]: No such file or directory

    The [/code] added onto the end of the filename is why it didn't find your grub.cfg. Some misplaced vbulletin code. :)

    Try;

    sudo update-grub

    and paste grub.cfg again.


  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    Comparing your partition table to the entries in your grub.cfg, I think these are swapped:

    Windows Recovery Environment (loader) (on /dev/sda2)
    Windows Vista (loader) (on /dev/sda1)Windows Vista (loader) (on /dev/sda1)


    If you pick Windows Recovery Environment in the boot menu, Vista starts?


  • Registered Users, Registered Users 2 Posts: 742 ✭✭✭mayotom


    Sherifu wrote: »

    Try;

    sudo update-grub

    and paste grub.cfg again.

    thomas@thomas-csf:~$ cat /boot/grub/grub.cfg
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #

    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    set default="0"
    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 recordfail {
    set recordfail=1
    if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
    }
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set f6da6d16-ac11-42e7-8112-6a6330558f36
    if loadfont /usr/share/grub/unicode.pf2 ; then
    set gfxmode=640x480
    insmod gfxterm
    insmod vbe
    if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
    fi
    fi
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set f6da6d16-ac11-42e7-8112-6a6330558f36
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    if [ ${recordfail} = 1 ]; then
    set timeout=-1
    else
    set timeout=10
    fi
    ### END /etc/grub.d/00_header ###

    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    ### END /etc/grub.d/05_debian_theme ###

    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.32-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set f6da6d16-ac11-42e7-8112-6a6330558f36
    linux /boot/vmlinuz-2.6.32-23-generic root=UUID=f6da6d16-ac11-42e7-8112-6a6330558f36 ro quiet splash
    initrd /boot/initrd.img-2.6.32-23-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set f6da6d16-ac11-42e7-8112-6a6330558f36
    echo 'Loading Linux 2.6.32-23-generic ...'
    linux /boot/vmlinuz-2.6.32-23-generic root=UUID=f6da6d16-ac11-42e7-8112-6a6330558f36 ro single
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-2.6.32-23-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set f6da6d16-ac11-42e7-8112-6a6330558f36
    linux /boot/vmlinuz-2.6.32-22-generic root=UUID=f6da6d16-ac11-42e7-8112-6a6330558f36 ro quiet splash
    initrd /boot/initrd.img-2.6.32-22-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set f6da6d16-ac11-42e7-8112-6a6330558f36
    echo 'Loading Linux 2.6.32-22-generic ...'
    linux /boot/vmlinuz-2.6.32-22-generic root=UUID=f6da6d16-ac11-42e7-8112-6a6330558f36 ro single
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-2.6.32-22-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set f6da6d16-ac11-42e7-8112-6a6330558f36
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=f6da6d16-ac11-42e7-8112-6a6330558f36 ro quiet splash
    initrd /boot/initrd.img-2.6.32-21-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set f6da6d16-ac11-42e7-8112-6a6330558f36
    echo 'Loading Linux 2.6.32-21-generic ...'
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=f6da6d16-ac11-42e7-8112-6a6330558f36 ro single
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-2.6.32-21-generic
    }
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set f6da6d16-ac11-42e7-8112-6a6330558f36
    linux16 /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set f6da6d16-ac11-42e7-8112-6a6330558f36
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows Vista (loader) (on /dev/sda1)" {
    insmod ntfs
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set c680c94c80c943a1
    chainloader +1
    }
    menuentry "Windows Recovery Environment (loader) (on /dev/sda2)" {
    insmod ntfs
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 1c245d09245ce774
    drivemap -s (hd0) ${root}
    chainloader +1
    }
    menuentry "Ubuntu, with Linux 2.6.32-22-generic-pae (on /dev/sda5)" {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set abc18381-50c6-4895-a267-4add974a27c1
    linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=abc18381-50c6-4895-a267-4add974a27c1 ro quiet splash
    initrd /boot/initrd.img-2.6.32-22-generic-pae
    }
    menuentry "Ubuntu, with Linux 2.6.32-22-generic-pae (recovery mode) (on /dev/sda5)" {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set abc18381-50c6-4895-a267-4add974a27c1
    linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=abc18381-50c6-4895-a267-4add974a27c1 ro single
    initrd /boot/initrd.img-2.6.32-22-generic-pae
    }
    menuentry "Ubuntu, with Linux 2.6.32-21-generic (on /dev/sda7)" {
    insmod ext2
    set root='(hd0,7)'
    search --no-floppy --fs-uuid --set 3241aca2-89ed-4af0-a51a-48f70342e7ec
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=3241aca2-89ed-4af0-a51a-48f70342e7ec ro quiet splash
    initrd /boot/initrd.img-2.6.32-21-generic
    }
    menuentry "Ubuntu, with Linux 2.6.32-21-generic (recovery mode) (on /dev/sda7)" {
    insmod ext2
    set root='(hd0,7)'
    search --no-floppy --fs-uuid --set 3241aca2-89ed-4af0-a51a-48f70342e7ec
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=3241aca2-89ed-4af0-a51a-48f70342e7ec ro single
    initrd /boot/initrd.img-2.6.32-21-generic
    }
    ### END /etc/grub.d/30_os-prober ###

    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 742 ✭✭✭mayotom


    Snowbat wrote: »
    Comparing your partition table to the entries in your grub.cfg, I think these are swapped:

    Windows Recovery Environment (loader) (on /dev/sda2)
    Windows Vista (loader) (on /dev/sda1)Windows Vista (loader) (on /dev/sda1)


    If you pick Windows Recovery Environment in the boot menu, Vista starts?

    When I choose Windows recovery environment, the screen goes black for a few seconds and returns back to the boot menu,

    Attached is a copy of that original screen..gAbTSl8Zf7psK_xLSwqJIA?feat=directlink


  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    Looks related:
    https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/576915
    https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/476625

    I suspect "drivemap -s (hd0) ${root}" should not be there and is throwing you back to the boot menu but I am unfamiliar with the new GRUB2 system and I don't have a 10.04 install to check.


  • Registered Users, Registered Users 2 Posts: 742 ✭✭✭mayotom


    Snowbat wrote: »
    Looks related:
    https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/576915
    https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/476625

    I suspect "drivemap -s (hd0) ${root}" should not be there and is throwing you back to the boot menu but I am unfamiliar with the new GRUB2 system and I don't have a 10.04 install to check.

    So can I remove "drivemap -s (hd0) ${root}" or swap around the boot record so that Vista comes before the recovery, if yes, then what would be the safest way to do this?


  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    http://ubuntuforums.org/showthread.php?t=1195275
    GRUB2 is awkward. You *can* edit grub.cfg but it is discouraged and they've set it to read-only as an extra obstacle. Also, your changes could be overwritten by a system update.

    There is a mechanism for custom entries which is probably the safest way to proceed. Paste the following in an editor, save as /etc/grub.d/40_custom and run update-grub, reboot and try out the new Windows entry that will show up at the bottom of the boot menu.
    #!/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" {
    insmod ntfs
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 1c245d09245ce774
    chainloader +1
    }
    


  • Registered Users, Registered Users 2 Posts: 742 ✭✭✭mayotom


    Thanks Snowbat, is there a way to make 40_custom editable, I cant replace it as it is read only

    also I seem to have UBUNTU installed on two partitions, but I dont know which one it is booting from , how can I find out which one it is?

    thanks again
    Thomas


  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    Try saving the file as /etc/grub.d/41_custom

    Then run these commands in terminal:
    sudo chmod +x /etc/grub.d/41_custom
    sudo update-grub

    Reboot and try out the new Windows entry that will (hopefully) show up at the bottom of the boot menu.


  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    mayotom wrote: »
    also I seem to have UBUNTU installed on two partitions, but I dont know which one it is booting from , how can I find out which one it is?

    In the grub.cfg in post #8, the default appears to be 'Ubuntu, with Linux 2.6.32-22-generic-pae' on sda5. The grub.cfg in post #11 is different though - the default appears to be 'Ubuntu, with Linux 2.6.32-23-generic' on sda9 and there are also entries for Ubuntu installs on sda5 and sda7.

    Each menu entry in grub.cfg has an associated set root= line. set root='(hd0,9)' is a pointer to sda9, set root='(hd0,2)' is sda2 etc. According to the guide, default="0" sets the default to the first "menuentry".


  • Registered Users, Registered Users 2 Posts: 742 ✭✭✭mayotom


    Snowbat wrote: »
    Try saving the file as /etc/grub.d/41_custom

    Then run these commands in terminal:
    sudo chmod +x /etc/grub.d/41_custom
    sudo update-grub

    Reboot and try out the new Windows entry that will (hopefully) show up at the bottom of the boot menu.


    Hi Snowbat,

    I have tried to create this file but I can t save anything to this location as the entire folder is read only(when I bring up the folders properties, it says that I am not the owner so cant make changes), is there a way to make it a writable folder?

    Thanks

    mayotom


  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    Save the file as /home/thomas/41_custom and run these in a terminal:
    sudo mv /home/thomas/41_custom /etc/grub.d/
    sudo chmod +x /etc/grub.d/41_custom
    sudo update-grub

    If instead you want to edit the existing /etc/grub.d/40_custom as root (I would at this stage just to see if the fix works, or if update-grub fails to add 41_custom created above):

    sudo gedit /etc/grub.d/40_custom
    (...save your changes and...)
    sudo chmod +x /etc/grub.d/40_custom
    sudo update-grub


    To answer to your question, you could make the directory (folder) world-writable:
    sudo chmod 777 /etc/grub.d/

    Or change the owner to thomas:
    sudo chown thomas /etc/grub.d/

    Or give thomas ownership of the files already in there:
    sudo chown thomas /etc/grub.d/*


  • Registered Users, Registered Users 2 Posts: 742 ✭✭✭mayotom


    Snowbat wrote: »
    Save the file as /home/thomas/41_custom and run these in a terminal:
    sudo mv /home/thomas/41_custom /etc/grub.d/
    sudo chmod +x /etc/grub.d/41_custom
    sudo update-grub

    Thanks Snowbat,

    Now the new windows option is available, however when I choose it, nothing happens, I just get a blank screen with a cursor in the top left of the screen, but I cant input anything there


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    Unfortunately I'm out of ideas. It's difficult to tell if this is GRUB2 hanging or Vista failing to start.

    If nobody else has any suggestions, I'd recommend asking over at http://ubuntuforums.org/


  • Registered Users, Registered Users 2 Posts: 742 ✭✭✭mayotom


    Snowbat wrote: »
    Unfortunately I'm out of ideas. It's difficult to tell if this is GRUB2 hanging or Vista failing to start.

    If nobody else has any suggestions, I'd recommend asking over at http://ubuntuforums.org/

    Thanks Snowbat,,


Advertisement