LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-31-2008, 02:44 PM   #1
MightyHard
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Unhappy Can't access Windows. Weird, weird grub issue.


,

I wanted to have gfx-grub, so therefore I followed these instructions (which are currently the up-to-date ones. The first message isn't up-to date):

http://ubuntuforums.org/showthread.php?t=208855&page=66
Quote:
Originally Posted by ryukent View Post
..
sudo grub

grub> find /boot/grub/stage1
(hdx,y) # this will be the output
grub> root (hdx,y)
grub> setup (hdx)

Obviously you need to change the X and Ys.

sudo grub-install /dev/sdaX

This was very important. Didn't work without it. Note the X is not the same number as the x or y in the previous section as grub uses different numbers. You need to look up the correct hard disk to use. It should be the one are booting to.
...
So I did all the other things, but at that part I accidentally selected Windows C: partition at
sudo grub: grub> root
and sudo grub-install /dev/sda!

So how do I undo the changes?

- currently I can't boot to Windows (Vista)

ps. I need to fix this as quick as possible:
Thanks forehand for the helpers! Thank you really much!
 
Old 12-31-2008, 03:11 PM   #2
MightyHard
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Bump! Anyone ?

I did this:
Code:
cd ~/Desktop && wget 'http://home.comcast.net/~ubuntu_grub/boot_info_script.txt' && sudo bash boot_info_script.txt
Code:
============================= Boot Info Summary: ==============================

 => Grub is installed in the MBR of /dev/sda and looks on the same drive in 
    partition #3 for its boot files.

sda1: _________________________________________________________________________

    File system:       
    Boot sector type:  Grub
    Mounting failed:
mount: you must specify the filesystem type

sda2: _________________________________________________________________________

    File system:       
    Boot sector type:  Grub
    Mounting failed:
mount: you must specify the filesystem type

sda3: _________________________________________________________________________

    File system:       ext3
    Boot sector type:  No Boot Loader
    Boot sector info:  
    Operating System:  Ubuntu 8.10
    Boot files/dirs:   /boot/grub/menu.lst /etc/fstab /boot /boot/grub

sda4: _________________________________________________________________________

    File system:       Extended Partition

sda5: _________________________________________________________________________

    File system:       ext3
    Boot sector type:  No Boot Loader
    Boot sector info:  
    Operating System:  
    Boot files/dirs:   

=========================== Drive/Partition Info: =============================

Drive sda: _____________________________________________________________________

fdisk -lu /dev/sda:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x3ffb046e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63   181984319    90992128+   7  HPFS/NTFS
/dev/sda2   *   299162430   312576704     6707137+   7  HPFS/NTFS
/dev/sda3       181984320   221247179    19631430   83  Linux
/dev/sda4       221247180   299162429    38957625    5  Extended
/dev/sda5       221247243   299162429    38957593+  83  Linux

Partition table entries are not in disk order

sfdisk -V /dev/sda:

/dev/sda: OK

blkid -c /dev/null: ____________________________________________________________

/dev/sda3: UUID="dcfa8068-b3a8-4645-bfcf-cc8dcffedac8" TYPE="ext3" 
/dev/sda5: UUID="16a57d37-35a7-41b6-bf8f-bc376b65311e" TYPE="ext3" 

=============================== "mount" output: ===============================

/dev/sda3 on / type ext3 (rw,relatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
lrm on /lib/modules/2.6.27-9-generic/volatile type tmpfs (rw,mode=755)
/dev/sda5 on /home type ext3 (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/linuxpro/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=linuxpro)

=========================== sda3/boot/grub/menu.lst: ===========================

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
.................
................
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 8.10, kernel 2.6.27-11-generic
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.27-11-generic root=UUID=dcfa8068-b3a8-4645-bfcf-cc8dcffedac8 ro quiet splash 
initrd		/boot/initrd.img-2.6.27-11-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.27-11-generic root=UUID=dcfa8068-b3a8-4645-bfcf-cc8dcffedac8 ro  single
initrd		/boot/initrd.img-2.6.27-11-generic

title		Ubuntu 8.10, kernel 2.6.27-9-generic
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.27-9-generic root=UUID=dcfa8068-b3a8-4645-bfcf-cc8dcffedac8 ro quiet splash 
initrd		/boot/initrd.img-2.6.27-9-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.27-9-generic root=UUID=dcfa8068-b3a8-4645-bfcf-cc8dcffedac8 ro  single
initrd		/boot/initrd.img-2.6.27-9-generic

title		Ubuntu 8.10, memtest86+
root		(hd0,2)
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


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title		Windows Vista/Longhorn (loader)
root		(hd0,1)
savedefault
makeactive
chainloader	+1


=============================== sda3/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda3
UUID=dcfa8068-b3a8-4645-bfcf-cc8dcffedac8 /               ext3    relatime,errors=remount-ro 0       1
# /dev/sda5
UUID=16a57d37-35a7-41b6-bf8f-bc376b65311e /home           ext3    relatime        0       2
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0

================================== sda3/boot: ==================================

total 24640
drwxr-xr-x  3 root root    4096 2008-12-29 10:26 .
drwxr-xr-x 20 root root    4096 2008-12-29 19:27 ..
-rw-r--r--  1 root root  508385 2008-12-19 19:57 abi-2.6.27-11-generic
-rw-r--r--  1 root root  507665 2008-11-21 01:46 abi-2.6.27-9-generic
-rw-r--r--  1 root root   91358 2008-12-19 19:57 config-2.6.27-11-generic
-rw-r--r--  1 root root   91364 2008-11-21 01:46 config-2.6.27-9-generic
drwxr-xr-x  3 root root    4096 2008-12-31 21:50 grub
-rw-r--r--  1 root root 8621630 2008-12-24 18:09 initrd.img-2.6.27-11-generic
-rw-r--r--  1 root root 8619552 2008-12-15 14:31 initrd.img-2.6.27-9-generic
-rw-r--r--  1 root root  124152 2008-09-11 23:11 memtest86+.bin
-rw-r--r--  1 root root 1031799 2008-12-19 19:57 System.map-2.6.27-11-generic
-rw-r--r--  1 root root 1029585 2008-11-21 01:46 System.map-2.6.27-9-generic
-rw-r--r--  1 root root    1074 2008-12-19 19:58 vmcoreinfo-2.6.27-11-generic
-rw-r--r--  1 root root    1073 2008-11-21 01:48 vmcoreinfo-2.6.27-9-generic
-rw-r--r--  1 root root 2248912 2008-12-19 19:57 vmlinuz-2.6.27-11-generic
-rw-r--r--  1 root root 2244304 2008-11-21 01:46 vmlinuz-2.6.27-9-generic

=============================== sda3/boot/grub: ===============================

total 252
drwxr-xr-x 3 root root   4096 2008-12-31 21:50 .
drwxr-xr-x 3 root root   4096 2008-12-29 10:26 ..
-rw-r--r-- 1 root root    197 2008-12-31 21:35 default
-rw-r--r-- 1 root root     15 2008-10-04 23:10 device.map
-rw-r--r-- 1 root root   8108 2008-12-31 21:35 e2fs_stage1_5
-rw-r--r-- 1 root root   7856 2008-12-31 21:35 fat_stage1_5
-rw-r--r-- 1 root root     16 2008-12-31 21:35 installed-version
-rw-r--r-- 1 root root   8712 2008-12-31 21:35 jfs_stage1_5
-rw-r--r-- 1 root root   5012 2008-10-04 18:30 menu (copy).lst
-rw-r--r-- 1 root root   5117 2008-12-31 21:50 menu.lst
-rw-r--r-- 1 root root   5143 2008-12-31 21:50 menu.lst~
-rw-r--r-- 1 root root   5259 2008-12-31 21:25 menu.lst.backup
-rw-r--r-- 1 root root   5259 2008-12-31 21:20 menu.lst.backup~
-rw-r--r-- 1 root root   7352 2008-12-31 21:35 minix_stage1_5
-rw-r--r-- 1 root root   9756 2008-12-31 21:35 reiserfs_stage1_5
drwxr-xr-x 2 root root   4096 2008-11-13 14:04 splashimages
-rw-r--r-- 1 root root    512 2008-12-31 21:35 stage1
-rw-r--r-- 1 root root 121460 2008-12-31 21:35 stage2
-rw-r--r-- 1 root root   9556 2008-12-31 21:35 xfs_stage1_5

=============================== StdErr Messages: ===============================

/dev/sda1: unknown volume type
/dev/sda2: unknown volume type

Last edited by MightyHard; 12-31-2008 at 03:28 PM. Reason: made this less space taking
 
Old 12-31-2008, 04:35 PM   #3
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
To undo your damage to /dev/sda you'll need to reinstall the Windows boot sector. Don't know about Vista, but with XP, you put in the install CD, get to the "rescue" part and use fixmbr. You didn't by any chance save the bootsector first with dd?
 
  


Reply

Tags
boot, gfx, grub, linux, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird GRUB Issue. Abomb Linux - Software 6 11-24-2006 09:02 PM
Insanly weird issue trying to access bugs.gentoo.org from my NATed system node Linux - Networking 16 11-15-2006 12:37 PM
weird, weird problems with logitech precision USB gamepad ikataii Linux - Hardware 4 10-14-2005 04:31 AM
a weird issue about which jiawj Red Hat 2 04-26-2005 09:06 AM
Weird 2.6 Kernel issue svarreby Fedora 2 02-18-2004 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration