LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 08-18-2021, 02:42 PM   #1
ssslackw
Member
 
Registered: Aug 2005
Posts: 61

Rep: Reputation: 2
Cool Slackware 15.0 RC1 Laptop Installation


Hi,
I have a question about the laptop installation.
To make the long story short:
1. I have two laptops which have Centos 7 in it.
2. I tried to install the slacker into both. I wiped all the current centos partitions with fdisk and created new ones for the slacker. There is no Windows partition in both.
3. Here is the problem: I could not make / partition bootable with fdisk "a" command.
4. The OS was installed but can not boot from the harddrive


Any help will be greatly appreciated

Best
 
Old 08-18-2021, 02:53 PM   #2
kermitdafrog8
Member
 
Registered: Dec 2018
Location: Orlando, FL
Distribution: Slackware AARCH64 and X86_64
Posts: 375

Rep: Reputation: Disabled
Slackware 15.0 RC1 Laptop Installation

Are you using lilo/elilo or grub?
 
Old 08-18-2021, 02:56 PM   #3
ssslackw
Member
 
Registered: Aug 2005
Posts: 61

Original Poster
Rep: Reputation: 2
Hi,
Thanks for the reply
I used lilo.

Thanks
 
Old 08-18-2021, 03:11 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,844

Rep: Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683
How old is the laptop?
 
Old 08-18-2021, 03:12 PM   #5
ssslackw
Member
 
Registered: Aug 2005
Posts: 61

Original Poster
Rep: Reputation: 2
Hi,
Thanks for the reply.
~10 YEARS
 
Old 08-18-2021, 03:22 PM   #6
ssslackw
Member
 
Registered: Aug 2005
Posts: 61

Original Poster
Rep: Reputation: 2
Hi,
In cfdisk, they have more partition types than they used to be.
 
Old 08-18-2021, 04:43 PM   #7
ssslackw
Member
 
Registered: Aug 2005
Posts: 61

Original Poster
Rep: Reputation: 2
I think I have figured out the problem.
It has to do with "gpt" partition. I will try if using cgdisk would solve the problem.

Best
 
Old 08-18-2021, 04:44 PM   #8
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 362

Rep: Reputation: Disabled
Quote:
Originally Posted by ssslackw View Post
4. The OS was installed but can not boot from the harddrive
A while ago i had the same problem and eventually found that slackware was installing onto a partition which was formatted for windows.

So check the partition's formatting.

If it is wrong, make sure you format the partition.

Quote:
3. Here is the problem: I could not make / partition bootable with fdisk "a" command.
With a quick loot at the man page for fdisk I could not find a "a" command/switch. Nor could google tell me what the "a" command does.

Edit to add. Where is the process of booting does the laptop stop?

Last edited by quickbreakfast; 08-18-2021 at 05:02 PM.
 
Old 08-18-2021, 07:04 PM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,844

Rep: Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683
Quote:
Here is the problem: I could not make / partition bootable with fdisk "a" command.
If your getting "unknown command" The drive is probably gpt instead of msdos/mbr.

With the laptop being 10 years old there is a good chance it is not uefi enabled, and needs a mdos/mbr type disk label instead of gpt.
Quote:
It has to do with "gpt" partition. I will try if using cgdisk would solve the problem.
If is gpt disk label, to keep from doing a complete re-install try this and see if this works
Code:
parted /dev/sda disk_set pmbr_boot on
change accordingly if drive isn't sda

If that doesn't work the other option is to use gdisk recovery option g to convert drive from gpt to mbr.

Last edited by colorpurple21859; 08-18-2021 at 08:15 PM.
 
Old 08-18-2021, 11:52 PM   #10
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,387

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
Quote:
Originally Posted by colorpurple21859 View Post
With the laptop being 10 years old there is a good chance it is not uefi enabled, and needs a mdos/mbr type disk label instead of gpt.
Now I am very shaky grounds knowledge-wise here but can't you use gpt on a non-uefi enabled system? I really am not sure so rather than challenging your statement I am actually after some clarity in my own mind .
 
Old 08-19-2021, 05:04 AM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,844

Rep: Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683
Yes, but some older systems require a boot flag to be set. The code in post 9 sets a boot flag in the protective mbr. The hybrid option in gdisk does something similar. On some uefi systems setting a boot flag on the pmbr will prevent the system from booting in uefi mode.

On a side note a 1mb partition flagged bios-grub is needed if grub is the boot loader. The partition isn’t needed with lilo

Last edited by colorpurple21859; 08-19-2021 at 05:24 AM.
 
Old 08-19-2021, 05:27 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,299
Blog Entries: 21

Rep: Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800
Quote:
Originally Posted by andrew.46 View Post
Now I am very shaky grounds knowledge-wise here but can't you use gpt on a non-uefi enabled system? I really am not sure so rather than challenging your statement I am actually after some clarity in my own mind .
Yes, you can. A gpt disk has a "protective" mbr and LILO can go into that as usual. If you are using GRUB, it's a bit more complicated. The first stage of GRUB goes into the protective mbr but you need to have a "BIOS boot partition" as partition 1 to store the second stage. On an mbr disk, that fits into the gap between the mbr and the first partition, but gpt disks don't have that gap.
 
1 members found this post helpful.
Old 08-19-2021, 11:10 AM   #13
ssslackw
Member
 
Registered: Aug 2005
Posts: 61

Original Poster
Rep: Reputation: 2
Hi,
Thank you so much for all the replies.
It has been a very long while since I have installed Slackware. Anyway going back to my problem.
1. I have my laptop booted from UEFI only and CSM enabled in the BIOS settings
2. I used gdisk to partition my harddisk gpt table;
\dev\sda1 \BIOS Partition
\dev\sda2 \EFI Partition System
\dev\sda3 \Linux 64 root
\dev\sda4 \Linux home
\dev\sda5 Swap


3. Went to setup, and I got a complaint about
"Linux partition is not detected"

Any clue on what is going on.

Thanks
 
Old 08-19-2021, 11:17 AM   #14
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
I am following this thread closely. My laptop has "experimental" uefi boot and I have not been successful implementing it.

My sig has my laptop details
 
Old 08-19-2021, 11:28 AM   #15
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,299
Blog Entries: 21

Rep: Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800
If you use lilo for legacy boot, you will need elilo for native. Do you have it installed?
 
  


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
LXer: Qt 5.2 RC1 Released Along Side Qt Creator 3.0 RC1 LXer Syndicated Linux News 0 11-29-2013 11:11 AM
Linux Mandrake 10 RC1 -- Forget it on Laptop 1kyle Mandriva 5 03-25-2004 06:29 PM

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

All times are GMT -5. The time now is 04:32 PM.

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