




sudo mount /dev/sdXY /mntsudo grub-install --root-directory=/mnt /dev/sdXgksudo nautiluswhich is close to the top. The value 0 is for the first OS on the grub screen, value 1 for the second etc, so edit this to the line for Windows and save. FinallyGRUB_DEFAULT=0
sudo update-grub
HughT wrote:hi linusNoob,
this is very easily fixed at no expense and with no downloads required. Mint will happily give you the option to boot Windows and to make Windows the default. From a live CD
- Code: Select all
sudo mount /dev/sdXY /mnt
replace X and Y with the appropriate drive and partition for Mint boot.note - there's a gap between =/mnt and /dev, and no partition number after sdX.
- Code: Select all
sudo grub-install --root-directory=/mnt /dev/sdX
Re-boot and you should see a list of boot options displayed by the grub screen. Note which line says Windows. Boot into Mint then edit the file /etc/default/grub. You'll have to do this as 'root'. Easiest way is to open the Nautilus file browser as root and browse to /grub.
- Code: Select all
gksudo nautilus
then look for the linewhich is close to the top. The value 0 is for the first OS on the grub screen, value 1 for the second etc, so edit this to the line for Windows and save. FinallyGRUB_DEFAULT=0Next time you boot you'll have Windows as the default OS.
- Code: Select all
sudo update-grub
sudo mount /dev/sdXY /mnt


mintybits wrote:The MBR sector and the partition boot sector are two different things....And in the OP's situation he has a broken PBS and no reinstalling of grub will help because Grub requires the Windows PBS


mint@mint ~ $ sudo os-prober
/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sda7: Linux Mint 12 Lisa (12):LinuxMint:linux
mint@mint ~ $ sudo mount /dev/sda7 /mnt
mint@mint ~ $ sudo grub-install --root-directory=/mnt /dev/sda
grub-probe: error: cannot find a device for /boot (is /dev mounted?).
/usr/sbin/grub-setup: warn: Sector 50 is already in use by FlexNet; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
Installation finished. No error reported
cim wrote:.
/usr/sbin/grub-setup: warn: Sector 50 is already in use by FlexNet; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
Installation finished. No error reported[/code]
(Apparently the installation succeeded despite the error and warning).
After restart I end up with a grub prompt (grub>). I have no idea what to do next

wayne128 wrote:to handle this situation, go to this website, get ubuntu boot repair, follow procedure
https://help.ubuntu.com/community/Boot-Repair
hopefully it will clear for you the flexnet issue

jimwg wrote:mintybits wrote:The MBR sector and the partition boot sector are two different things....And in the OP's situation he has a broken PBS and no reinstalling of grub will help because Grub requires the Windows PBS
Mintybits, after hearing sky-high over my head explanations and techo-banter on other FAQ Linux forums, you sound like a man who knows what he's talking about. Is there any remedy for my situation, that being, after creating a full (non-persistent) install of Mint-XFEC 9 on a 8gig flash drive and then finding out that my XP machine used to do it won't boot by itself but just pops up a screen that says "Grub Rescue> ? I have no XP CD, though I do have a full XP HD backup created by Macrium and a Mint-9 and Mint-Debian live CD if that will help. I am a newbie just playing it by ear via Linux maven suggestions and surprised I even got this far with a nicely working full install Mint flash drive -- and a XP PC that now I dare not turn off or nor be without the flash drive to boot back to XP again!
Any help or tips would be MUCH appreciated!
Jim in NYC

cim wrote:wayne128 wrote:to handle this situation, go to this website, get ubuntu boot repair, follow procedure
https://help.ubuntu.com/community/Boot-Repair
hopefully it will clear for you the flexnet issue
Thanks for the tip.
The tool helped me at least to get back into Mint. The boot menu also returned, but the Windows option has now completely disappeared. Repairing (again) with the Windows installation cd doesn't make any difference unfortunately.
I wonder if linusnoob had more succes?

mintybits wrote:Try the Windows CD again. You need to fix the partition boot record as well as the MBR. It may be you only fixed the MBR. have a look on microsofts website.

cim wrote:mintybits wrote:Try the Windows CD again. You need to fix the partition boot record as well as the MBR. It may be you only fixed the MBR. have a look on microsofts website.
I tried, but no luck. Windows repair says it didn't find any problems. Btw, I also noticed that the Ubuntu boot-repair tool didn't find a Windows bootloader, which I found strange.

sda5: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP: NTFS
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
mintybits wrote:Best to download and run http://bootinfoscript.sourceforge.net/ and post the results here inside code tags. This will show whats going on in detail.
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> Windows is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda1
and looks at sector 1458284546 of the same hard drive
for core.img. core.img is at this location and looks
for (,msdos6)/grub on this drive. No errors found in
the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD
sda2: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /boot.ini /bootmgr /Boot/BCD
/Windows/System32/winload.exe /ntldr /NTDETECT.COM
/wubildr /wubildr.mbr
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda4: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP: NTFS
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System:
Boot files: /ubuntu/disks/root.disk /ubuntu/disks/swap.disk
sda5/Wubi: _____________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /etc/fstab
sda6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.cfg /grub/core.img
sda7: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Linux Mint 12 Lisa
Boot files: /etc/fstab
sda8: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda9: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sda2 206,848 204,802,047 204,595,200 7 NTFS / exFAT / HPFS
/dev/sda3 204,802,048 409,602,047 204,800,000 7 NTFS / exFAT / HPFS
/dev/sda4 409,615,981 1,534,932,991 1,125,317,011 f W95 Extended (LBA)
/dev/sda5 409,615,983 1,458,172,799 1,048,556,817 7 NTFS / exFAT / HPFS
/dev/sda6 1,458,173,952 1,458,759,679 585,728 83 Linux
/dev/sda7 1,458,761,728 1,478,291,455 19,529,728 83 Linux
/dev/sda8 1,478,293,504 1,486,104,575 7,811,072 82 Linux swap / Solaris
/dev/sda9 1,486,106,624 1,534,932,991 48,826,368 83 Linux
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 FAE4D44FE4D4102D ntfs System Reserved
/dev/sda2 0002BDE202BDDD3A ntfs win
/dev/sda3 CEEED643EED6238D ntfs docs
/dev/sda5 01CD157E4A827A60 ntfs storage
/dev/sda6 911e131a-5d13-4b4d-91c4-a52d5e2aba5d ext4
/dev/sda7 f879f352-6cd3-4547-b4bb-8332465d9a38 ext4
/dev/sda8 93d8a7e0-fb47-4b28-9d7e-0d08378838c2 swap
/dev/sda9 ace816f7-ef53-4465-bf52-3ea72d26206f ext4
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda6 /boot ext4 (rw,commit=0)
/dev/sda7 / ext4 (rw,errors=remount-ro,commit=0)
/dev/sda9 /home ext4 (rw,commit=0)
================================ sda2/boot.ini: ================================
--------------------------------------------------------------------------------
[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Windows" /noexecute=optin /fastdetect
--------------------------------------------------------------------------------
============================= sda5/Wubi/etc/fstab: =============================
--------------------------------------------------------------------------------
# UNCONFIGURED FSTAB FOR BASE SYSTEM
--------------------------------------------------------------------------------
================= sda5/Wubi: Location of files loaded by Grub: =================
GiB - GB File Fragment(s)
1.296074867 = 1.391649792 boot/initrd.img-3.0.0-12-generic 40
1.301356316 = 1.397320704 boot/vmlinuz-3.0.0-12-generic 20
0.030629158 = 0.032887808 initrd.img 2
1.301356316 = 1.397320704 vmlinuz 20
============================= sda6/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 ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
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
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root f879f352-6cd3-4547-b4bb-8332465d9a38
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 911e131a-5d13-4b4d-91c4-a52d5e2aba5d
set locale_dir=($root)/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
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
if background_color 0,0,0; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###
### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Linux Mint 12 64-bit, 3.0.0-12-generic (/dev/sda6)' --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 911e131a-5d13-4b4d-91c4-a52d5e2aba5d
linux /vmlinuz-3.0.0-12-generic root=UUID=f879f352-6cd3-4547-b4bb-8332465d9a38 ro quiet splash vt.handoff=7
initrd /initrd.img-3.0.0-12-generic
}
menuentry 'Linux Mint 12 64-bit, 3.0.0-12-generic (/dev/sda6) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 911e131a-5d13-4b4d-91c4-a52d5e2aba5d
echo 'Loading Linux 3.0.0-12-generic ...'
linux /vmlinuz-3.0.0-12-generic root=UUID=f879f352-6cd3-4547-b4bb-8332465d9a38 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.0.0-12-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 911e131a-5d13-4b4d-91c4-a52d5e2aba5d
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 911e131a-5d13-4b4d-91c4-a52d5e2aba5d
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### 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.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
=================== sda6: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
695.329919815 = 746.604816384 grub/core.img 1
695.457054138 = 746.741325824 grub/grub.cfg 1
695.342152596 = 746.617951232 initrd.img-3.0.0-12-generic 2
695.349065781 = 746.625374208 vmlinuz-3.0.0-12-generic 1
=============================== sda7/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda7 during installation
UUID=f879f352-6cd3-4547-b4bb-8332465d9a38 / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda6 during installation
#UUID=911e131a-5d13-4b4d-91c4-a52d5e2aba5d /boot ext4 defaults 0 2
# /home was on /dev/sda9 during installation
UUID=ace816f7-ef53-4465-bf52-3ea72d26206f /home ext4 defaults 0 2
# swap was on /dev/sda8 during installation
UUID=93d8a7e0-fb47-4b28-9d7e-0d08378838c2 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
UUID=911e131a-5d13-4b4d-91c4-a52d5e2aba5d /boot ext4 defaults 0 1
--------------------------------------------------------------------------------
=================== sda7: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
695.622426033 = 746.918892544 initrd.img 2
695.629339218 = 746.926315520 vmlinuz 1
=============================== StdErr Messages: ===============================
xz: (stdin): Compressed data is corrupt

Users browsing this forum: No registered users and 36 guests