LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-05-2018, 04:23 PM   #31
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 538

Rep: Reputation: 143Reputation: 143

Quote:
I've tried to press alt/option key nonetheless during boot time. Without the install DVD, it prompts absolutely nothing (black screen)
Did you see this before you configured grub:
Quote:
without the install DVD inserted: my MacBook displays the icon of a missing folder (black folder with a question mark inside) on a grey background
If not and this is 'new', it seems progress to me; 'only' grub still can't find what it's looking for...

Quote:
I do not know the difference with 2]...
It means that the DVD is the only bootable medium present; C normally bypasses the hdd boot-option, but if that is absent/not working booting goes automatically to the next one, the DVD. Basically, pressing C won't make a difference in this scenario

EDIT: Didier's answer arrived before mine and gives a way forward

Last edited by brobr; 08-05-2018 at 04:39 PM.
 
Old 08-05-2018, 05:08 PM   #32
l0f4r0
Member
 
Registered: Jul 2018
Location: Paris
Distribution: MacOS, Slackware
Posts: 508

Original Poster
Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by Didier Spaier View Post
So, your best bet is to just use the same steps as in my previous post but after:
Code:
chroot /mnt
instead of typing
Code:
grub-mkconfig   -o /boot/grub/grub.cfg
type:
Code:
lilo t -v
and if that seems OK:
Code:
lilo
Then, remove the DVD and reboot, pressing C if need be.
I've already done that (see https://www.linuxquestions.org/quest...6/#post5882801).
But I understand you won't read 3 pages ahaha
To be really sure, I did it again (like Britney Spears^^) and here is the result:
Code:
# lilo -v -t
LILO version 24.2 (test mode)
  * Copyright (C) 1992-1998 Werner Almesberger  (until v20)
  * Copyright (C) 1999-2007 John Coffman  (until v22)
  * Copyright (C) 2009-2015 Joachim Wiedorn  (since v23)
This program comes with ABSOLUTELY NO WARRANTY. This is free software 
distributed under the BSD License (3-clause). Details can be found in 
the file COPYING, which is distributed with this software.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/sda
Warning: Unable to determine video adapter in use in the present system.
Using BITMAP secondary loader
Calling map_insert_data
Mapping bitmap file /boot/slack.bmp
Warning: Video adapter does not support VESA BIOS extensions needed for
  display of 256 colors.  Boot loader will fall back to TEXT only operation.
Calling map_insert_file

Boot image: /boot/vmlinuz -> vmlinuz-huge-4.4.132
Added Linux  *

The boot sector and the map file have *NOT* been altered.
3 warnings were issued.
Then I run "lilo", ejected the install dvd and rebooted.
With or without 'C' key pressed, the result is the same, I get a black folder icon with a question mark inside, all on a grey background.

Quote:
Originally Posted by brobr View Post
Did you see this before you configured grub:
Code:
without the install DVD inserted: my MacBook displays the icon of a missing folder (black folder with a question mark inside) on a grey background
If not and this is 'new', it seems progress to me; 'only' grub still can't find what it's looking for...
I think it's new because I was getting GRUB before that...

Last edited by l0f4r0; 08-05-2018 at 05:15 PM. Reason: Add answer to brobr
 
Old 08-05-2018, 05:17 PM   #33
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,633

Rep: Reputation: Disabled
Then I am out of ideas. Maybe try refind as already suggested.
 
Old 08-05-2018, 06:03 PM   #34
l0f4r0
Member
 
Registered: Jul 2018
Location: Paris
Distribution: MacOS, Slackware
Posts: 508

Original Poster
Rep: Reputation: 149Reputation: 149
Ok, I've installed refind v0.11.2 via SBo.
Then I ran:
Code:
# sh /usr/share/refind-0.11.2/refind-install
and here is the output/error:
Code:
ShimSource is none
Installing rEFInd on Linux....
The ESP doesn't seem to be mounted! Trying to find it.... //doesn't seem to be on a VFAT filesystem. The ESP must be mounted at //boot or //boot/efi and it must be VFAT! Aborting!
The computer appears to be running in BIOS mode and has no ESP. You should create an ESP, and ideally boot in EFI mode, before installing rEFInd.
If a seasoned rEFInd people could help me, I'm all ears please because rEFInd documentation is pretty dense and intimidating. Thanks in anticipation
 
Old 08-05-2018, 06:19 PM   #35
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,633

Rep: Reputation: Disabled
Wait a minute... Let's try first to install grub, as it was actually never installed. So in post #26, after the chroot, just run
Code:
grub-install /dev/sda
If that doesn't work, after having started the installer type:
Code:
lsblk -l -o name,size,type,fstype,parttype
Provide the output as well as the content of your /etc/fstab in the installed system. This will tell us if it's possible to install refind.
 
Old 08-06-2018, 12:01 AM   #36
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 370
Blog Entries: 2

Rep: Reputation: 169Reputation: 169
I'm still interested in what happens if you try and make a refit or refind boot cdrom or dvd (and booting that)
 
Old 08-06-2018, 01:10 AM   #37
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,539

Rep: Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287
I'll preface this by saying I know pretty much nothing about modern macs (my last one was in the floppy era). But I did do some reading when we were trying to troubleshoot this issue in the previous topic, but can "bootcamp" be used to force "legacy" mode for the mac?

One additional thing I read is that you can select the startup device using the following instructions.

Quote:
Use Startup Manager
When you use Startup Manager to select a startup disk, your Mac starts up from that disk once, then returns to using the disk selected in Startup Disk preferences.
  1. Press and hold the Option key immediately after turning on or restarting your Mac.
  2. Release the Option key when you see the Startup Manager window.
  3. Select your startup disk, then click the arrow under its icon, or press Return.

SOURCE: https://support.apple.com/en-us/HT202796
Do you get anything special when you try that?
 
Old 08-06-2018, 05:42 AM   #38
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 538

Rep: Reputation: 143Reputation: 143
Quote:
Originally Posted by khronosschoty View Post
I'm still interested in what happens if you try and make a refit or refind boot cdrom or dvd (and booting that)
I bet this will work; refind will do the first bit and then search for kernels and could find the image in /boot. There is a lot of different info going about grub, refit (2012) and linux-booting from an apple computer (often from the perspective of double booting). Possibly worthwhile to read that, as it seems to change per model. Still difficult to estimate what is outdated or not. As OP said his macbook -not using OpenFirmware- is probably following an efi boot-procedure, as implemented by Apple. One seems to need to direct the apple bootloader to the booting image (be it grub or something else on the partition with linux) using an apple command (i.e. after booting the comp with a mac-disc), 'bless'. OP would best do a google on that and figure out what would fit best. Also read the refind stuff as it seems that all examples I came across have a separate /boot or /boot/efi partition (formatted as the reported refind demand showed), outwith the root partition; this would mean for the OP to repartion the drive (after backing up stuff that cannot be lost); this would also enable installation of refind on the computer itself (but whether that is sufficient to be found by the apple bootloader without the 'blessing' stuff I dare not say).
Some sources for this:
https://help.ubuntu.com/community/UE..._specific_info
https://wiki.archlinux.org/index.php...rch_Linux_only
https://bbs.archlinux.org/viewtopic.php?id=135043
https://wiki.archlinux.org/index.php/GRUB/EFI_examples

Grub2 seems more like a mini OS with all its possible configurations; worth to check whether some of these need changing for the macbook environment...

What I don't get is that it appears that OP's mac had been booting ok (without external bootdiscs) before the upgrade via slackpkg. What had been done to accomplish this? Was grub doing it; or lilo? Or was the slackpkg upgrade done directly on top of an install and was the computer never self-booting to begin with?

Last edited by brobr; 08-06-2018 at 05:43 AM.
 
Old 08-06-2018, 11:00 AM   #39
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,539

Rep: Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287
Quote:
Originally Posted by brobr View Post
What I don't get is that it appears that OP's mac had been booting ok (without external bootdiscs) before the upgrade via slackpkg. What had been done to accomplish this? Was grub doing it; or lilo? Or was the slackpkg upgrade done directly on top of an install and was the computer never self-booting to begin with?
My guess is that grub was being used and once the kernel was updated, it no longer referenced the correct kernel. While lilo is installed to the MBR boot code, I think grub is installed to the GPT boot code and it is what is being used to boot the system.
 
Old 08-06-2018, 11:15 AM   #40
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 538

Rep: Reputation: 143Reputation: 143
Quote:
Originally Posted by bassmadrigal View Post
My guess is that grub was being used and once the kernel was updated, it no longer referenced the correct kernel. ... I think grub is installed to the GPT boot code and it is what is being used to boot the system.
Yes, that could have been the scenario. I also had the idea that grub must have been put somewhere before, but then I started to wonder whether it only could be used when booting by means of the install-dvd without passing any parameters. Without this disc nothing happens, not even a presentation of the boot menu on option-key-down (OP please correct me if I am wrong here). And how got this grub called by the applebootloader? khronosschoty's proposal to try to bypass the DVD with a refind-stick would be an informative try in this respect.
 
Old 08-06-2018, 11:22 AM   #41
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,633

Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
My guess is that grub was being used and once the kernel was updated, it no longer referenced the correct kernel.
I don't think it was installed at least until I provided instructions to install it in post #35 as in post #22 the OP says:
Quote:
There is nothing in (/mnt)/boot/grub
and grub can't be installed without a (/mnt)/boot/grub/grub.cfg file. Furthermore the grub menu exhibited by the OP is the one displayed by the installer, not from an installed system.

I will quietly wait that the OP answers post #35 before going any further.

Last edited by Didier Spaier; 08-06-2018 at 11:24 AM.
 
Old 08-06-2018, 04:51 PM   #42
l0f4r0
Member
 
Registered: Jul 2018
Location: Paris
Distribution: MacOS, Slackware
Posts: 508

Original Poster
Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by Didier Spaier View Post
Wait a minute... Let's try first to install grub, as it was actually never installed. So in post #26, after the chroot, just run
Code:
grub-install /dev/sda
If that doesn't work, after having started the installer type:
Code:
lsblk -l -o name,size,type,fstype,parttype
Provide the output as well as the content of your /etc/fstab in the installed system. This will tell us if it's possible to install refind.
Ok. Below are the results:
Code:
# grub-install /dev/sda
/usr/sbin/grub-bios-setup: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
/usr/sbin/grub-bios-setup: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-bios-setup: error: will not proceed with blocklists.
Code:
# lsblk -l -o name,size,type,fstype,parttype
NAME   SIZE TYPE FSTYPE PARTTYPE
sda  465.8G disk        
sda1     4G part        
sda2 461.8G part        
sr0    2.6G rom
Code:
# cat /etc/fstab
/dev/sda1        swap             swap        defaults         0   0
/dev/sda2        /                ext4        defaults         1   1
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
Quote:
Originally Posted by brobr View Post
What I don't get is that it appears that OP's mac had been booting ok (without external bootdiscs) before the upgrade via slackpkg. What had been done to accomplish this? Was grub doing it; or lilo? Or was the slackpkg upgrade done directly on top of an install and was the computer never self-booting to begin with?
After 2nd thought, from memory, I think now that I couldn't boot on HDD just after the installation. I needed the install DVD as well.
I've modified the initial post consequently. Sorry.

Quote:
Originally Posted by bassmadrigal View Post
One additional thing I read is that you can select the startup device using the following instructions.
Code:
Use Startup Manager
When you use Startup Manager to select a startup disk, your Mac starts up from that disk once, then returns to using the disk selected in Startup Disk preferences.
Press and hold the Option key immediately after turning on or restarting your Mac.
Release the Option key when you see the Startup Manager window.
Select your startup disk, then click the arrow under its icon, or press Return.
SOURCE: https://support.apple.com/en-us/HT202796
Do you get anything special when you try that?
As stated at the end of #18, pressing alt/Option key at boot with the install DVD inserted is leading to a screen offering me to launch "Windows" (?? - it launches the DVD boot prompt) or "EFI boot" (it launches GRUB). Pressing the same key without the DVD inserted does nothing (grey screen).

Quote:
Originally Posted by brobr View Post
Without this disc nothing happens, not even a presentation of the boot menu on option-key-down (OP please correct me if I am wrong here).
You're correct! See just above for the answer regarding the alt/option key pressed during boot time. Otherwise, without this key pressed, it displays only a black folder with a question mark inside, all on a grey background.

Quote:
Originally Posted by khronosschoty View Post
I'm still interested in what happens if you try and make a refit or refind boot cdrom or dvd (and booting that)
Ok, am I supposed to follow the instructions below?
Code:
A CD-R image file—This download contains the same files as the binary zip file, but you can burn it to a CD-R to test rEFInd (and its filesystem drivers) without installing it first. (It boots on UEFI PCs, but fails on some older Macs.) If you like it, you can then copy the files from the CD-R to your hard disk. The files are named in such a way that the disc should boot on either 64-bit (x86-64) or 32-bit (x86) EFI computers. I've included an open source EFI shell program on this disc that's not included in the binary zip file, so that you can access an EFI shell from a bootable disc even if you don't have an EFI shell available from your regular hard disk. This can be an extremely valuable diagnostic tool if you know how to use an EFI shell.
Code:
A USB flash drive image file—Although you can create your own rEFInd USB flash drive, you may find it easier to download this version and copy it to your USB drive with dd or some other low-level disk copying utility.
Quote:
Originally Posted by Didier Spaier View Post
I will quietly wait that the OP answers post #35 before going any further.
I'm done, your turn! ahahah
 
Old 08-06-2018, 05:10 PM   #43
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 538

Rep: Reputation: 143Reputation: 143
Quote:
After 2nd thought, from memory, I think now that I couldn't boot on HDD just after the installation. I needed the install DVD as well.
Well, it seems time to do some reading if you want to get the boot going without install DVD (plenty of linked stuff provided above).

And a CDrom or USB key can both be used, although USB speeds have changed over time; does your 2008 model do USB2? You might have more success with the cdrom but try both if possible

EDIT: BTW your screen with black-folder with question mark inside indicates that your Mac can't find a bootable disk. Here is a mac-restore-howto link that describe this:
http://top-frog.com/2010/02/03/blink...anic-just-yet/

Last edited by brobr; 08-06-2018 at 05:31 PM.
 
1 members found this post helpful.
Old 08-06-2018, 06:00 PM   #44
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 370
Blog Entries: 2

Rep: Reputation: 169Reputation: 169
Yeah, I was going to bring up that the question mark indicates no bootable disk. Also macs are temperamental with the legacy mode, and requires the partition be formatted correctly. I found out through trial and error it likes a FAT32 'type b' (to use legacy mode). In my opinion the best way to prepare a hard drive to be used with a Mac is to use the OSX disk manager to partition the drive and to use bootcamp if plan for legacy mode. Then making any changes to the disk layout fdisk and converting partition types and formatting there. The most straight forward way seems to be using efi and having a correctly made efi partition; and while this can all indeed be done inside the Slackware installer, I think its better to have it done with the OSX disk utility.

A cdrom with refit is probably the easiest on that old hardware, and refind is likely a good choice too.

I also found alienBOB's 'Slackware Live Edition' works well too. I suggested trying it out before and just wanted to repeat that again.

Last edited by khronosschoty; 08-06-2018 at 06:02 PM.
 
Old 08-06-2018, 06:07 PM   #45
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,633

Rep: Reputation: Disabled
A was about to ask you to run again the lsblk command, this time directly from the installer (do not chroot) and post the output, as in your current output we are missing information about fstype and parttype, not provided when the command is run after a chroot.

Would the results confirm that you do have a an EFI System Partition (ESP) equipped with a FAT file system, refind should work.

Alas, /etc/fstab seems to indicate that you do not have an EFI partition. As refind needs one you will have to create it. For that, using gdisk or cgdisk, delete the swap partition and in the freed space create a partition of type EFI system, of size 100M and use the remaining space for your swap partition. Then put a FAT file system in the ESP (like mkfs.fat /dev/sda1), set up a Linux swap in /dev/sda2 (mkswap /dev/sda2 then swapon /dev/sda2). If the partitions names have changed, adapt the command accordingly. Then, create a directory /boot/efi and edit /etc/fstab to mount /dev/sda2 as /boot/efi.

If that looks too complicated, just reinstall after having created the EFI partition.

If all that fails, you will still be able to boot in EFI mode from an USB stick including an ESP with elilo, more on that later then.
 
1 members found this post helpful.
  


Reply

Tags
boot loader, lilo, macbook, slackware 14.2


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
Hard drive standby time impossible to set in hdparm BlackTornado Linux - Server 4 03-06-2013 08:23 AM
can you install Linux on an external hard drive on a Macbook? hedpe Linux - Newbie 1 07-28-2011 03:21 AM
Macbook - transfer hard drive to new desktop di5cord Linux - Hardware 9 06-08-2011 03:58 AM
External Hard Drive Won't Mount on Karmic, Macbook 2,1 vanessa1 Linux - Newbie 2 01-31-2010 03:53 PM
Running Ubuntu Live CD on a Macbook with a busted hard drive samsom Linux - Laptop and Netbook 2 06-07-2009 12:42 PM

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

All times are GMT -5. The time now is 12:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration