473,383 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to install GRUB/LILO ?

AmberJain
884 Expert 512MB
Hello,

From many few days whenever I tried installing Xubuntu on my PC, I failed as Xubuntu installer simply couldnot startup. Whenever I booted from Xubuntu Cd both Live CD and Xubuntu installation refused to start. Both live CD and install routine initiated till a certain point then nothing happened for atleast 1 hour (I tried this many times) and the LED of CD drive simply flashed continuosly.

Then I formatted my system yesterday (my XP installation was getting too heavy and I thought that would probbaly help me to install Xubuntu). But Xubuntu still failed to load/install from CD. Then I thought of something.

The Xubuntu CD used to load succesfully (live + install) when Red hat linux was installed on my PC in the past. And so I installed Red hat linux 9 on my PC and then tried installing Xubuntu on another partition. And Xubuntu installation routine started and I installed Xubuntu successfully. But when I rebooted there was no bootloader (GRUB/LILO) to let me access Xubuntu. I tried as suggested to me previously in this thread but ended with no success. And then I installed XP on another partition.

Now I want to simply install some Linux bootloader but I am unable to do so. I dont exactly remember the error message I get when I try to install GRUB and so I will post it in my next reply (when I would test it again).

If you want some additional information tell me........

Thanks in advance......
AmbrNewlearner
Sep 22 '08 #1
11 6165
micmast
144 100+
That is just weird :)

After you installed winXP does the bootloader work for winXP? If so, it might be easier to start your Linux with the Windows Bootloader.

If you could somehow track the error of GRUB that would be nice.

If you want to use your windows bootloader:
  • Boot a LiveCD
  • Type in a terminal: dd if=/dev/<device with /boot> of=/tmp/linux.bin bs=512 count=1
  • Copy the linux.bin over to your windows partition
  • Boot WindowsXP
  • Modify boot.ini (on your C:): C:\<path_to_linux.bin>="Your Xubuntu"
  • Reboot
Sep 23 '08 #2
AmberJain
884 Expert 512MB
Hello,

That is just weird :)
It's not just weird. It's the weirdest......... ;)


If you could somehow track the error of GRUB that would be nice.
I dont know what is problem with installation of GRUB. But this is what happened at SLAX terminal:

Expand|Select|Wrap|Line Numbers
  1. root@slax:~# grub-install /dev/hdd
  2. /dev/hdd: Not found or not a block device.
  3. root@slax:~# 
  4.  
I am ready to track this problem but I need guidance for what to do next.


After you installed winXP does the bootloader work for winXP? If so, it might be easier to start your Linux with the Windows Bootloader.
Yes....XP bootloader worked.


If you want to use your windows bootloader:
Boot a LiveCD
Type in a terminal: dd if=/dev/<device with /boot> of=/tmp/linux.bin bs=512 count=1
Copy the linux.bin over to your windows partition
Boot WindowsXP
Modify boot.ini (on your C:): C:\<path_to_linux.bin>="Your Xubuntu"
Reboot
Ok...I did as you advised. The output on SLAX terminal is:
Expand|Select|Wrap|Line Numbers
  1. root@slax:~# dd if=/dev/hdd6  of=/tmp/linux.bin bs=512 count=1
  2. 1+0 records in
  3. 1+0 records out
  4. 512 bytes (512 B) copied, 4.0966e-05 s, 12.5 MB/s
  5. root@slax:~#
Then I copied the linux.bin to E:\ (as my XP is installed on E:\Windows) inside SLAX and then I rebooted to XP.
I edited boot.ini and added the following at the End of file:
Expand|Select|Wrap|Line Numbers
  1. E:\linux.bin="Your Xubuntu on e"
When I rebooted and selected "Your Xubuntu on e" in XP bootloader, the screen went black for 1 or 2 seconds and came back to XP bootloader screen.

That's it.....And I am still not able to log on to my Xubuntu installation.
So I'm expecting more help here......

Thanks......
AmbrNewlearner
Sep 23 '08 #3
micmast
144 100+
hmm I have to think about that, but for now you can try this:
http://www.supergrubdisk.org/

This is an easy disk, burn it, run it and with a few keystrokes your grub should be back, mind you that windows XP might not be available, you still need to fix that probably
Sep 24 '08 #4
micmast
144 100+
could you give us a list of the partition table layout? Are you 100% sure that hdd is correct?
Sep 24 '08 #5
AmberJain
884 Expert 512MB
Hello,

First of all, I am sorry for replying so late. The reason was that I could not access http://www.supergrubdisk.org/ from my home. Yesterday I donwloaded Super GRUB disk and booted from it. But I could not install GRUB and I dont exactly remember the message it showed. But it said something like it could not detect any partitions with Xubuntu installed on my PC. So I now am going to REinstall Xubuntu and see if that helps. I will post back results soon.


could you give us a list of the partition table layout? Are you 100% sure that hdd is correct?
I will post partition table layout if Xubuntu doesnot works even after REinstall.


Thanks for all the help till now (and I hope to ask for more help from you)........
AmbrNewlearner
Sep 26 '08 #6
AmberJain
884 Expert 512MB
Hello,

Some good news........Xubuntu installed successfully. I dont exactly know the reason why I faced problems booting Xubuntu last time (when I started this thread) but I expect it to be some problem with partition structure on my PC (and thanks to this problem that I am now interested to read and study more about partitions:)).

Now I face another problem regarding dual booting of XP and Xubuntu.

First of all, a track of events is:
I first formatted my harddisk. And then using PartitionMagic I created a ext2 partition (for Xubuntu), a swap partition, a FAT32 partition (for XP) and a backup FAT32 partition.
Then I installed Xubuntu and using GRUB I was able to successfully log into Xubuntu. Then I installed XP on FAT32 partition and (as expected) XP bootloader simply replaced GRUB. And I was able to log into XP. Now if I try to install GRUB using SuperGRUBDisk then XP is not in list of GRUB.

And I tried this too (from SLAX live CD):
Expand|Select|Wrap|Line Numbers
  1. root@slax:~# fdisk -l
  2.  
  3. Disk /dev/hdd: 40.0 GB, 40060403712 bytes
  4. 255 heads, 63 sectors/track, 4870 cylinders
  5. Units = cylinders of 16065 * 512 = 8225280 bytes
  6. Disk identifier: 0x000d030b
  7.  
  8.    Device Boot      Start         End      Blocks   Id  System
  9. /dev/hdd1   *           1        1020     8193118+  83  Linux
  10. /dev/hdd2            1021        1054      273105   82  Linux swap
  11. /dev/hdd3            1055        2329    10241437+   c  W95 FAT32 (LBA)
  12. /dev/hdd4            2330        4870    20410582+   f  W95 Ext'd (LBA)
  13. /dev/hdd5            2330        4870    20410551    b  W95 FAT32
  14. root@slax:~# dd if=/dev/hdd1 of=/linux.bin bs=512 count=1
  15. 1+0 records in
  16. 1+0 records out
  17. 512 bytes (512 B) copied, 3.064e-05 s, 16.7 MB/s
  18. root@slax:~#
And then I added a entry to C:\boot.ini (as you advised me previously). But when XP boot loader comes up and I select "XUBUNTU" I get a blck screen (xubuntu doesnot starts).

The code tagged text above also lists my partition table layout. Now what should I do to dual boot XP and Xubuntu.

Thanks for help.......
AmbrNewlearner
Sep 27 '08 #7
AmberJain
884 Expert 512MB
Hello,

:) Some good news here.......The problem has solved. If I recite my mistakes here then that may help someone in future. And so, in a day or two I will post the MISTAKES I was making while installation of Xubuntu on my PC (right now I'm in hurry).

BTW, Thanks micmast for all the help ;).......


Cheers,
AmbrNewlearner
Sep 28 '08 #8
micmast
144 100+
no problemo, that is why I joined bytes :)

I'm really curious to know what caused the problems.
Sep 28 '08 #9
AmberJain
884 Expert 512MB
Hello,

Before I start let me tell you that I have switched to PC LinuxOS from Xubuntu (as Xubuntu was too slow on my PC).


This is a log file of mistakes I made when I tried installing Xubuntu on my PC ;)

When we install Xubuntu then a screen comes up which looks like:


Now if I click on advanced button then I get an option to choose the location where I would like bootloader to be installed. The default is displayed something like hd0 but I changed it to the root of my Xubuntu installation and so either GRUB or XP bootloader worked at a time and I couldnot dualboot XP and Xubuntu together.


dd if=/dev/hdd6 of=/tmp/linux.bin bs=512 count=1
But I dont know why this doesnot worked at that time. I will certainly try it on PC linuxOS when I get time.

Hope I vomitted it all here.........

Thanks...
AmbrNewlearner
Oct 1 '08 #10
Nepomuk
3,112 Expert 2GB
...The default is displayed something like hd0 but I changed it to the root of my Xubuntu installation and so either GRUB or XP bootloader worked at a time and I couldnot dualboot XP and Xubuntu together.
So, are you saying that you wanted to have the option to dualboot but it didn't work? I'm asking, because I'm not quite sure, that I understood you correctly.
But I dont know why this doesnot worked at that time. I will certainly try it on PC linuxOS when I get time.
What exactly were you trying to do with that command? I guess that only with that knowledge, we might be able to find out, why it didn't work.

Greetings,
Nepomuk
Oct 7 '08 #11
AmberJain
884 Expert 512MB
Hello,

So, are you saying that you wanted to have the option to dualboot but it didn't work? I'm asking, because I'm not quite sure, that I understood you correctly.
Yup....you are right. I wanted to dual boot XP and Xubuntu but I could either login to Xubuntu using GRUB or to XP using Windows bootloader at a time.

What exactly were you trying to do with that command? I guess that only with that knowledge, we might be able to find out, why it didn't work.
Well, I was trying to dual boot (XP + Xubuntu) using Windows bootloader. I wanted to do as guided to me by micmast in REPLY #2 above.
And OOPS..............I almost forgot to try this on PC linux OS. Thanks nepomuk for reminding me.....I will now try this and will post back results soon.

Thanks.........
AmbrNewlearner
Oct 8 '08 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
3
by: dadapeer | last post by:
hai In my computer i am having dual boot operating system one is winxpsp2 another one is linux red hat 3 i removed the the redhat partition (deleated). arter i rebooted the system system is...
17
by: HangEveryRepubliKKKan | last post by:
After several days of playing with Linux I just told the update manager to update all components of the OS and all installed programs. After completing it's tasks my machine now refuses to boot. ...
1
by: =?Utf-8?B?Qi5BaGxzdGVkdA==?= | last post by:
Hi all, This is something that I have been toying with for about a week now. What I want to achieve is Install a Service with Customised parameters (using InstallUtil.exe) for User Name. Example...
6
AmberJain
by: AmberJain | last post by:
Well, I installed Red hat linux a few days ago and recently I tried to repair my XP installation on same machine. It displayed the following message when I expected it to repair my XP-"Setup is...
1
by: gaurav92K | last post by:
sir , please tell me what is the greate difference in lilo & grub boot loader. please tell me.
0
by: CarlFK | last post by:
I need some code that will read in grubs menu.lst file, and give me a list of dicts: I am not really sure what the rules are, like does it have to have a title, and do blank lines mean...
1
by: Albert Hopkins | last post by:
On Mon, 2008-11-17 at 10:27 -0800, CarlFK wrote: Why take a chance when you can get it right the first time? There is documentation on the syslinux config formats at their web site...
1
luckysanj
by: luckysanj | last post by:
When computer is starting i got this error! --------------------------------------------------------------------------------------------------------------------------- Booting 'Windows Vista' acpi...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.