LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-01-2006, 12:13 PM   #1
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Rep: Reputation: 31
ARCH BOOTLOADER installation


Hello fellas my prob is :-
I installed (well tried) arch linux 0.7.1 and from cd most of packages didnot get installed probably media was corrupted so i googled and got way 2 install frm ISO without burning it , everything went fine but i couldnot INSTALL ANY BOOTLOADER , when i selected either it said BOOTLOADER INSTALLATION FAILED check /dev/tty5 for detail [or SORTA THING ] or it got installed and i run it sez cant find the device or doesnot exist
 
Old 01-01-2006, 02:45 PM   #2
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
Ok dude, chill a moment.

What do you have on the computer atm? Do you have another version of linux? Windows? or just Arch?

What loaders have you tried, how and what degree of sucess has each given?

What state is the system now? Can you boot anything?
 
Old 01-01-2006, 03:26 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Arch 0.71 uses Grub 0.97 by default.

If you can access it the boot loader is already there. i.e. if you get a Grub shell out by typing
Code:
grub
Otherwise just following Appendix of Grub Manual.

It is only 4 lines of commands and takes 5 to 10 minutes build Grub from scratch.

Having got Grub the instruction to put Grub into the MBR is
Code:
grub-install /dev/hda
 
Old 01-01-2006, 04:29 PM   #4
BinJajer
Member
 
Registered: Sep 2005
Location: Warsaw, Poland
Distribution: Slackware 10.2, Caldera OpenLinux 3.1, Corel Linux (Thanks xhi!), Debian GNU/HURD etc...
Posts: 296
Blog Entries: 1

Rep: Reputation: 30
I had a similar problem with Slack. Suprise, suprise. The problem is, that in some distros th bootloader tries to install into hda's MBR. What if you have only hdb,hdc and cdrom on hdd? Yeah, it is non-standard, but I have such config. That could be a problem. We cannot assume that everyne has the same hardware config.
 
Old 01-01-2006, 05:39 PM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
I don't think it matters at all whether you have hdb, hdd, sda, sdb as your first bootable disk.

You have to tell the installer "what partition" you want to install the Linux. The boot loader destination is always quoted as either the MBR or the root partition. In rare situation you may given a list of hard disks to choose from. The installer therefore cannot possibly put a boot loader on an imaginary disk or always in hda.

Grub has none of this confusion because it uses a numbering system. Its first disk (hd0) can be hdb, sda or whatever you've specified in the BIOS setting. It just receives the information from the BIOS and uses it and couldn't care less about what it is.

What tend to happen is the installer fails to implement the boot loader installation and causes the distro temporarily inaccessible.

A Linux user in this case should learn to use a Live CD as a stepping stone to "hoop" (using the change root command) back the unbootable Linux to do the rescuing work.

Last edited by saikee; 01-02-2006 at 11:02 AM.
 
Old 01-02-2006, 12:47 AM   #6
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Original Poster
Rep: Reputation: 31
-- I HAD WINDOWS (XP AND 98 ) THEY TOO DONT RUN
I DONT CARE ABT WINDOWS(s)
I want LINUX INSTALLED andi dooo see an option in the linux bootloader (yeah its GRUB) and it has arch linux written on it and when i press enter on it it shows DEVICE DOESNOT exist
AND I CANT BOOT ANY OS.and ITS " bdb " in bios its SECONDARY SLAVE
 
Old 01-02-2006, 12:48 AM   #7
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Original Poster
Rep: Reputation: 31
I HAVE GNOPPIX (a live CD ) show do i fix it please would u tell me ?
 
Old 01-02-2006, 06:37 AM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Boot to the Gnoppix
click terminal, do a
Code:
sudo fdisk -l
to see your own partitioning scheme. You only mentioned Arch 0.71 so we assume its root is in hda1 but ajust it according to your own partitioning scheme.

You invoke a Grub shell and ask Grub to setup itself in the MBR using the information from the root of Arch 0.71, as follow
Code:
grub
root (hd0,0)
setup (hd0)
quit
If Grub reports everything done and no error then on a reboot you will have Grub the boot loader.

A Linux cannot rescue a Windows if it wasn't bootable before. If your systems were working before then Grub will boot them.

Paste the screen information of
Code:
fdisk -l
here plus the content of Arch's /boot/grub/menu.lst for further assistance.

I repeat, your Windows must be in working condition before because Linux can't fix them. A linux can "boot" them only.
 
Old 01-02-2006, 10:52 AM   #9
BinJajer
Member
 
Registered: Sep 2005
Location: Warsaw, Poland
Distribution: Slackware 10.2, Caldera OpenLinux 3.1, Corel Linux (Thanks xhi!), Debian GNU/HURD etc...
Posts: 296
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally Posted by saikee
I don't think it matters at all whether you have hdb, hdd, sda, sdb as your first bootable disk.

You have to tell the installer "what partition" you want to intall the Linux. The boot loader destination is always quoted as either the MBR or the root partition. In rare situation you may given a list of hard disks to choose from. The installer therefore cannot possibly put a boot loader on an imaginary disk or always in hda.

Grub has none of this confusion because it uses a numbering system. Its first disk (hd0) can be hdb, sda or whatever you've specified in the BIOS setting. It just receives the information from the BIOS and uses it and couldn't care less about what it is.

What tend to happen is the installer fails to implement the boot loader installation and causes the distro temporarily inaccessible.

A Linux user in this case should learn to use a Live CD as a stepping stone to "hoop" (using the change root command) back the unbootable Linux to do the rescuing work.
Maybe you are right. Maybe it works in arch. Muhhamad, saikee is right, give us a prinout of grub's error, if any. Good luck, SHOUTER GEEK
 
Old 01-02-2006, 03:46 PM   #10
johndoe0028
Member
 
Registered: Jun 2005
Location: CA, USA
Distribution: Gentoo
Posts: 165

Rep: Reputation: 30
Well, from what I see, arch 0.71 is still not too mature. Grab arch 0.7 ISO and burn it, boot and go from there. Make sure your media isn't messed up.

Anyway, here is that section of my menu.lst, if it helps.



# Arch Linux
title Arch Linux
root (hd1,0)
kernel /boot/vmlinuz26 root=/dev/discs/disc1/part1 ro


(I have Arch on my second disc. If it's on the first, change (hd1,0) to (hd0,0), and disc1 to disc0)
 
Old 01-03-2006, 04:30 AM   #11
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Original Poster
Rep: Reputation: 31
WELL I M GETTIN FRUSTATING FELLAS , i have only 1 hd connected and it is shown as HDB , my swap partition is HDB6 and root is HDB7 (with reiser FS) now can any one be kind enough 2 tell me how 2 write a menu.lst for my self or just tell me what to paste whree in grub menu.lst so i might run my grub



------------- YOUR PREVIOUS REMEDIES --------
I tried em all but noting but surprisingly when i ran my live CD (of gnoppix) when i configured grub just how saikee said it didnot seem 2 work however when i REBOOTED my system , MY WINDOWS XP AND WIN98 were back without any HINT of LINUX .......


I m forry for any bugging 2 u all (my windows 98 is in HDB1 and XP in HDB2 )
 
Old 01-03-2006, 04:39 AM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
You did it to yourself because you never told us there were other systems in your disk and so we all assumed Arch was in the first partition.

You can correct the mistake by going through my post #8 again but this time to setup Grub into MBR with Arch's root. That is after booting to Knoppix you type
Code:
grub
root (hd0,6)
setup (hd0)
quit
For us to write a Grub menu.lst from scratch we need the content of /boot of your Arch Linux.
 
Old 01-03-2006, 04:39 AM   #13
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Original Poster
Rep: Reputation: 31
also i read in a post someone said cant read partition or sorta thing because in kernel compilation he forgot to put in some support for FILE SYSTEMS , in arch linux , u install ur kernel and it tells BUILDING KERNEL or sorta thing so is there any possibility of such things also it prints out to modify some links of kernel , i did [BEFORE TRYING GNOPPIX that i earlier mentioned] and then when i selected the thing it showed error 23 ERROR PARSING THE LINE
 
Old 01-03-2006, 04:41 AM   #14
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Original Poster
Rep: Reputation: 31
and SAIKEE this
grub
root (hd0,6)
setup (hd0)
quit
thing doesnot work says invalid STRING i REMIND AGANIn
MY SWAP IS HDB6
MY ROOT (with reiser fs is ) HDB7


-=--- SORRY FOR THE HEADACHE ---=-
 
Old 01-03-2006, 04:54 AM   #15
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
If you have only one drive the (hd0,6) is the 7th partition of the first disk as Grub counts from 0.

Also it worked before because it restored your Windows boot loader at (hd0,0) back to the MBR.

The only reason that it fails to work is that your Grub in hdb7 is "incomplete" and cannot be setup.

You can investigate it as follow. Boot it to Gnoppix and type
Code:
mkdir /mnt/hdb7
mount /dev/hdb7 /mnt/hdb7
chroot /mnt/hdb7
grub-install /dev/hdb
exit
Once you have done the "chroot" you will be inside Arch Linux and able to see if you have got menu.lst by
Code:
less /boot/grub/menu.lst
You can invoke the Grub inside Arch to try the Root+setup statements as described in Post #12 again if the grub-install statement fails.

If you haven't got /boot/grub/menu.lst inside Arch then it is a different ball game and you will need an additional tool to boot Arch.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10.1 Installation hangs at Installation of Bootloader dnl Linux - Software 12 01-08-2005 06:48 AM
How to start GNU/Linux Installation from NT bootloader? zero79 Linux - Software 4 12-27-2004 04:02 AM
Installing Arch--bootloader killed my Grub busbarn Linux - Software 4 03-13-2004 10:34 PM
9.2 installation problem at bootloader liamo11 Mandriva 4 02-20-2004 03:00 PM
First time installation bootloader problems odogg Linux - Newbie 1 11-25-2003 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration