Installation stops when installting GRUB.

Help with issues regarding installation of Debian

Installation stops when installting GRUB.

Postby orpakorpa » 2007-07-13 19:32

I am doing a debian install from binary cd1 with netinstall enabled. I selected to install "base system" and "desktop environment". I'm from norway so I use mirror ftp.no.debian.org. When installing, everything is working well, but after installing both base system, xorg and gnome, it proceeds to installing GRUB. Here, it stays at 0%, and it just won't go any further. In ctrl alt F4 it says
"The following packages will be installed"
"grub"

Can anyone explain what's up?
Btw: I've previously installed grub with ubuntu. kubuntu and debian base system. It's my bootloader, so when I boot now, it says something like "Can't load grub, error 15"
orpakorpa
 

Postby BioTube » 2007-07-13 19:47

Try this with a LiveCD or a backup install:
Code: Select all
su
Password:
mkdir /mnt/debian
mount /dev/hda1 -t ext3 /mnt/debian
chroot /mnt/debian
apt-get install grub
grub-install /dev/hda
Prefix the first three commands with 'sudo' if you can't use su. This also assumes that you installed Debian to the first partition of the first hard disk.
Image
Ludwig von Mises wrote:The elite should be supreme by virtue of persuasion, not by the assistance of firing squads.
User avatar
BioTube
 
Posts: 7551
Joined: 2007-06-01 04:34

Yatta

Postby orkaborka » 2007-07-13 20:07

Followed until "apt-get install grub", which gives me
Code: Select all
Bytte av media: sett inn CD-en som er merket
  «Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 CD Binary-1 20070407-11:55»
i «/cdrom/» og trykk «Enter»"
Basically meaning that it's looking for it on the CD, which I can't put in because I'm using a Live CD. If I get this straight, I have no kinda "logged" into debian, is that correct? Will I be able to edit sources.list through chroot? Because I need to add ftp://ftp.no.debian.org/debian/.

Hmm...
orkaborka
 

Whoops!

Postby orkaborka » 2007-07-13 20:08

Ooops. As you can see I forgot to end CODE at the right place. It's supposed to be like this:
Code: Select all
Bytte av media: sett inn CD-en som er merket
  «Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 CD Binary-1 20070407-11:55»
i «/cdrom/» og trykk «Enter»"
orkaborka
 

Heeey

Postby orkaborka » 2007-07-13 20:17

Seems things are going forward. I used nano /etc/apt/sources.list, and commented out the CD-ROM part. Now it's installing, I will report how it goes.
orkaborka
 

Hmm

Postby orkaborka » 2007-07-13 20:46

The installation finished as normal. When I rebooted, GRUB was working, but there wasn't a menu, like it has when pre-installed with the distro. So now I need help to either USE the GRUB terminal to enter debian, or how to use chroot to make a menu for grub.

Summary:
Boot up PC
Grub loads
No menu, only terminal.
orkaborka
 

facts

Postby orkaborka » 2007-07-13 20:56

And btw, here's my facts:
I only got one HDD: sda
sda1: windows
sda2: debian
sda3: swap
sda4: /home for debian.

fdisk -l gives:
Code: Select all
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        5099    40957686    7  HPFS/NTFS
/dev/sda2            5100        7531    19535040   83  Linux
/dev/sda3            7532        7774     1951897+  82  Linux swap / Solaris
/dev/sda4            7775       27226   156248190   83  Linux
orkaborka
 

Sigh

Postby orkaborka » 2007-07-13 21:31

So I managed to boot into debian only to find out that (I think) the installer never finished (I have no idea what was going to happen after installing GRUB), so I only boot into the base system. I really wanna have a go at debian so I'm asking you if anyone can think of a way to solve this problem? I wanna install it WITH GRUB.
orkaborka
 

Postby BioTube » 2007-07-13 21:52

Code: Select all
update-grub
The man page says something about having to edit the newly generate /boot/grub/menu.lst file and rerunning the command, so give
Code: Select all
man update-grub
a look. If you really just want to get right into it after that, run
Code: Select all
apt-get install xorg
and one of the following
Code: Select all
apt-get install gnome gdm or apt-get install kde kdm
The 'gnome' and 'kde' metapackages will get you everything but the kitchen sink for your desktop environment of choice, gdm and kdm provide graphical logins and xorg provides the X server(GUI manager).

If you still can't get into your system, you may want to give section 5.1 of the install manual a look. The files you'll need for a hard drive install are here.
Image
Ludwig von Mises wrote:The elite should be supreme by virtue of persuasion, not by the assistance of firing squads.
User avatar
BioTube
 
Posts: 7551
Joined: 2007-06-01 04:34


Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests

fashionable