Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm a newbie. I have installed Linux Mint 13 Mate which works well once its loaded but I can't seem get Linux to boot up automatically. After turning on the pc it automatically goes into XP. If I want to use linux I have to boot up with the usb stick that I created. Start up manager and the grub customizer show Linux as the default OS.
Thanks.
That might imply you never installed grub to the MBR of the (internal) hard disk, but to the USB only. Hopefully Mint has bootinfoscript pre-installed - open a terminal and run
Code:
sudo bash boot_info_script.sh
.
If it doesn't work, go here and do as it says - in either case, post the RESULTS.txt it generates here so we can see what the layout is.
Apparently the bootscript info wasn't preinstalled?? I followed your next instruction and here are the results. Thx.
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> Windows is installed in the MBR of /dev/sda.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and uses an
embedded config file:
---------------------------------------------------------------------------
search.fs_uuid 07bd9cee-a261-44ae-96bf-41662cd675dc root
set prefix=($root)/boot/grub
---------------------------------------------------------------------------
-----.
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 /ntldr /NTDETECT.COM
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:
File system: vfat
Boot sector type: SYSLINUX 4.06 4.06-pre1
Boot sector info: Syslinux looks at sector 15254 of /dev/sdb1 for its
second stage. SYSLINUX is installed in the directory.
No errors found in the Boot Parameter Block.
Operating System:
Boot files: /syslinux/syslinux.cfg /ldlinux.sys
--------------------------------------------------------------------------------
#
# 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
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 07bd9cee-a261-44ae-96bf-41662cd675dc
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 07bd9cee-a261-44ae-96bf-41662cd675dc
set locale_dir=($root)/boot/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
### 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 ###
function gfxmode {
set gfxpayload="$1"
if [ "$1" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
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 13 MATE 32-bit, 3.2.0-23-generic (/dev/sda6)' --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 07bd9cee-a261-44ae-96bf-41662cd675dc
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=07bd9cee-a261-44ae-96bf-41662cd675dc ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Linux Mint 13 MATE 32-bit, 3.2.0-23-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 07bd9cee-a261-44ae-96bf-41662cd675dc
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=07bd9cee-a261-44ae-96bf-41662cd675dc ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-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 07bd9cee-a261-44ae-96bf-41662cd675dc
linux16 /boot/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 07bd9cee-a261-44ae-96bf-41662cd675dc
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root AA7434A2743472E5
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 $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
# /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/sda6 during installation
UUID=07bd9cee-a261-44ae-96bf-41662cd675dc / ext4 errors=remount-ro 0 1
# swap was on /dev/sda7 during installation
UUID=30694711-0914-48eb-ae93-14792c377281 none swap sw 0 0
--------------------------------------------------------------------------------
=================== sda6: Location of files loaded by Grub: ====================
menu background splash.jpg
menu title Welcome to Linux Mint 13
menu color screen 37;40 #80ffffff #00000000 std
MENU COLOR border 30;44 #40ffffff #a0000000 std
MENU COLOR title 1;36;44 #ffffffff #a0000000 std
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel 37;44 #50ffffff #a0000000 std
MENU COLOR help 37;40 #c0ffffff #a0000000 std
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07 37;40 #90ffffff #a0000000 std
MENU COLOR tabmsg 31;40 #ffDEDEDE #00000000 std
MENU HIDDEN
MENU HIDDENROW 8
MENU WIDTH 78
MENU MARGIN 15
MENU ROWS 5
MENU VSHIFT 7
MENU TABMSGROW 11
MENU CMDLINEROW 11
MENU HELPMSGROW 16
MENU HELPMSGENDROW 29
label live
menu label Start Linux Mint
kernel /casper/vmlinuz
append noprompt cdrom-detect/try-usb=true persistent file=/cdrom/preseed/mint.seed boot=casper initrd=/casper/initrd.lz quiet splash --
menu default
label xforcevesa
menu label Start in compatibility mode
kernel /casper/vmlinuz
append noprompt cdrom-detect/try-usb=true persistent file=/cdrom/preseed/mint.seed boot=casper xforcevesa initrd=/casper/initrd.lz ramdisk_size=1048576 root=/dev/ram rw noapic noapci nosplash irqpoll --
label memtest
menu label Memory test
kernel memtest
label local
menu label Boot from local drive
localboot 0x80
--------------------------------------------------------------------------------
================= sdb1: Location of files loaded by Syslinux: ==================
Yep, as I suspected, the Windoze loadere is still in the MBR. The rest looks o.k.
When you boot the USB, do you run from the USB, or do you select "Boot first hard disk" (or whatever the option uis these days) ?. Your answer affects the recovery you do.
I start up the pc and enter boot up screen (f12) which gives me a choice of boot up with hard disk or cd rom. I choose hard disk and then it goes to the next screen which gives me a choice of W2....(I assume this is xp) or usb....(linux). I choose usb which takes me to the next screen which gives me 4 or 5 choices. The first one on the list is Linux which I then select. After that Linux Mint 13 opens up.
What you describe happening in your last post is exactly what would be expected based on the output of the bootinfoscript. You have Mint installed on a 2GB flash drive with the Mint bootloader on that drive also. You're not going to be able to do much with it because if you download software, create files/directories you will soon run out of space on the flash drive. If you install the Mint bootloader to the master boot record of the primary drive, you will be unable to boot either xp or Mint (obviously) without the flash. If you want to use a full version of Mint, you would be better off installing it to a hard drive. If you are just trying Mint out, leave it the way it is. If you want to do something else, post back with your intentions.
What you describe happening in your last post is exactly what would be expected based on the output of the bootinfoscript. You have Mint installed on a 2GB flash drive with the Mint bootloader on that drive also. You're not going to be able to do much with it because if you download software, create files/directories you will soon run out of space on the flash drive. If you install the Mint bootloader to the master boot record of the primary drive, you will be unable to boot either xp or Mint (obviously) without the flash. If you want to use a full version of Mint, you would be better off installing it to a hard drive. If you are just trying Mint out, leave it the way it is. If you want to do something else, post back with your intentions.
I believe mint is installed sda6 & sda7 just not to mbr
I believe mint is installed sda6 & sda7 just not to mbr
Well, as they say at firefox "that's embarassing". I don't know how I missed that. Thanks for pointing it out. Below is a link to linux mint which explains resinstalling Grub2 to the mbr from the CD. Your root directory should be sda6. You do understand this will overwrite the windows code in the mbr? Should not be a problem as Grub2 usually detects other systems (windows) and will create an entry in the boot menu. If you have a problem, post back and I'm sure someone will be able to help.
Next, I removed the usb stick and restarted the pc.
Screen appears:
“Veryfying DMI Pool Data………
Error: file not found.
Grub rescue>”
I used control alt delete to get out of that screen.
I tried to boot again with the usb stick and was able to get into linux, luckily. Also, I booted another time with the usb and was able to get back into xp.
Yes, I used the usb stick to open up mint then followed the previous instructions. I rebooted after that and then I got that screen message: ......grub rescue>
Wrong - that was supposed to be after you rebooted.
Now you're going to need a chroot. Try this from the liveUSB
Code:
sudo mount /dev/sda6 /mnt
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
sudo grub-install /dev/sda
sudo update-grub
Here is a simple solution:
1) Boot up with XP
2) Right Click on My Computer and select properties
3) Click on the Advanced tab.
4) Click on 'Settings' under Startup and Recovery
5) Select your default boot OS under Default Operating System list.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.