The terminal returned "Finished. The results are in the file boot_info_results.txt located in /home/visethso/Desktop". I tried "su -
wget 'http://home.comcast.net/~ubuntu_grub/boot_info.txt' && sh ./boot_info.txt". Still didn't work.
The terminal returned "Finished. The results are in the file boot_info_results.txt located in /home/visethso/Desktop". I tried "su -
wget 'http://home.comcast.net/~ubuntu_grub/boot_info.txt' && sh ./boot_info.txt". Still didn't work.
sorry man, I just saw the file on the desktop.
No known boot loader is installed in the MBR of /dev/sda
sda1:
File system: Extended Partition
sda2:
File system: Extended Partition
sda3:
File system: Extended Partition
sda4:
File system: Extended Partition
sda5:
File system: Extended Partition
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xe8b1290e
Device Boot Start End Blocks Id System
/dev/sda1 * 63 119539664 59769801 7 HPFS/NTFS
/dev/sda2 119539665 172987919 26724127+ 83 Linux
/dev/sda3 172987920 176988104 2000092+ 82 Linux swap / Solaris
/dev/sda4 176988105 234436544 28724220 5 Extended
/dev/sda5 176988168 234436544 28724188+ 83 Linux
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start= 63, size=119539602, Id= 7, bootable
/dev/sda2 : start=119539665, size= 53448255, Id=83
/dev/sda3 : start=172987920, size= 4000185, Id=82
/dev/sda4 : start=176988105, size= 57448440, Id= 5
/dev/sda5 : start=176988168, size= 57448377, Id=83
StdErr Messages
Unknown MBR on /dev/sda
00000000 eb 48 90 d0 bc 00 7c 8e c0 8e d8 bf 1e 06 be 1e |.H....|.........|
00000010 7c 50 57 b9 e2 01 f3 a4 b9 00 02 f3 ab cb 80 fa ||PW.............|
00000020 8f 7e 02 b2 80 52 52 bb 94 07 8d af 2a 00 8a 46 |.~...RR.....*..F|
00000030 04 66 8b 7e 08 66 03 3e b3 06 84 c0 74 0b 03 02 |.f.~.f.>....t...|
00000040 80 00 00 80 08 60 2a 0b 00 08 fa 90 90 f6 c2 80 |.....`*.........|
00000050 75 02 b2 80 ea 59 7c 00 00 31 c0 8e d8 8e d0 bc |u....Y|..1......|
00000060 00 20 fb a0 40 7c 3c ff 74 02 88 c2 52 f6 c2 80 |. ..@|<.t...R...|
00000070 74 54 b4 41 bb aa 55 cd 13 5a 52 72 49 81 fb 55 |tT.A..U..ZRrI..U|
00000080 aa 75 43 a0 41 7c 84 c0 75 05 83 e1 01 74 37 66 |.uC.A|..u....t7f|
00000090 8b 4c 10 be 05 7c c6 44 ff 01 66 8b 1e 44 7c c7 |.L...|.D..f..D|.|
000000a0 04 10 00 c7 44 02 01 00 66 89 5c 08 c7 44 06 00 |....D...f.\..D..|
000000b0 70 66 31 c0 89 44 04 66 89 44 0c b4 42 cd 13 72 |pf1..D.f.D..B..r|
000000c0 05 bb 00 70 eb 7d b4 08 cd 13 73 0a f6 c2 80 0f |...p.}....s.....|
000000d0 84 f0 00 e9 8d 00 be 05 7c c6 44 ff 00 66 31 c0 |........|.D..f1.|
000000e0 88 f0 40 66 89 44 04 31 d2 88 ca c1 e2 02 88 e8 |..@f.D.1........|
000000f0 88 f4 40 89 44 08 31 c0 88 d0 c0 e8 02 66 89 04 |..@.D.1......f..|
00000100 66 a1 44 7c 66 31 d2 66 f7 34 88 54 0a 66 31 d2 |f.D|f1.f.4.T.f1.|
00000110 66 f7 74 04 88 54 0b 89 44 0c 3b 44 08 7d 3c 8a |f.t..T..D.;D.}<.|
00000120 54 0d c0 e2 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a |T.....L......l.Z|
00000130 8a 74 0b bb 00 70 8e c3 31 db b8 01 02 cd 13 72 |.t...p..1......r|
00000140 2a 8c c3 8e 06 48 7c 60 1e b9 00 01 8e db 31 f6 |*....H|`......1.|
00000150 31 ff fc f3 a5 1f 61 ff 26 42 7c be 7f 7d e8 40 |1.....a.&B|..}.@|
00000160 00 eb 0e be 84 7d e8 38 00 eb 06 be 8e 7d e8 30 |.....}.8.....}.0|
00000170 00 be 93 7d e8 2a 00 eb fe 47 52 55 42 20 00 47 |...}.*...GRUB .G|
00000180 65 6f 6d 00 48 61 72 64 20 44 69 73 6b 00 52 65 |eom.Hard Disk.Re|
00000190 61 64 00 20 45 72 72 6f 72 00 bb 01 00 b4 0e cd |ad. Error.......|
000001a0 10 ac 3c 00 75 f4 c3 00 00 00 00 00 00 00 00 00 |..<.u...........|
000001b0 00 00 00 00 00 00 00 00 0e 29 b1 e8 00 00 80 01 |.........)......|
000001c0 01 00 07 fe ff ff 3f 00 00 00 92 07 20 07 00 fe |......?..... ...|
000001d0 ff ff 83 fe ff ff d1 07 20 07 3f 8e 2f 03 00 fe |........ .?./...|
000001e0 ff ff 82 fe ff ff 10 96 4f 0a b9 09 3d 00 00 fe |........O...=...|
000001f0 ff ff 05 fe ff ff c9 9f 8c 0a f8 97 6c 03 55 aa |............l.U.|
00000200
boot_info_script.txt: line 106: xxd: command not found
boot_info_script.txt: line 152: vol_id: command not found
boot_info_script.txt: line 152: vol_id: command not found
boot_info_script.txt: line 152: vol_id: command not found
boot_info_script.txt: line 152: vol_id: command not found
boot_info_script.txt: line 152: vol_id: command not found
Is it the right file?
Last edited by blue_sun; December 18th, 2008 at 10:26 PM.
OK, something didn't go right with the script on your setup for some reason. How about downloading the attached "script1.sh.txt" to your Fedora desktop and do:
And replace <username> with your username. Please post the results.Code:su - cd /home/<username>/Desktop sh sript1.sh.txt
Hi John, This is the result. What should I do next?
[visethso@localhost ~]$ su
Password:
[root@localhost visethso]# cd /home/visethso/Desktop
[root@localhost Desktop]# sh sript1.sh.txt
sh: sript1.sh.txt: No such file or directory
[root@localhost Desktop]# sh script1.sh.txt
+ mount
+ grep ' / '
+ awk '{print $1}'
/dev/sda5
+ mkdir /mnt/sda2 /mnt/sda5
+ mount /dev/sda2 /mnt/sda2
+ mount /dev/sda5 /mnt/sda5
+ ls -l /mnt/sda2 /mnt/sda5 /mnt/sda2/boot /mnt/sda5/boot
/mnt/sda2:
total 84
drwxr-xr-x 2 root root 4096 2008-12-17 21:49 bin
drwxr-xr-x 3 root root 4096 2008-12-17 21:48 boot
lrwxrwxrwx 1 root root 11 2008-12-17 21:08 cdrom -> media/cdrom
drwxr-xr-x 4 root root 4096 2008-10-30 12:04 dev
drwxr-xr-x 122 root root 4096 2008-12-17 21:53 etc
drwxr-xr-x 3 root root 4096 2008-12-17 21:20 home
lrwxrwxrwx 1 root root 32 2008-12-17 21:48 initrd.img -> boot/initrd.img-2.6.27-7-generic
drwxr-xr-x 16 root root 4096 2008-12-17 21:49 lib
drwx------ 2 root root 16384 2008-12-17 21:08 lost+found
drwxr-xr-x 3 root root 4096 2008-10-30 11:53 media
drwxr-xr-x 2 root root 4096 2008-10-21 01:27 mnt
drwxr-xr-x 2 root root 4096 2008-10-30 11:53 opt
drwxr-xr-x 2 root root 4096 2008-10-21 01:27 proc
drwxr-xr-x 5 root root 4096 2008-12-17 21:53 root
drwxr-xr-x 2 root root 4096 2008-12-17 21:49 sbin
drwxr-xr-x 2 root root 4096 2008-10-30 11:53 srv
drwxr-xr-x 2 root root 4096 2008-10-15 02:02 sys
drwxrwxrwt 10 root root 4096 2008-12-17 21:53 tmp
drwxr-xr-x 11 root root 4096 2008-10-30 11:58 usr
drwxr-xr-x 15 root root 4096 2008-10-30 12:12 var
lrwxrwxrwx 1 root root 29 2008-12-17 21:48 vmlinuz -> boot/vmlinuz-2.6.27-7-generic
/mnt/sda2/boot:
total 11936
-rw-r--r-- 1 root root 507665 2008-10-24 21:29 abi-2.6.27-7-generic
-rw-r--r-- 1 root root 91364 2008-10-24 21:29 config-2.6.27-7-generic
drwxr-xr-x 2 root root 4096 2008-12-17 21:48 grub
-rw-r--r-- 1 root root 8175421 2008-12-17 21:48 initrd.img-2.6.27-7-generic
-rw-r--r-- 1 root root 124152 2008-09-12 08:11 memtest86+.bin
-rw-r--r-- 1 root root 1029585 2008-10-24 21:29 System.map-2.6.27-7-generic
-rw-r--r-- 1 root root 1073 2008-10-24 21:31 vmcoreinfo-2.6.27-7-generic
-rw-r--r-- 1 root root 2244272 2008-10-24 21:29 vmlinuz-2.6.27-7-generic
/mnt/sda5:
total 116
drwxr-xr-x 2 root root 4096 2008-11-20 08:14 bin
drwxr-xr-x 4 root root 4096 2008-12-18 11:08 boot
drwxr-xr-x 3 root root 4096 2008-11-20 08:13 dev
drwxr-xr-x 103 root root 12288 2008-12-20 04:17 etc
drwxr-xr-x 3 root root 4096 2008-12-18 11:17 home
drwxr-xr-x 16 root root 12288 2008-11-20 08:14 lib
drwx------ 2 root root 16384 2008-11-20 08:10 lost+found
drwxr-xr-x 3 root root 4096 2008-12-20 04:05 media
drwxr-xr-x 4 root root 4096 2008-12-20 04:17 mnt
drwxr-xr-x 2 root root 4096 2008-09-06 22:13 opt
drwxr-xr-x 2 root root 4096 2008-11-20 08:10 proc
drwxr-x--- 5 root root 4096 2008-12-20 04:16 root
drwxr-xr-x 2 root root 12288 2008-11-20 08:16 sbin
drwxr-xr-x 2 root root 4096 2008-11-20 08:18 selinux
drwxr-xr-x 2 root root 4096 2008-09-06 22:13 srv
drwxr-xr-x 2 root root 4096 2008-11-20 08:10 sys
drwxrwxrwt 19 root root 4096 2008-12-20 04:16 tmp
drwxr-xr-x 13 root root 4096 2008-11-20 08:12 usr
drwxr-xr-x 20 root root 4096 2008-11-20 08:16 var
/mnt/sda5/boot:
total 6920
-rw-r--r-- 1 root root 90889 2008-11-19 06:30 config-2.6.27.5-117.fc10.i686
drwxr-xr-x 3 root root 4096 2008-11-20 08:12 efi
drwxr-xr-x 2 root root 4096 2008-12-19 22:30 grub
-rw------- 1 root root 3179670 2008-12-18 11:08 initrd-2.6.27.5-117.fc10.i686.img
-rw-r--r-- 1 root root 112076 2008-04-04 10:16 memtest86+-2.01
-rw-r--r-- 1 root root 1089949 2008-11-19 06:30 System.map-2.6.27.5-117.fc10.i686
-rwxr-xr-x 1 root root 2570960 2008-11-19 06:30 vmlinuz-2.6.27.5-117.fc10.i686
+ cat /mnt/sda2/boot/grub/menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=2c8c8217-baf7-4e46-b70a-f919532d866c ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=2c8c8217-baf7-4e46-b70a-f919532d866c
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 2c8c8217-baf7-4e46-b70a-f919532d866c
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=2c8c8217-baf7-4e46-b70a-f919532d866c ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 2c8c8217-baf7-4e46-b70a-f919532d866c
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=2c8c8217-baf7-4e46-b70a-f919532d866c ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 2c8c8217-baf7-4e46-b70a-f919532d866c
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
+ cat /mnt/sda5/boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,4)
# kernel /boot/vmlinuz-version ro root=/dev/sda5
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=20
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.5-117.fc10.i686)
root (hd0,4)
kernel /boot/vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=fa1e586c-39a2-46a9-965f-b57df84d9ea3 rhgb quiet
initrd /boot/initrd-2.6.27.5-117.fc10.i686.img
title Window XP
rootnoverify (hd0,0)
chainloader +1
title Ubuntu
rootnoverify (hd0,1)
chainloader +1
+ cat /mnt/sda2/boot/grub/grub.conf
cat: /mnt/sda2/boot/grub/grub.conf: No such file or directory
+ cat /mnt/sda5/boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,4)
# kernel /boot/vmlinuz-version ro root=/dev/sda5
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=20
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.5-117.fc10.i686)
root (hd0,4)
kernel /boot/vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=fa1e586c-39a2-46a9-965f-b57df84d9ea3 rhgb quiet
initrd /boot/initrd-2.6.27.5-117.fc10.i686.img
title Window XP
rootnoverify (hd0,0)
chainloader +1
title Ubuntu
rootnoverify (hd0,1)
chainloader +1
+ xxd -l 2 -p /dev/sda
script1.sh.txt: line 13: xxd: command not found
+ xxd -s 1049 -l 2 -p /dev/sda
script1.sh.txt: line 14: xxd: command not found
[root@localhost Desktop]#
Last edited by blue_sun; December 19th, 2008 at 03:26 AM.
OK, how about doing:
And please post the output of the above commands. Next reboot, and choose Ubuntu from your Fedora menu. Let me know if you get a Grub error or exactly what happens.Code:su - grub grub> root (hd0,1) grub> setup (hd0,1) grub> quit
Last edited by caljohnsmith; December 19th, 2008 at 01:28 PM.
This is the result, John. How can I become a sudoers file?
[visethso@localhost ~]$ sudo grub
[sudo] password for visethso:
visethso is not in the sudoers file. This incident will be reported.
[visethso@localhost ~]$ grub> root (hd0,1)
bash: syntax error near unexpected token `('
[visethso@localhost ~]$ grub> setup (hd0,1)
bash: syntax error near unexpected token `('
[visethso@localhost ~]$
Sorry about that, I forgot you don't have sudo in Fedora; I corrected my previous post. Please try again and post the output.
This is the output, John.
[visethso@localhost ~]$ su
Password:
[root@localhost visethso]# grub
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename.]
grub> root (hd0,1)
root (hd0,1)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,1)
setup (hd0,1)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,1)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,1)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd0,1) /boot/grub/stage2 p /boot/grub/grub.conf "... succeeded
Done.
grub> quit
quit
[root@localhost visethso]#
So did you try rebooting, and when you choose Ubuntu from your Fedora menu what happens?
Bookmarks