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 have used Linux over the past 10 years from time to time but please consider me as pretty much a newbie !
I have a laptop I use for work, and have decided that there are a few things that are best left to Linux to deal with.
What I have got is a triple boot system with XP, Debian and BackTrack5.
The reason for this is I need to use XP to log on to certain systems, I want to use backtrack for penetration testing, and for when on occasion I go to some site and they don't know what their wep key is and use debian for learning Linux and doing some other types of work on.
To try and cut a long story short - I sort of messed up grub and the Debian partition when I installed BT.
I have repaired the Deb part and now have grub working, and I have managed to fiddle around a bit with the grub config so it displays things in a better order and with the correct descriptions.
But the thing is, I seem to have 2 grub installs, one on debian and the other on BT.
The layout is:
If I run sudo grub-probe -t device /boot/grub Debian says grub is on /dev/sda5 and Backtrack says grub on /dev/sda7
So is this correct ? should I have 2 grub's, I suspect not, and if so what should I do to correct this.
I have some experience with the older grub, I have used/still use grub 4 dos for some software diagnostic tools I put together on a usb stick, and am familiar with the menu.lst system, but grub2 sort of alludes me!
I ended up installing 'grub customizer' on BT which was the last OS I installed and seems to be the one that actually affects grub on bootup.
But eventually what I want to do is find which tools in BT are useful to me, learn how to use them properly , and then install them in Debian and wipe the BT partition.
Would one of you kind souls give me so pointers as to what I should do as far as grub is concerned.
It's normal for each system to install boot-loader code - including XP. So you actually have 3. You can not install grub, but it generally just makes things more difficult down the track.
However there can only be one boot-loader in charge of booting - i.e. in the MBR (Master Boot Record). Master means master after all. Generally this is the last system installed, but can be changed anytime. In your case you might simply want to run grub-install from your Debian system. This will update the MBR and you can then remove BT anytime you want.
You can download boot_info_script from http://bootinfoscript.sourceforge.net/ and run it as root. The output will be stored in RESULTS.txt in that folder which you can post here. It will clarify all the partitions as well as booting and grub info.
Thanks again syg00 and rng (that bootinfo script is very useful)
I have run grub-install in Debian, it all went well, I even got back the debian splash screen !
Have now installed grub customizer in Debian as well and can edit my menu entries.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.