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.
The line "root (hdX,Y)" would be the drive with grub on it, which would be listed while running the above commands. Likely it would be (hd0,0) or (hd0,1) -- try (hd0,0) first. It may be something else, given that your fdisk printout listed "sda1" and "sdb1". Try whatever it shows you after the "find" command (note, the find command may be "find /grub/stage1" rather than "find /boot/grub/stage1"). Hard drives typically are "hd" and floppies "fd", whereas usb drives often are "sd", but it seems a lot of people get their hard-drives labelled as "sd" for some reason.
If the live-CD allows you to log in as root, then the first line "sudo grub" would simply be "grub".
Note, I'm assuming from your question above that you can't boot in, and get an error from grub instead (IE, "grub 1.5 error 21", or something like that). If you can boot in to the one OS that has grub, but can't boot into the other OS you have -- W2K -- then that's a different matter. In that case, you may be able to edit the menu.lst file, or simply run update-grub or os-prober. Lemme know which is the case.
Last edited by mark_alfred; 02-21-2011 at 11:15 AM.
Reason: I figured I may have misinterpreted the question.
I am 100% intent on using Ubuntu as my main future Tool. The support I experienced alone sufficed for a permanent conversion.
Its just that I have many important and sentimental files on WK2 and on the Ubuntu 10.10 disks.
The original W2K oem instal disk had let me down completely. " it could not even 'see' the 2 WD drives" that the Ubuntu disk utility had shown in all their glory!
I am presently restoring from a .tip archive via Acronis and found out during a 7 hour projected task to restore that I had Ubuntu 8 on the same back-up file!!!!
I shall attempt your screenshots etc method afterwards. I have also downloaded LTS 10.4.2 for this purpose already.
You all have been very helpful but I do not yet dare to push the 'solved' button for fear of losing the thread. My brain tells me it is solved though.
Meanwhile the Acronis restorer has changed his estimate down from 7 hours to 1 hr 47 minutes!
ps I had my grandson -who sees like a hawk- test the difference between 'l' and '1' and had him stymied until I pushed him for more vigilance! It made my day! Thanks!
The line "root (hdX,Y)" would be the drive with grub on it, which would be listed while running the above commands. Likely it would be (hd0,0) or (hd0,1) -- try (hd0,0) first. It may be something else, given that your fdisk printout listed "sda1" and "sdb1". Try whatever it shows you after the "find" command (note, the find command may be "find /grub/stage1" rather than "find /boot/grub/stage1"). Hard drives typically are "hd" and floppies "fd", whereas usb drives often are "sd", but it seems a lot of people get their hard-drives labelled as "sd" for some reason.
If the live-CD allows you to log in as root, then the first line "sudo grub" would simply be "grub".
Note, I'm assuming from your question above that you can't boot in, and get an error from grub instead (IE, "grub 1.5 error 21", or something like that). If you can boot in to the one OS that has grub, but can't boot into the other OS you have -- W2K -- then that's a different matter. In that case, you may be able to edit the menu.lst file, or simply run update-grub or os-prober. Lemme know which is the case.
Hi,
those instructions are valid for GRUB-Legacy. However, the OP uses Ubuntu 10.10 and therefore GRUB2. The device names, e.g., are a bit different. Also, there is no menu.lst.
Actually if the Ubuntu installation was a failure and Op is going to continue using Ubuntu
Reinstall it.
Just make sure you don't erase and write to the windows partition.
sudo palimpsest does not work on my live disk unfortunately. The screenshots utility
had worked beautifully on my original main 10.10 Ubuntu, the object of my main recovery attempts.
According to ACRONIS I had restored W@K successfully after some 7 hrs, including the MBR yet it did not get beyond GRUB 1.2 error 2
Then I very carefully I installed U LT 10.10 on a free ext 4 on disk B space. it reported success;
though the option to load a grub -to which I had become familiar in earlier versions- never came up!
Upon restart attempt without a live cd it got into an endless loop after : " load from ATAPI cd "
I remounted the live cd and got results below where the boot is shown on the stick 4
GB that I use for file transfer as my sole available tool from the comatose drives.
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Device Boot Start End Blocks Id System
/dev/sdb1 1 18663 149903360 83 Linux
/dev/sdb2 18663 19458 6384641 5 Extended
/dev/sdb5 18663 19458 6384640 82 Linux swap / Solaris
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 492 3948512+ b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(490, 254, 63) logical=(491, 145, 38)
ubuntu@ubuntu:~$
Should I give up postmaturely?
In my earlier live I was known as a beta tester who could make mistakes nobody else ever anticipated.
I can see and read some files of my old -wanted- ubuntu 10.10. I cannot open root as it does not let me be sudo;
the actual grub env??? is all ###########################################
When I tried to mount sdc1 that I see under fdisk -l I get "there is no such file or dir.
Since I also got the message that my disk 1 was of a format that is not supported
I am reinstalling W2K from a tib file via Acronis; this time in FAT format that is supported in the linux disk utility
Interestingly this is much faster 1 hour vs 7 that I sweated yesterday.
If I succeed this time with windows I can install wibu.exe which is claimed to
let me boot many parallel OSs.
Perhaps this might also be a lifeline: As advised by one of my guiding helpers:
#!/bin/bash
VERSION=0.55
DATE="February 15th, 2010"
#to use this script:
#
# sudo bash boot_info_script055.sh
#or
# su -
# bash boot_info_script055.sh
#
#
### last-modified
#
#author Ulrich Meierfrankenfeld (aka meierfra.)
# with contributions from caljohnsmith
# (both members of ubuntuforums.org)
# and Gert Hulselmans
#
#hosted at: http://sourceforge.net/projects/bootinfoscript/
#
#The birth of the boot info script:
# http://ubuntuforums.org/showthread.php?t=837791
#
#Looks at all MBRs and identifies the boot loader.
# For Grub and Supergrub: displays the controlling partition.
# If the MBR is unknown, displays the whole MBR.
#Looks at all partitions:
# Determines their type
# Identifies their boot sectors.
# For grub: displays the controlling partition and the offset
# of the stage2 file as recorded in the boot sector.
sdc is your usb drive that you're using.
You need to take your time and read this link.
sdb is the drive that you want to boot into as it has the linux os that you want to install grub to.
mount sdb1, the way the link tells you to do it. http://karuppuswamy.com/wordpress/20...rescue-prompt/
sdc is your usb drive that you're using.
You need to take your time and read this link.
sdb is the drive that you want to boot into as it has the linux os that you want to install grub to.
mount sdb1, the way the link tells you to do it.
http://karuppuswamy.com/wordpress/2010/06/02/how-to-chroot-to-ubuntu-using-live-cd-to-fix-grub-rescue-prompt/"
Many thanks! Will follow exactly.
Ps This post I only got through the extremely useful daily e-mail update/remainder. It did not come through on this page or is hidden?
I think it works as I got no blue screen or many lines message back.
It was a real privilege to get that much help and ubuntu exposure
ulfscha
ulflt@ulflt-desktop:~$ cd /
ulflt@ulflt-desktop:/$ os-prober
unshare failed: Operation not permitted
rm: cannot remove `/var/lib/os-prober/labels': Permission denied
ulflt@ulflt-desktop:/$ sudo os-prober
[sudo] password for ulflt:
/dev/sda1:Microsoft Windows 2000 Professional:Windows:chain
/dev/sdb1:Ubuntu 10.10 (10.10):Ubuntu:linux
ulflt@ulflt-desktop:/$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows 2000 Professional on /dev/sda1
Found Ubuntu 10.10 (10.10) on /dev/sdb1
done
ulflt@ulflt-desktop:/$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.