You are not logged in.
Pages: 1
Hello! New user here
so I have just installed arch on my ThinkPad T400 and so far it works really well (fast and stable) but I have run into one problem: when I'm trying to boot windows from grub it goes straight into recovery mode (same thing like I would press ThinkVantage button on my laptop). My windows partition looks intact, is there any way to force grub to load windows instead of recovery? Grub is set to boot windows from hd0,msdos1 which is correct. I'm not sure but maybe ntldr was on MBR that I have cleared with Grub and on sda1 there is loader for recovery? Anyone got some ideas? I'd like to not use fixntldr if possible ![]()
Offline
Post the output of:
# parted -lJin, Jîyan, Azadî
Offline
Post the output of:
# parted -l
Here:
Model: ATA WDC WD1600BEVS-0 (scsi)
Dysk /dev/sda: 160GB
Rozmiar sektora (logiczny/fizyczny): 512B/512B
Tablica partycji: msdos
Flagi dysku:
Numer Początek Koniec Rozmiar Typ System plików Flaga
1 32,3kB 52,4GB 52,4GB primary ntfs ładowalna
2 52,4GB 128GB 75,7GB extended lba
5 52,4GB 128GB 75,7GB logical ntfs
3 128GB 132GB 4000MB primary linux-swap(v1)
4 132GB 160GB 27,9GB primary ext4 Last edited by sweety (2015-06-15 07:51:30)
Offline
Post output of bootinfoscript - it is in AUR or download from here:
http://sourceforge.net/projects/bootinfoscript/ .
The version of Windows is ..... ?? Windows was installed in UEFI mode or in BIOS / Legacy mode?
Last edited by Fixxer (2015-06-15 12:30:51)
Offline
Windows was installed in UEFI mode or in BIOS / Legacy mode?
The OP has a non-EFI ("BIOS") system.
@OP: Try again:
# LC_ALL=C parted -lWhich command did you use to install GRUB?
Jin, Jîyan, Azadî
Offline
It's windows xp, installed in legacy mode.
I have used commands from arch beginner install guide, used os-prober for other os autodetection.
Heres the bootinfoscript output:
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
in partition 129 for .
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files: /boot.ini /BOOT.INI /ntldr /NTLDR /NTDETECT.COM
/ntdetect.com
sda2: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System:
Boot files:
sda3: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda4: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Arch Linux ()
Boot files: /boot/grub/grub.cfg /etc/fstab
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Dysk /dev/sda: 149,1 GiB, bajtów: 160041885696, sektorów: 312581808
Jednostki: sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512
Typ etykiety dysku: dos
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 63 102,392,639 102,392,577 7 NTFS / exFAT / HPFS
/dev/sda2 102,392,640 250,341,839 147,949,200 f W95 Extended (LBA)
/dev/sda5 102,392,703 250,341,839 147,949,137 7 NTFS / exFAT / HPFS
/dev/sda3 250,343,424 258,156,543 7,813,120 82 Linux swap / Solaris
/dev/sda4 258,156,544 312,581,807 54,425,264 83 Linux
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 20A0A273A0A24F5A ntfs
/dev/sda3 8c5f2d41-8f1d-42e3-a759-5879d5a084f4 swap
/dev/sda4 87e3eb56-0776-42e7-8933-465e13c68982 ext4
/dev/sda5 9A2668A126687FDD ntfs Dane
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda4 / ext4 (rw,relatime,data=ordered)
================================ sda1/boot.ini: ================================
--------------------------------------------------------------------------------
[boot loader]
timeout=2
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
UnsupportedDebug="do not select this" /debug
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
--------------------------------------------------------------------------------
================================ sda1/BOOT.INI: ================================
--------------------------------------------------------------------------------
[boot loader]
timeout=2
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
UnsupportedDebug="do not select this" /debug
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
--------------------------------------------------------------------------------
=========================== sda4/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
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_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos4' --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 87e3eb56-0776-42e7-8933-465e13c68982
else
search --no-floppy --fs-uuid --set=root 87e3eb56-0776-42e7-8933-465e13c68982
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 ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-87e3eb56-0776-42e7-8933-465e13c68982' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos4' --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 87e3eb56-0776-42e7-8933-465e13c68982
else
search --no-floppy --fs-uuid --set=root 87e3eb56-0776-42e7-8933-465e13c68982
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=87e3eb56-0776-42e7-8933-465e13c68982 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-87e3eb56-0776-42e7-8933-465e13c68982' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-87e3eb56-0776-42e7-8933-465e13c68982' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos4' --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 87e3eb56-0776-42e7-8933-465e13c68982
else
search --no-floppy --fs-uuid --set=root 87e3eb56-0776-42e7-8933-465e13c68982
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=87e3eb56-0776-42e7-8933-465e13c68982 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/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-87e3eb56-0776-42e7-8933-465e13c68982' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos4' --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 87e3eb56-0776-42e7-8933-465e13c68982
else
search --no-floppy --fs-uuid --set=root 87e3eb56-0776-42e7-8933-465e13c68982
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=87e3eb56-0776-42e7-8933-465e13c68982 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/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 'Microsoft Windows XP Professional (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-20A0A273A0A24F5A' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 20A0A273A0A24F5A
else
search --no-floppy --fs-uuid --set=root 20A0A273A0A24F5A
fi
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 ###
### 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+ ###
--------------------------------------------------------------------------------
=============================== sda4/etc/fstab: ================================
--------------------------------------------------------------------------------
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# UUID=87e3eb56-0776-42e7-8933-465e13c68982
/dev/sda4 / ext4 rw,relatime,data=ordered 0 1
# UUID=8c5f2d41-8f1d-42e3-a759-5879d5a084f4
/dev/sda3 none swap defaults 0 0
--------------------------------------------------------------------------------
=================== sda4: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
=============================== StdErr Messages: ===============================
cat: /tmp/BootInfo-EnyNfRXB/Tmp_Log: Nie ma takiego pliku ani katalogu
mdadm: No arrays found in config file or automaticallyOffline
I have used commands from arch beginner install guide, used os-prober for other os autodetection.
The Beginner's Guide has *many* different commands listed.
Please post the *exact* commands you used to install and configure GRUB.
Jin, Jîyan, Azadî
Offline
sweety wrote:I have used commands from arch beginner install guide, used os-prober for other os autodetection.
The Beginner's Guide has *many* different commands listed.
Please post the *exact* commands you used to install and configure GRUB.
I used those:
pacman -S grub
pacman -S os-prober
grub-install --target=i386-pc --recheck --debug /dev/sda
grub-mkconfig -o /boot/grub/grub.cfgOffline
You could try a Windows rescue disk to get Windows booting normally again then re-install GRUB.
https://neosmart.net/blog/2012/windows- … available/
However, I have never used Windows XP so...
Jin, Jîyan, Azadî
Offline
Pages: 1