Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-05-2006, 12:53 PM
|
#1
|
LQ Newbie
Registered: Mar 2006
Posts: 21
Rep:
|
Grub
I found a flavor of grub on the slackware home page for 10.2.-installed it with pkginstall and ran grubconfig. I am a little confused- though-
My current setup is:
hda1 /boot
hda2/
hda3 swap
hda4 /home
If it makes a difference it's formated using XFS (came down to a coin toss between it and ext3).
So far so good-Lilo installed like a champ in the initial setup. When I run through grubconfig it seems to confuse it with wanting to keep a relatively small parotion for /boot--or am I being a idiot? because when prompted for where to put all the grub files I thought that /dev/hda1 when labled as /boot would let grub know just to put the files their. It seems to sort of do this when I use grub-install. Am I doing something wrong? I thought about symlinkink the folders/directories it makes to root to incasee it prefers to look for them their figuring if something does go wrong it'll least know where to start looking.
I welcome any comments (yes even, dude: back up right now and use ext3 because etc.)
|
|
|
03-05-2006, 01:48 PM
|
#2
|
Member
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900
Rep:
|
I don't entirely understand your question. Are you saying that when you initially installed Slackware you used LILO (is this still the default on Slack?), and now you want to switch to grub? You'll want to install it to the MBR, not /boot. /boot should be a small partition. Is /boot mounted when you try to install the files there? I'm not familiar with how Slackware works, but on Gentoo /boot is not automatically mounted at startup.
I've never tried XFS, tend to use Reiser myself. You might be interested in this and this. Apparently versions of grub below 0.91 don't support XFS, but I expect Slack is using a more recent version.
|
|
|
03-05-2006, 02:40 PM
|
#3
|
LQ Newbie
Registered: Mar 2006
Posts: 21
Original Poster
Rep:
|
note to self: don't post when half their
Oh sorry man My post when looking at it again isn't clear as I thought it was before a little coffee.
I know grub is supposed to go into the MBR
Where I'm confused is When I use grubconfig it wants to know where to place the files it asks if it's ok to put them into /dev/hda2
However I made a small gentoo style /boot partition, and was under the impression that I should point grubconfig to that....
If let it go with the default (in this cause /dev/hda2) it starts fine but then cancels with a error something about stage_1XFS failed.
You are correct that I started with LILO. I am interested in switching to grub, because I've had fairly good luck with it from before moving to Slackware from Gentoo.
After playing around with grub-install
When I do grub-install/dev/hda it seems to find /boot and /root it makes a folder in /root called /boot.
My concern is I don't want Grub to get confused between my boot partion and the folder it made also called boot.
What's your experience with Reiser like? I've only used it once and that was a long time ago. I ran into some problems with corruption.
Last edited by egad; 03-05-2006 at 02:46 PM.
|
|
|
03-05-2006, 03:15 PM
|
#4
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
If you have set up a separate partition to be your /boot partition, you mount it to /boot on /dev/hda2 ( your / ) - then you install grub
Grub will put its files to /boot/grub and the kernel-images should then (not necessarily - but that is what a /boot partition is for) also be stored in /boot - which is actually /dev/hda1...
With /boot mounted ( /dev/hda1 mounted to /boot on /dev/hda2 ) you run:
grub-install /dev/hda and then edit the file /boot/grub/menu.lst which is the config file
Last edited by jomen; 03-05-2006 at 03:18 PM.
|
|
|
03-06-2006, 12:21 PM
|
#5
|
Member
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900
Rep:
|
So far I've not had any trouble with Reiser, but I've only recently started using it. From what I hear it's pretty stable these days though.
|
|
|
03-06-2006, 06:29 PM
|
#6
|
LQ Newbie
Registered: Mar 2006
Posts: 21
Original Poster
Rep:
|
Here is where it's at
Following some of the tips from here, my system looks like this
/dev/hda1 (named boot)
/dev/hda2 (root)
/dev/hda3(swap)
/dev/hda4(home)
After unmounting /dev/hda1 running grub-install for what ever reason it didn't like my set up. Not a big deal. I ran grubconfig it liked it just fine. It's basicly grub-install with a ncurses setup. Now for some reason when I put the grub files and vmlinuz in the boot partition this causes a kernel panic. However acording to bugs-@lfs it's also a known bug with 0.97 and 0.98 Not a problem. It turns out like you guys said placing all the grub stuff in the boot partition however it likes to place it their makes grub happy-I found out that after reading up on this bug that if you make your startup line:
kernel (hd0,0) /vmlinuz and init=3 at the end of it. Grub (sofar) is happy.
My current setup is to have my boot and home partitions being ext3 with a few tune2fs enhancements (b-tree hashin and full journaling) but my root partion is Reiser. So far...it's ok.. I was so tickled that Slackware would deel quite happly with that kind of abuse I've decided to keep it.
|
|
|
03-06-2006, 06:42 PM
|
#7
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,413
|
I always use grub - Slack included.
As an aside, what conceivable use is journalling on a /boot partition ???. What sort of update traffic are you expecting ???.
|
|
|
03-06-2006, 06:54 PM
|
#8
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
/dev/hda1 is what you want to be your /boot partition - right?
on /dev/hda2 (your / ) you have a directory called /boot - right?
mount the first ( /dev/hda1) to the second ( /boot on /dev/hda2) - then run grub-install /dev/hda (yes /dev/hda - not /dev/hda1 or /dev/hda2...)
If you don't mount /dev/hda1 to /boot - grub will still be installed - but its files will end up in /boot on /dev/hda2 - since your /boot partition (/dev/hda1) is not mounted to this directory...
If /dev/hda1 is mounted to /boot on /dev/hda2 the setup should be:
Code:
default 0
# this boots the first - and here the only - kernel-image listed
and:
ext3 on /boot partition makes no sense...
timeout 10
# or whatever time you want
title=_your_title_
root (hd0,0)
# which is /dev/hda1
kernel /linux-YOUR_name_for_it root=/dev/hda2
# the first refers to (hd0,0)/ --> which is /boot or /dev/hda1 (IF /dev/hda1 was mounted to /boot...)
#root= ... refers to /dev/hda2 which is your / partition
and:
ext3 on /boot partition makes no sense
Last edited by jomen; 03-06-2006 at 07:00 PM.
|
|
|
03-06-2006, 07:26 PM
|
#9
|
LQ Newbie
Registered: Mar 2006
Posts: 21
Original Poster
Rep:
|
Hmm
I read some place something similar about ext2 on boot. Out of ceriousity, would you mind explaining why that's the case.
|
|
|
03-06-2006, 07:38 PM
|
#10
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
Quote:
would you mind explaining why that's the case
|
If you mean my last comment: a journalling filesystem is useful for partitions in case the system gets shut down unexpectedly and uncleanly (power-fail for example) - the recovery will be faster - since the /boot partition does not even need to be mounted most of the time, this feature is not really needed - a filesystem-check will be quick even if it is not journalled, as the size of the partition is small, while a file-system check on a large partition (nowadays 100+ GB...) can take hours if it's not a journalling filesystem...
|
|
|
03-07-2006, 02:06 AM
|
#11
|
LQ Newbie
Registered: Feb 2006
Distribution: Slackware 10.2, LFS 6.1, Ubuntu Breezy, WinXP
Posts: 17
Rep:
|
You didn't tell us whether there is a file named /boot/grub/xfs_stage1_5
This is not so likely, but who knows.
|
|
|
03-07-2006, 10:43 AM
|
#12
|
Member
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Rep:
|
What version of grub are you using? I read the XFS wikipedia entry and grub 0.91 and older don't work well with XFS.
|
|
|
03-08-2006, 03:12 AM
|
#13
|
LQ Newbie
Registered: Feb 2006
Distribution: Slackware 10.2, LFS 6.1, Ubuntu Breezy, WinXP
Posts: 17
Rep:
|
Well, he said it is version which comes for Slack 10.2, so that should be 0.97. I wouldn't say it is problem.
|
|
|
All times are GMT -5. The time now is 10:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|