LinuxQuestions.org
Visit Jeremy's Blog.
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 12-31-2014, 04:07 PM   #16
gauchao
Member
 
Registered: Dec 2009
Location: Veneto
Distribution: Slackware64
Posts: 366

Rep: Reputation: 143Reputation: 143

Before running grub-install and grub-mkconfig, type as root:
Quote:
#chroot /mnt
 
Old 12-31-2014, 04:20 PM   #17
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 492

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by gauchao View Post
Before running grub-install and grub-mkconfig, type as root:
Yes, I've done that, but grub-install and grub-mkconfig still produce the same errors that I've reported in the OP.
 
Old 12-31-2014, 09:56 PM   #18
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,343

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Maybe these extra mount commands will make a difference

Code:
mount /dev/sda1 /mnt
mount --bind /dev /mnt/dev 
mount --bind /dev/pts /mnt/dev/pts 
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
Code:
chroot /mnt
 
1 members found this post helpful.
Old 12-31-2014, 11:45 PM   #19
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
From this post you don't have a file system in /dev/sda2. How can that work? Also, that partition is probably too small to be usable.

Last edited by Didier Spaier; 12-31-2014 at 11:51 PM.
 
Old 01-01-2015, 05:26 AM   #20
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,343

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Quote:
Originally Posted by Didier Spaier View Post
From this post you don't have a file system in /dev/sda2. How can that work? Also, that partition is probably too small to be usable.
Good catch. I never did notice sda2 was too small for the boot partition. The op never mentioned in this thread anything about not being able to mount sda2 just a reference to errors in post 15.

Last edited by colorpurple21859; 01-01-2015 at 05:30 AM.
 
Old 01-01-2015, 05:56 AM   #21
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
The op never mentioned in this thread anything about not being able to mount sda2 just a reference to errors in post 15.
Yes. And probably the OP doesn't realize that a partition type is not a file system type, if I may infer this from that quote:
Quote:
Originally Posted by Geremia View Post
No, I'm using BIOS, not EFI.That produces an error, saying something about NTFS and how it couldn't be mounted. What filesystem type is the BIOS boot partition (of type EF02)?
@Geremia: for GUID partition tables, aka GPT, EF02 refers to "BIOS boot partition", but:
  1. To use it including to mount it, you need to put a filesystem in it.
  2. It could be too small to be usable.

Last edited by Didier Spaier; 01-01-2015 at 06:01 AM.
 
Old 01-01-2015, 11:09 PM   #22
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 492

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by Didier Spaier View Post
From this post you don't have a file system in /dev/sda2. How can that work? Also, that partition is probably too small to be usable.
If the filesystem is too small, how could GRUB even install once? Is GRUB really installed somewhere else, and I'm just imagining it's on sda2?

I have another machine partitioned in the same way, except the BIOS boot partition is over 30 MB. Yet I have the same problems there as here when trying to re-install GRUB.
 
Old 01-02-2015, 07:02 AM   #23
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,343

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
The boot partition needs to be 200-500mb in size and formated. The slackware setup only offers to format the root partition. Any boot partitions created will need to be formated before running setup.
 
Old 01-02-2015, 07:15 AM   #24
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,343

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Quote:
2 34 2047 1007.0 KiB EF02
Quote:
No, I'm using BIOS, not EFI.
This is your other problem. The free space before 2048 on gpt shouldn't be used for a partition. This is left empty to allow for the use of grub in bios mode(none efi). You will also most lilely have to use the --force option when installing grub2 in i386-pc(none efi) on a gpt disk.

Last edited by colorpurple21859; 01-02-2015 at 07:18 AM.
 
Old 01-02-2015, 11:18 PM   #25
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 492

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by colorpurple21859 View Post
This is left empty to allow for the use of grub in bios mode(none efi).
Yes, that's what I'm doing: using that space for GRUB. I don't use EFI.
Quote:
Originally Posted by colorpurple21859 View Post
You will also most lilely have to use the --force option when installing grub2 in i386-pc(none efi) on a gpt disk.
Yes, this is what I did the first time.
 
Old 01-02-2015, 11:49 PM   #26
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 492

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by colorpurple21859 View Post
Maybe these extra mount commands will make a difference

Code:
mount /dev/sda1 /mnt
mount --bind /dev /mnt/dev 
mount --bind /dev/pts /mnt/dev/pts 
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
Code:
chroot /mnt
That fixed it! Thank you!
Are all those mount commands necessary, though? I know the chroot wasn't necessary (it certainly would be were I booted off a recovery flash drive).

Last edited by Geremia; 01-02-2015 at 11:50 PM.
 
Old 01-03-2015, 11:07 AM   #27
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,343

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Quote:
Are all those mount commands necessary, though?
I Don't know why, but sometimes those mount commands have to be ran to get grub-install to work.
 
  


Reply

Tags
btrfs, grub, grub2


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
[SOLVED] i didn't find "grub.cfg" file on /boot/grub/ Carl_cj Slackware 14 11-16-2014 09:21 AM
[SOLVED] There is no "menu.lst" in my Ubuntu "/boot/grub/" folder. msbstar Linux - Newbie 18 09-15-2012 01:26 PM
dual boot fedora & vista - boot error - "GRUB loading stage 2" ans Fedora 1 08-20-2007 03:35 AM
uninstall boot loader "Lilo" install "Grub" sethis Linux - Newbie 6 11-30-2006 09:32 AM
grub list "MZ" for my windows boot "Help on Change" davimint Linux - Newbie 2 01-26-2006 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:05 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration