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 moved my NTFS partition with XP and after restarting got the grub> prompt.
ls,grub-install and mount are not recognized.
find /boot/grub/stage1
(hd0,2,a)
how can I recover? my *nix is osol and I have grub 0.97 (legacy)
I have both a osol and ubuntu cds, but it seems I should be able to load from the grub prompt.
thanks everybody.
Last edited by stephenbbb; 01-23-2011 at 10:45 AM.
This problem happens when GRUB in the MBR cannot find the rest of its files in the partition it expects to find them. Either you moved XP onto the osol partition, thus overwriting it, or you changed the partition numbering.
You are the only person who knows what actually happened. You may have made a mistake. You may need to investigate the contents of the disk partitions. You can do this by booting a live Linux CD and looking at the contents of the disk partitions.
Once you know which partition contains the GRUB files you can tell GRUB to look there during system startup.
Last edited by stress_junkie; 01-23-2011 at 10:57 AM.
Boot rescue mode off of one of your discs
The following will resetup grub and do nothing with the winloader - FYI
Once everything loads and you get to sh
type:
Code:
chroot /mnt/sysimage
*start grub command
#grub
*fnd grub files
grub> find /boot/grub/stage1 or find /grub/grub.conf or find /grub.conf or find /menu.lst
*it will display something like this
(hd0,x)
*root the partition
grub>root (hd0,x)
*setup grup there
grub>setup (hd0)
*quit
grup> quit
after running findroot it actually recognized zfs. I was able to cat /boot/grub/menu.lst and just ran the commands for loading osol as in the menu.lst
I am in osol now. how do I setup grub, so it can boot normally? I looked at /boot/grub/menu.lst and it does not look like what it should be. the one I saw from grub> was very different and the one visible from osol will definitely not work.
becoming su and trying grub does not work.
scb@Constantine:~# grub
bash: grub: command not found
this is what I see from fdisk
Total disk size is 60800 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Other OS 0 0 1 0
2 IFS: NTFS 21568 32035 10468 17
3 Active Solaris2 32036 33994 1959 3
4 EXT LBA 1 19241 19241 32
it looks like the stupid partitioning program I used to shrink the size of NTFS did that and also re-numbered my partitions just out of spite to create problems for me. GRUB seems to be installed on the NTFS partition and not on the osol partition. so maybe I need to direct grub to the proper partition??
I discovered that the active menu.lst is under /rpool/boot/grub/menu.lst
this is the contents which does not work on auto, but works after I do findroot /boot/grub/stage1
scb@Constantine:~$ cat /rpool/boot/grub/menu.lst
splashimage /boot/grub/splash.xpm.gz
background 215ECA
timeout 30
default 1
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
#---------------------END BOOTADM--------------------
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.