Slackware - Installation This forum is for the discussion of installation issues with Slackware. |
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.
|
 |
|
08-18-2021, 02:42 PM
|
#1
|
Member
Registered: Aug 2005
Posts: 61
Rep:
|
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
|
|
|
08-18-2021, 02:53 PM
|
#2
|
Member
Registered: Dec 2018
Location: Orlando, FL
Distribution: Slackware AARCH64 and X86_64
Posts: 375
Rep: 
|
Slackware 15.0 RC1 Laptop Installation
Are you using lilo/elilo or grub?
|
|
|
08-18-2021, 02:56 PM
|
#3
|
Member
Registered: Aug 2005
Posts: 61
Original Poster
Rep:
|
Hi,
Thanks for the reply
I used lilo.
Thanks
|
|
|
08-18-2021, 03:11 PM
|
#4
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,844
|
How old is the laptop?
|
|
|
08-18-2021, 03:12 PM
|
#5
|
Member
Registered: Aug 2005
Posts: 61
Original Poster
Rep:
|
Hi,
Thanks for the reply.
~10 YEARS
|
|
|
08-18-2021, 03:22 PM
|
#6
|
Member
Registered: Aug 2005
Posts: 61
Original Poster
Rep:
|
Hi,
In cfdisk, they have more partition types than they used to be.
|
|
|
08-18-2021, 04:43 PM
|
#7
|
Member
Registered: Aug 2005
Posts: 61
Original Poster
Rep:
|
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
|
|
|
08-18-2021, 04:44 PM
|
#8
|
Member
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 362
Rep: 
|
Quote:
Originally Posted by ssslackw
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.
|
|
|
08-18-2021, 07:04 PM
|
#9
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,844
|
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.
|
|
|
08-18-2021, 11:52 PM
|
#10
|
Senior Member
Registered: Oct 2007
Distribution: Slackware
Posts: 1,387
|
Quote:
Originally Posted by colorpurple21859
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  .
|
|
|
08-19-2021, 05:04 AM
|
#11
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,844
|
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.
|
|
|
08-19-2021, 05:27 AM
|
#12
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,299
|
Quote:
Originally Posted by andrew.46
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.
|
08-19-2021, 11:10 AM
|
#13
|
Member
Registered: Aug 2005
Posts: 61
Original Poster
Rep:
|
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
|
|
|
08-19-2021, 11:17 AM
|
#14
|
Member
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871
|
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
|
|
|
08-19-2021, 11:28 AM
|
#15
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,299
|
If you use lilo for legacy boot, you will need elilo for native. Do you have it installed?
|
|
|
All times are GMT -5. The time now is 04:32 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
|
|