/ Forside / Teknologi / Operativsystemer / Linux / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Linux
#NavnPoint
o.v.n. 11177
peque 7911
dk 4814
e.c 2359
Uranus 1334
emesen 1334
stone47 1307
linuxrules 1214
Octon 1100
10  BjarneD 875
Grub og freebsd ?
Fra : Kasper Nordal Lund


Dato : 28-08-03 13:36

Hej ng.

Jeg har lige installeret freebsd på mit system, og jeg vil nu have grub
til at kunne boote det.
Mine diske sidder på en promise IDE controller. Den første disk på IDE1
hedder i linux hde, og kaldes af grub hd0. Den første disk på IDE2 hedder
hdg, og jeg går derfor ud fra at min disk med freebsd som sidder som den
sekundære på IDE1 og i linux hedder hdf, kaldes hd1 af grub?
Jeg har prøvet med flg. i grub.conf:

title FreeBSD 5.0
   root (hd1,0)
   kernel /boot/loader

Men det virker ikke. Jeg får beskeden unknown filesystem, o hvis jeg
prøver (hd1,1 2 eller 3) får jeg besked om at der ingen partiton er ved
det navn.

I fdisk viser den bare en stor partition, men jeg har delt den op i en
swap,usr og en var under installationen.

Nogen der kan hjælpe?
--
/Kasper


 
 
Claus Larsen (28-08-2003)
Kommentar
Fra : Claus Larsen


Dato : 28-08-03 16:06

Kasper Nordal Lund skrev:

Jeg har lige sat en grub op på et windows/knoppix-system og kender
ovenstående fejlmeddeelse. Det er med stor sikkerhed fordi en partion
eller harddisk er angivet forkert.

Jeg havde overmåde meget gavn at det her:
http://gnu.digitaltrust.it/manual/grub-0.92/html_mono/grub.html


Uddrag:
First, set the GRUB's root device4 to the boot directory, like this:

grub> root (hd0,0)

If you are not sure which partition actually holds these files, use the
command find (see find), like this:

grub> find /boot/grub/stage1

This will search for the file name /boot/grub/stage1 and show the
devices which contain the file.

Once you've set the root device correctly, run the command setup (see
setup):

grub> setup (hd0)

This command will install GRUB on the MBR in the first drive. If you
want to install GRUB into the boot sector of a partition instead of the
MBR, specify a partition into which you want to install GRUB:

grub> setup (hd0,0)


Med venlig hilsen Claus Larsen


Kasper Nordal Lund (28-08-2003)
Kommentar
Fra : Kasper Nordal Lund


Dato : 28-08-03 17:36

On Thu, 28 Aug 2003 17:05:30 +0200, Claus Larsen wrote:

> Kasper Nordal Lund skrev:
>
> Jeg har lige sat en grub op på et windows/knoppix-system og kender
> ovenstående fejlmeddeelse. Det er med stor sikkerhed fordi en partion
> eller harddisk er angivet forkert.
>
> Jeg havde overmåde meget gavn at det her:
> http://gnu.digitaltrust.it/manual/grub-0.92/html_mono/grub.html
>
>
> Uddrag:
> First, set the GRUB's root device4 to the boot directory, like this:
>
> grub> root (hd0,0)
>
> If you are not sure which partition actually holds these files, use the
> command find (see find), like this:
>
> grub> find /boot/grub/stage1
>
> This will search for the file name /boot/grub/stage1 and show the
> devices which contain the file.
>
> Once you've set the root device correctly, run the command setup (see
> setup):
>
> grub> setup (hd0)
>
> This command will install GRUB on the MBR in the first drive. If you
> want to install GRUB into the boot sector of a partition instead of the
> MBR, specify a partition into which you want to install GRUB:
>
> grub> setup (hd0,0)
>
>
> Med venlig hilsen Claus Larsen

Jeg ser på det, takker.

--
/Kasper


Kasper Nordal Lund (28-08-2003)
Kommentar
Fra : Kasper Nordal Lund


Dato : 28-08-03 19:58

On Thu, 28 Aug 2003 18:35:41 +0200, Kasper Nordal Lund wrote:

> On Thu, 28 Aug 2003 17:05:30 +0200, Claus Larsen wrote:
>
>> Kasper Nordal Lund skrev:
>>
>> Jeg har lige sat en grub op på et windows/knoppix-system og kender
>> ovenstående fejlmeddeelse. Det er med stor sikkerhed fordi en partion
>> eller harddisk er angivet forkert.
>>
>> Jeg havde overmåde meget gavn at det her:
>> http://gnu.digitaltrust.it/manual/grub-0.92/html_mono/grub.html
>>
>>
>> Uddrag:
>> First, set the GRUB's root device4 to the boot directory, like this:
>>
>> grub> root (hd0,0)
>>
>> If you are not sure which partition actually holds these files, use the
>> command find (see find), like this:
>>
>> grub> find /boot/grub/stage1
>>
>> This will search for the file name /boot/grub/stage1 and show the
>> devices which contain the file.
>>
>> Once you've set the root device correctly, run the command setup (see
>> setup):
>>
>> grub> setup (hd0)
>>
>> This command will install GRUB on the MBR in the first drive. If you
>> want to install GRUB into the boot sector of a partition instead of the
>> MBR, specify a partition into which you want to install GRUB:
>>
>> grub> setup (hd0,0)
>>
>>
>> Med venlig hilsen Claus Larsen
>
> Jeg ser på det, takker.

Jeg har fundet fejlen, der manglede at a, grub skal se således ud:

title FreeBSD 5.0
   root (hd1,0,a)
   kernel /boot/loader

Tak for hjælpen.
--
/Kasper


Karsten Thygesen (03-09-2003)
Kommentar
Fra : Karsten Thygesen


Dato : 03-09-03 13:12

Kasper Nordal Lund <ihate@spam.org> writes:

> Jeg har fundet fejlen, der manglede at a, grub skal se således ud:
>
> title FreeBSD 5.0
>    root (hd1,0,a)
>    kernel /boot/loader

Men pas på - grub har ikke support for UFS2, som benyttes som default
i FreeBSD-5.1 (opdagede jeg the-hard-way

Karsten

Søg
Reklame
Statistik
Spørgsmål : 177505
Tips : 31968
Nyheder : 719565
Indlæg : 6408554
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste