LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 07-19-2012, 02:19 PM   #1
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 14.1/Current, CentOS 6.5/7.0
Posts: 714

Rep: Reputation: Disabled
Installing grub on ext4 / non-separate boot


Hello,

OS - Slackware 13.37 32 bit, both / and /home are ext4.
/boot is not separate.

I'm trying to install Xen from Slackbuilds and it requires either grub or mbootpack for creating Xen compatible kernel with lilo, I chose to go with grub as I've worked on grub so far.
Removed lilo and installed grub legacy from /extra, ran grub-insall /dev/sda which completed successfully -

Quote:
root@pinguslack:/boot# grub-install /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/sda

Now, if I try to run grubconfig, it gives me an error of my /boot FS which is mounted on / is read only and exits.

There's no menu.lst file in /boot/grub yet so I had to uninstall grub and install lilo to get back to work.

I searched and found some hints that grub may not be compatible with both the condition i.e. ext4 FS and non separate /boot. Found a thread which talks about some patch for this, but no further info on that -

Can somebody please confirm if it's really this tricky to install grub on Slackware with ext4 and suggest something useful?

Regards,
-- Prince
 
Old 07-19-2012, 03:38 PM   #2
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 883

Rep: Reputation: 78
Not that tricky at all.
I install grub leg to a separate (small 256mb) ext 3 partition.
 
Old 07-19-2012, 05:15 PM   #3
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,497

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
Originally Posted by PrinceCruise View Post
Can somebody please confirm if it's really this tricky to install grub on Slackware with ext4 and suggest something useful?
Yes, we can

GRUB can't handle ext4. A few years ago, when ext4 came out, the Zenwalk folks immediately adopted it as their default filesystem, with GRUB as default boot manager. Those folks who didn't opt for a separate /boot partition in ext2 or ext3 just had an unbootable system. Easiest solution: make a separate /boot partition, format it in ext2 (no need to have a journaled FS there), give it 30 to 100 MB, and you're good.

Good luck.
 
Old 07-19-2012, 05:19 PM   #4
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 582

Rep: Reputation: 129Reputation: 129
Or you can use grub2. But I guess it's simpler to create a separate boot partition.
 
Old 07-19-2012, 10:48 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,103

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Quote:
Originally Posted by slackass View Post
Not that tricky at all.
I install grub leg to a separate (small 256mb) ext 3 partition.
Interesting. What does the following return ?.
Code:
dumpe2fs -h /dev/<ext3 f/s> | grep -i "^Inode[[:space:]]+size"

Last edited by syg00; 07-19-2012 at 10:49 PM.
 
Old 07-19-2012, 11:34 PM   #6
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 883

Rep: Reputation: 78
Quote:
Originally Posted by syg00 View Post
Interesting. What does the following return ?.
Code:
dumpe2fs -h /dev/<ext3 f/s> | grep -i "^Inode[[:space:]]+size"
# dumpe2fs -h /dev/<ext3 f/s> | grep -i "^Inode[[:space:]]+size"
bash: syntax error near unexpected token `|'
 
Old 07-19-2012, 11:37 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,103

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Insert your filesystem device name - say /dev/sda3 or whatever.
 
Old 07-19-2012, 11:51 PM   #8
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 883

Rep: Reputation: 78
Quote:
Originally Posted by syg00 View Post
Insert your filesystem device name - say /dev/sda3 or whatever.
dumpe2fs -h /dev/sda5 | grep -i "^Inode[[:space:]]+size"
dumpe2fs 1.41.14 (22-Dec-2010)
bash-4.1#
 
Old 07-20-2012, 04:16 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,103

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Hmmm - try it with just "inode". I'm just interested in what the size is for your ext3.
 
Old 07-20-2012, 05:47 AM   #10
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 14.1/Current, CentOS 6.5/7.0
Posts: 714

Original Poster
Rep: Reputation: Disabled
Guys, thanks for bothering and answering. So I'm at loss with the current setup?
Either I'll need to have a separate /boot partition with ext2/3 format or install grub2...? That grub2 thing is nasty I know!
What about any fix for current situation, any patch or the grub version in /extra was the pacthed one for ext4?

Regards.

Last edited by PrinceCruise; 07-20-2012 at 06:15 AM.
 
Old 07-20-2012, 07:14 AM   #11
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 582

Rep: Reputation: 129Reputation: 129
Quote:
The ext4 patch is included by default with Arch's GRUB package
https://wiki.archlinux.org/index.php...loader_support
 
Old 07-20-2012, 09:42 AM   #12
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,497

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Just an aside: why not use LILO? I know it's a little bone-headed, but it still does the job well. I'm using it on both servers (RAID5 and all) and desktops alike, and I'm quite happy with it. Of course, beware the Typo(tm).
 
Old 07-20-2012, 10:12 AM   #13
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 14.1/Current, CentOS 6.5/7.0
Posts: 714

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kikinovak View Post
Just an aside: why not use LILO? I know it's a little bone-headed, but it still does the job well. I'm using it on both servers (RAID5 and all) and desktops alike, and I'm quite happy with it. Of course, beware the Typo(tm).
Got no issues with LILO, works fine. But as per my first post I'm trying to install Xen, which requires grub or using mbootpack to create a lilo compatible Xen kernel.

Regards.
 
Old 07-20-2012, 12:10 PM   #14
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 883

Rep: Reputation: 78
Quote:
Originally Posted by syg00 View Post
Hmmm - try it with just "inode". I'm just interested in what the size is for your ext3.
I originally set it up as 256 mg ext3 but I think I should have used ext2. Too much going on on that system to to reformat.

# fdisk -l

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000afda7

Device Boot Start End Blocks Id System
/dev/sda1 * 63 125837144 62918541 7 HPFS/NTFS/exFAT
/dev/sda2 125837145 650118419 262140637+ 7 HPFS/NTFS/exFAT
/dev/sda3 650118420 1174399694 262140637+ 83 Linux
/dev/sda4 1174399695 1465147391 145373848+ 5 Extended
/dev/sda5 1174399758 1175443919 522081 83 Linux <--- grub
/dev/sda6 1175443983 1183829849 4192933+ 82 Linux swap
/dev/sda7 1183829913 1236266009 26218048+ 83 Linux
/dev/sda8 1236266073 1288702169 26218048+ 83 Linux
/dev/sda9 1288702233 1341138329 26218048+ 83 Linux
/dev/sda10 1341138393 1393574489 26218048+ 83 Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000aefdb

Device Boot Start End Blocks Id System
/dev/sdb1 63 488375999 244187968+ 83 Linux
/dev/sdb2 488376000 976768064 244196032+ 83 Linux
 
Old 07-24-2012, 01:06 PM   #15
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 14.1/Current, CentOS 6.5/7.0
Posts: 714

Original Poster
Rep: Reputation: Disabled
UPDATE : Okay, I happened to install Slackware 13.37 on a spare laptop as the only OS. I created a separated /boot partition with ext2 formatting.
Uninstalled lilo, installed grub legacy on MBR following the official README, sample :

http://ftp.gwdg.de/pub/linux/slackwa...37/extra/grub/

Final result was success, still there's no sign of menu.lst or grub.conf in /boot/grub. All I have is just

Quote:
root@pinguslack:/boot/grub# grub
default ffs_stage1_5 reiserfs_stage1_5 vstafs_stage1_5
device.map iso9660_stage1_5 stage1 xfs_stage1_5
e2fs_stage1_5 jfs_stage1_5 stage2
fat_stage1_5 minix_stage1_5 ufs2_stage1_5

Where to proceed next? Anything I missed along way?

Regards.
 
  


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
Recover grub with /boot on a separate partition. werepacman Linux - Newbie 1 09-14-2010 10:35 PM
Does a separate boot partition ensure that grub doesn't get deleted easily? samrat_rao Linux - General 1 02-15-2009 02:24 AM
Grub install with separate boot partition oomfoofoo Slackware - Installation 3 12-29-2006 11:04 AM
[SOLVED] Moving /boot to separate partition and using 'grub' to boot eldiener Linux - General 4 11-28-2006 08:01 PM
Dual boot grub Mandriva WinXP separate drives McNider Linux - General 2 06-17-2005 04:49 AM


All times are GMT -5. The time now is 08:04 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