LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-20-2012, 02:45 PM   #1
francois.e
Member
 
Registered: Sep 2008
Posts: 41

Rep: Reputation: 0
grubconfig for grub 0.97 on hdd or usb: is there a patch for ext4?


Searching for a simple way to install grub 0.97 on hdd or usb, I found
grub 0.97 slackware with grubconfig command:
http://ftp.slackware.cz/slackware/sl...37/extra/grub/

I still prefer to work with grub legacy than grub2. I use is on a regular basis but had some problem when I wanted to install vector linux and archbang on a usb key. Vector will boot but not archbang:
http://bbs.archbang.org/viewtopic.php?id=2052

This grub package does not seem to be able to install a grub bootloader able to read ext4 file system on a sdb3 partition for a menu.lst installed on the sdb1 partition (sdb2 being the swapfile).

Is there some patch available for the abovementionned slackware package?

Thanks.

Last edited by francois.e; 01-27-2012 at 04:56 PM.
 
Old 01-20-2012, 02:55 PM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,344

Rep: Reputation: 184Reputation: 184
puppylinux legacy grub is patched to read ext4, I thought slackware grub was patched also, but maybe not.
 
Old 01-20-2012, 03:03 PM   #3
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,060

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
did you try changing
"root (hd1,2)"
to
"root (hd0,2)"??

or did you try just removing the "root ( )" completely as with the Vector entry?

Are the Vector and/or Archbang just livecd's or are they full HDD installs?

did you try root=/dev/sdb3 in the kernel command line?


It seems you have a Archbang full install and a Vector livecd on usb?
that being said can you post the Archbang menu.lst and /etc/fstab?
when you installed archbang and it made the initrd/initramfs for sdb3?

did you see this?
If you are installing Archbang to a USB memory or USB HD, you have to add USB as a HOOK in /etc/mkinitcpio.conf, during the configuration. More information in the official Installing Arch Linux on a USB key.
"Note: When grub is installed on the USB key, the key will always be hd0,0"
"When editing the /etc/mkinitcpio.conf, add the usb hook to the hooks array right after udev. This is necessary for appropriate module loading in early userspace. "
mine is-
"HOOKS="base udev usb autodetect pata scsi sata filesystems"
https://wiki.archlinux.org/index.php...x_on_a_USB_key

and the grub error 15 is it can't find the kernel, so you have to start there
if it does boot the kernel/initrd but cant find it's root, check for the usb hook, and make sure the initramfs is looking for correct partition, etc

Last edited by linus72; 01-20-2012 at 03:16 PM.
 
Old 01-20-2012, 05:01 PM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
I use grub legacy and installed it in little (~200MB) separate /boot primary partition which is ext2 formated
So far so good
 
Old 01-23-2012, 04:43 PM   #5
francois.e
Member
 
Registered: Sep 2008
Posts: 41

Original Poster
Rep: Reputation: 0
Thanks for your suggestions. I will come back to report on the solution as soon as I get more time to work on the problem.

Your help is appreciated very much.
 
Old 01-25-2012, 08:05 PM   #6
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 292

Rep: Reputation: 75
I haven't tried it myself but there is one available for Arch linux.
http://projects.archlinux.org/svntog...=packages/grub
 
Old 01-26-2012, 04:51 AM   #7
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If grub legacy is in a separate partition why not chainload the / partition? When you install grub2 to the / partition adjust your timeout to "0" and you will hardly notice the difference.
 
Old 01-27-2012, 05:51 PM   #8
francois.e
Member
 
Registered: Sep 2008
Posts: 41

Original Poster
Rep: Reputation: 0
@linus72:
Your suggestions were finally part of the final solution. In addition, I realized that the grub version that I had was not patched for reading ext4 partitions.

I finally got around the grub legacy not patched for ext4 partition by using mepis 8.50 system assistant to repair grub. However, I would have like to be able to apply the ext4 patch provided by salix to slackware grub legacy and grubconfig package as proposed in::
http://www.salixos.org/forum/viewtopic.php?p=3127

Grubconfig is really a nice program to install grub and prepare a menu.lst.

EDITING:
After looking around a lot, I exactly found what I was looking for in the first post of this thread. grub legacy, grubconfig compatible ext4:
http://ftp.slackware.cz/slackware/sl...37/extra/grub/

Thanks to you all.

Last edited by francois.e; 01-27-2012 at 11:04 PM.
 
Old 01-29-2012, 08:18 AM   #9
francois.e
Member
 
Registered: Sep 2008
Posts: 41

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by larryhaja View Post
I haven't tried it myself but there is one available for Arch linux.
http://projects.archlinux.org/svntog...=packages/grub
This one doesn't seem to have grubconfig included though. Grubconfig is really handy.

Thanks nonetheless.
 
Old 01-29-2012, 08:23 AM   #10
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,060

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
grubconfig's just a script

if you got it working now you can make a custom image for grub
http://www.makeuseof.com/tag/how-to-...mage-for-grub/
 
Old 01-30-2012, 10:29 AM   #11
captain_sensible
Member
 
Registered: Apr 2010
Posts: 72

Rep: Reputation: 0
more on legacy grub

I found this thread very useful wanting to play with grub. I installed grub-0.97-i486-9.txz

and ran grubconfig (didn't even know that script existed) Now about the patch I know about
sbopkg for getting patches ,upgrade for sbo packages, but had a mental block on actually applying the patch grub-0.97-i486-9.txz.asc played with slackpkg update,install-new etc
nothing seemed to happen but somehow eventually got grub installed.

But if you have downloaded the patch to the say the desktop whats the simple way of installing the patch from the command line.I mean installing the txz is

#installpkg grub-0.97-i486-9.txz ,so without using a network how do you install the patch?
 
Old 01-30-2012, 01:01 PM   #12
captain_sensible
Member
 
Registered: Apr 2010
Posts: 72

Rep: Reputation: 0
While starting to play with grub ,I installed antiX based on mepis which boots itself using grub. First I tried to install grub on Slackware and boot Antix from slackware. Firstly I got a glitch over antix being ext2 and slackware being ext4,and crashed slackware.

Got slackware booted using install disk and then ran grubconfig. Bash terminal stated “done” and I assumed I put menu.lst into /boot/grub of slackware. Antix then wouldn’t boot but got into file system using trinity.

I found menu.lst that references slackware in /boot/grub/menu.lst of antiX

Now I read up about grub legacy and noted something about initrd files. I noted there were not any
in /boot of Slackware.

This begs the question although I installed grub-0.97-i486-9.txz it looks like i’m missing one or more packages (and or steps)to be able to be able to properly install grub legacy on slackware 13.37.

my partition are sda1 (swap)
sda2 antix (partly mashed but grub ok)
sda3 slackware

(when I ran grubconfig I entered /dev/sda2, thinking grub notation sda1 being hda0, or sda0)i.e I thought it was going to slackware (I was wrong)

What are the steps/ packages i’m missing ?

This is a bit of a dogs breakfast -sorry for that but
1) At least I can get slackware up booting
2) I’m starting to appreciate lilo very quickly
3) I can always run liloconfig and go back to lilo, and re-install another distro onto sda2
 
Old 01-30-2012, 03:06 PM   #13
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
It's all about planning

If you want to keep the grub bootloader installed with antiX, you have to update menu.lst from antiX, so you boot antiX and add slackware in antiX's /boot/grub/menu.lst

Now if you want to use grub from Slackware, you overwrite MBR and install slackware's grub with
grub-setup /dev/sda, then update grub menu in Slackware's /boot/grub/menu.lst

But again, I found using a separate /boot partition in ext2 format is the easier thing to deal with grub. This way you'll never have to mess with grub again, just update the /boot/grub/menu.lst even if you change distribution or upgrade system, update kernel etc...

Last edited by Cedrik; 01-30-2012 at 03:11 PM.
 
Old 01-31-2012, 06:05 AM   #14
captain_sensible
Member
 
Registered: Apr 2010
Posts: 72

Rep: Reputation: 0
Cedrik thanks

I would like to go with using grub with slackware.

At the moment menu.lst is in boot/grub of partition sda2 which is antix.So at the moment grub is actually working but stage2 stuff(i.e menu.lst) is in boot/grub of antix, and I want it in slackware.


My understanding is that when you overwrite the mbr using grub-config ,it writes code on the mbr which points to config files such as menu.lst which is in /boot/grub of the partition you want to use in my case I would like slackware which is on sda3.


Now after booting into slackware from grub , I tried #grubconfig ,and choosing
simple install to /dev/sda3 output was "can not find stage1". Now I take it that the gubconfig script takes naming literally and does not use partition numbers starting from zero? Inside slackwares /boot/grub there are a load of mod files, kernel.img several other
img files.

So first I need to overwrite mbr to point to slackwares /boot/grub , I thought grubconfig would do that, and other scripts as you say grub-setup and or grub-install to put a menu.lst (which I then edit) into sda3 /boot/grub

Its not happening though
 
Old 01-31-2012, 07:19 AM   #15
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
[edit]
Actually, you can not install grub in Slackware's /boot if /boot is not separate partition and Slackware's root partition is ext4 formated :/

Last edited by Cedrik; 01-31-2012 at 07:22 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
adding SATA ext3 HDD into new Suse11.4 box with ext4 system HDD Mail2me Linux - Hardware 4 10-26-2011 07:47 PM
Is it safe to format USB flash to ext4 or ext4? joham34 Linux - Newbie 2 01-08-2011 11:58 AM
Installing GRUB and mounting my HDD on DSL thru USB? avD,ZeeK DamnSmallLinux 0 10-24-2007 08:52 AM
grub cant mount usb hdd creon Linux - General 1 06-08-2007 07:23 AM
how to boot sda1 in grub (usb HDD) surfbass Linux - General 5 05-07-2006 04:01 PM


All times are GMT -5. The time now is 07:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration