You are not logged in.

#26 2005-03-01 17:13:00

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [base:system] Grub 0.97 with graphical patch

Usually any installation or upgrade of grub require an update to the stages.  That can be done with the instruction

# install-grub /dev/hd?

where ? is the letter you want to install grub to.  Can be the MBR (ie. hda), or a partition (ie. hda4).

Offline

#27 2005-03-01 17:17:33

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [base:system] Grub 0.97 with graphical patch

My recomendation, try to load first a dummy reiser4 partition to see if the kernel has the support.  And if that works, then let's deal with grub.

Right now I complete the rediffed of the reiser4 patch for grub with splash image.  The files will be available later today.

Offline

#28 2005-03-01 17:22:15

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [base:system] Grub 0.97 with graphical patch

Also, I can be wrong, but remember I read somewhere on the net that it's recommended to have /boot on a ext2/ext3 partition if plan to use another file system for the disk.

Offline

#29 2005-03-01 20:38:09

iotc247
Member
From: Florida
Registered: 2004-05-31
Posts: 177
Website

Re: [base:system] Grub 0.97 with graphical patch

Probably a good idea... I will do that but until you release a package ill play it safe with lilo

Offline

#30 2005-03-01 21:17:18

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [base:system] Grub 0.97 with graphical patch

The following files are needed only if you want to add support for reiser4 file systems.  People who do not plan or need that support use the PKGBUILD at the begining of the thread like always. 

For reiserfs4 support you need:
1. A patched kernel, follow steps from http://wiki2.archlinux.org/index.php/Reiser4FShowto
2. Supporting applications which are libaal and reiser4progs. Both are up to date versions from the Reiser4FShowto.
3. The new patched grub PKGBUILD.

Now, the files:
1. libaal

pkgname=libaal
pkgver=1.0.4
pkgrel=1
pkgdesc="libaal"
url="http://www.namesys.com"
depends=()
install=
source=(ftp://ftp.namesys.com/pub/reiser4progs/$pkgname-$pkgver.tar.gz)
md5sums=('bdcdb1b8ca13dba897c0a2138d1643f5')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --enable-libminimal
  make || return 1
  make prefix=$startdir/pkg/usr install
}

2. reiser4progs

pkgname=reiser4progs
pkgver=1.0.4
pkgrel=1
pkgdesc="Reiser4 filesystem programs"
url="http://www.namesys.com/v4/v4.html"
depends=('e2fsprogs' 'libaal')
source=(ftp://ftp.namesys.com/pub/reiser4progs/$pkgname-$pkgver.tar.gz)
license=""
md5sums=('b2cbc8eb9429b50e0e99ba4eeda4801e')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  # if you wish to add GRUB reiser4 functionality, use the next configure instead :
  #./configure --prefix=/usr --enable-libminimal
  make || return 1
  make prefix=$startdir/pkg/usr install
}

3. grub with splash and reiserfs4

# Contributor: Mario A. Vazquez <mario_vazq@hotmail.com> 
pkgname=grub
pkgver=0.96
pkgrel=4
pkgdesc="A GNU multiboot boot loader"
url="http://www.gnu.org/software/grub/"
depends=('ncurses' 'libaal' 'reiser4progs')
makedepends=('')
source=(ftp://alpha.gnu.org/gnu/grub/grub-$pkgver.tar.gz 
  menu.lst install-grub grub-0.96-graphics.patch splash.xpm.gz 
  grub-0.96-reiser4.patch)
backup=('boot/grub/menu.lst')
md5sums=('47c228c88f848873288ad1cd04cc93f0' '5802ecfcac64057a770947be7e26c045'
         '8c9cdb9b38cb158f762cac8fc7eabb28' '85a7a4fd93f48e9a4c1c311db297f97d'
         '894e82424f2d1cf4a76613e546645255' 'e470a33974b08886d00fcbfc4102dfcd')

build() {
  cd $startdir/src/$pkgname-$pkgver
# add graphic background support 
  patch -p1 < ../grub-0.96-graphics.patch || return -1
# add support for reiser4
  patch -p1 < ../grub-0.96-reiser4.patch || return -1

# optimizations break the build -- disable them
  autoreconf --install --force
  CFLAGS= ./configure --prefix=/usr --bindir=/bin --sbindir=/sbin
  CFLAGS= make || return 1
  make DESTDIR=$startdir/pkg install
  install -D -m644 ../menu.lst $startdir/pkg/boot/grub/menu.lst
  install -D -m644 $startdir/splash.xpm.gz $startdir/pkg/boot/grub/splash.xpm.gz
  install -D -m755 ../install-grub $startdir/pkg/sbin/install-grub

  # make symlink to fix path issues with splashimage
  ln -sf . $startdir/pkg/boot/boot
}

4. grub-0.96-reiserfs4.patch get it here

After install, issue a install-grub /dev/hd?, edit your fstab, and test it.

Offline

#31 2005-03-01 21:51:06

iotc247
Member
From: Florida
Registered: 2004-05-31
Posts: 177
Website

Re: [base:system] Grub 0.97 with graphical patch

During install-grub i get


grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/reiser4_stage1_5" exists... yes
 Running "embed /boot/grub/reiser4_stage1_5 (hd0)"... failed (this is not fatal) Running "embed /boot/grub/reiser4_stage1_5 (hd0,0)"... failed (this is not fatal)
 Running "install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.

Notice the reiser4 part failed.

Offline

#32 2005-03-01 22:11:23

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [base:system] Grub 0.97 with graphical patch

sometimes grub gives that error message, I think that´s why they also had the message this is not fatal.  I usually get that message when installing on a separate /boot partition with or without reiserfs4.

Offline

#33 2005-03-01 22:12:05

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [base:system] Grub 0.97 with graphical patch

again, which partition do you have on reiserfs4?

Offline

#34 2005-03-01 22:17:15

iotc247
Member
From: Florida
Registered: 2004-05-31
Posts: 177
Website

Re: [base:system] Grub 0.97 with graphical patch

Every partition.. Boot has no partition.. Its on my root partition.. Ok well ill go see what happens.. if something happens ill just use my very tricky recovery method and make a seperate /boot partition with ext3

Offline

#35 2005-03-01 22:20:27

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [base:system] Grub 0.97 with graphical patch

For example, install-grub  where /boot is on / partition.

grub> root (hd0,2)
 Filesystem type is reiserfs, partition type 0x83
grub> setup (hd0,2)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
 Running "embed /boot/grub/reiserfs_stage1_5 (hd0,2)"...  19 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0,2) (hd0,2)1+19 p (hd0,2)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub> quit

Grub installation finished.

Now install-grub where /boot is a stand alone partition (ext3)

grub> root (hd0,1)
 Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,1)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,1)"... failed (this is not fatal)
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,1)"... failed (this is not fatal)
 Running "install /boot/grub/stage1 (hd0,1) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
grub> quit

Grub installation finished.

And the system boot from any of them without problem.

Offline

#36 2005-03-01 22:35:14

iotc247
Member
From: Florida
Registered: 2004-05-31
Posts: 177
Website

Re: [base:system] Grub 0.97 with graphical patch

Ok heres my menu.lst... Please tell me why i get error 15 file not found... Probably something stupid thats right infront of my eyes


# general configuration:
timeout   5
default   0
splashimage /grub/splash.xpm.gz
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
# TIP: To use udev, add "devfs=nomount" to your kernel line.
#
#-*

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 ro devfs=nomount video=vesafb:ywrap,pmipal,1280x1024-32@60 splash=verbose,theme:ArchMetal
initrd /boot/fbsplash-ArchMetal-1280x1024 

# (1) Windows
#title Windows
#root  (hd0,0)
#makeactive
#chainloader +1

Offline

#37 2005-03-01 23:02:08

iotc247
Member
From: Florida
Registered: 2004-05-31
Posts: 177
Website

Re: [base:system] Grub 0.97 with graphical patch

Nevermind I fixed it.. Thanks for all your hard work.. It works correctly.

Offline

#38 2005-03-01 23:08:51

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [base:system] Grub 0.97 with graphical patch

If you look to my previous post, the second sample shows the same error message, but related to reiserfs that is the file system I'm using.  So not concentrate that much with the error itself.  Even when the error is display, the installation can work.

But I see something strange in your menu.lst, can you post your fdisk -l results?

Offline

#39 2005-03-01 23:20:11

iotc247
Member
From: Florida
Registered: 2004-05-31
Posts: 177
Website

Re: [base:system] Grub 0.97 with graphical patch

Disk /dev/hda: 160.0 GB, 160041885696 bytes
240 heads, 63 sectors/track, 20673 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       12917    97652488+  83  Linux
/dev/hda2           12918       15500    19527480   83  Linux
/dev/hda3           15501       16792     9767520   83  Linux
/dev/hda4           16793       16986     1466640    5  Extended
/dev/hda5           16793       16921      975208+  82  Linux swap / Solaris
/dev/hda6           16922       16986      491368+  83  Linux

Disk /dev/hdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1        6079    48829536   83  Linux

I did fix it remember lol... I just havent migrated to a /boot partition yet... Dont feel like it right now.

Offline

#40 2005-03-01 23:25:58

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [base:system] Grub 0.97 with graphical patch

the separate /boot partition is not needed. If it's working, you can keep it that way.

Offline

#41 2005-03-01 23:34:59

iotc247
Member
From: Florida
Registered: 2004-05-31
Posts: 177
Website

Re: [base:system] Grub 0.97 with graphical patch

True really isnt needed.. ok thanks for adding the reiser4 patch.. It works nicely...

Offline

#42 2005-03-02 23:20:34

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [base:system] Grub 0.97 with graphical patch

Just a note that the grub + reiser4 package and related packages & docs has been added to the Installation Guide as an alternate option for installation.

Offline

#43 2005-04-17 07:54:27

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [base:system] Grub 0.97 with graphical patch

do you think you could get this all in the wiki, dude?

Offline

#44 2005-04-17 23:52:32

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [base:system] Grub 0.97 with graphical patch

It depends on who has privileges to modify or create a wiki.  I have not problem on adding it.

Offline

#45 2005-04-18 04:02:29

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [base:system] Grub 0.97 with graphical patch

Anyone can do it - you just sign in in the bottom left - I reckon DarkCoder would be good sign in for you - you might even find it better than writing it up on the forum

Offline

#46 2005-10-06 00:14:47

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: [base:system] Grub 0.97 with graphical patch

wooow, so nice to personalize our association PC's splashscreen smile
Thanks darkcoder


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#47 2005-10-06 16:11:55

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [base:system] Grub 0.97 with graphical patch

darkcoder,
I know this is an old thread, but can you please provide these PKGBUILDs on the AUR

Offline

#48 2005-10-06 17:45:05

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: [base:system] Grub 0.97 with graphical patch

Added to aur darkcoder can take it if he so wishes  wink

Great package ....


Mr Green

Offline

#49 2005-10-13 17:50:20

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [base:system] Grub 0.97 with graphical patch

I've been very busy ltely and haven't been on the forums until today.

Mr. Green, due to the comment on AUR by msg431 and others, I also suggest to change the graphical grub package name, or remove it from AUR, and I will repost it as grub-gfx.

Offline

#50 2005-10-13 18:18:13

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: [base:system] Grub 0.97 with graphical patch

I am sorry  :oops:

Removed from AUR as requested ...


Mr Green

Offline

Board footer

Powered by FluxBB