DebianThis forum is for the discussion of Debian Linux.
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.
Firstly, I apologise because I'm aware there are lots of threads about this, i've read them. None of them quite match my situation. I've got myself in a right bl**dy mess!
I decided to try Ubuntu, and installed it on hdb, leaving Debian on hda. Didn't really like it (although it is astonishingly beautiful) so I got rid of it and made use of the drive.
I did anticipate this problem, I checked the /boot directory, but could only see references to Debian, so I thought it'd be okay.
There's not many commands available to me from this prompt, but:
Code:
ls (hd0,1)/boot
./ ../ grub/ vmlinuz-2.6.26-2-686 config-2.6.26-2-686 System.map-2.6.26-2-686 i
nitrd.img-2.6.26-2-686 initrd.img-2.6.26-2-686.bak
I'm confident Debian is still in /dev/hda1. I'm sure it's simply a matter of telling grub not to bother looking for Ubuntu on /dev/hdb because it's long gone. Please help, because i'm not familiar with grub in the slightest.
Phew. I did it, had to edit ... some files i can't rememeber, haha!
I think it was a 'default'. I commented it out. It still puzzles me though. The only references in menu.lst to any operating system was the two Debian variants, single user mode and the normal one. So where does Ubuntu fit into all this, where are the lines to load ubuntu?
This was the main reason I didn't like ubuntu. Although staggeringly beautiful, it just does things in funny ways. I don't have time for learning curves, I need it to do useful work.
I can only think the file named /boot/grub/default invokes ubuntu somehow, but there's nothing there to see, apart from the one line at the top saying simply 'default'. Very strange.
I'm now on the look-out for something that will tidy up the grub better than it now is, because it feels awfully clunky. I like a slick system.
put the debian-installation cd into the cdrom and boot.
choose advanced and then rescue.
answer the default qeustions (language, keyboard, country). wait till all is loaded from cd.
tell it to re-install grub to mbr (which should be hd0, but you get examples).
reboot without the installation cd.
hopefully that will work.
Distribution: Debian squeeze (Gnome) on netbooks; Debian Lenny on servers and Debian wheezy (XFCE) on new laptops
Posts: 144
Rep:
Well, the fastest way to restore your favorite distro after removing the latest is using Super Grub Disk - It looks like a small kid has wroten it, but it works terrific.
This CD also works very well after installing other systems like Windows which claim to have C: as the only startup disk. Super Grub Disk will offer the options available when the MBR is damaged for what reason ever.
Last edited by Laurens73; 02-25-2010 at 04:52 PM.
Reason: Wrong adress - corrected with latest one
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.