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.
|
 |
06-09-2023, 04:29 PM
|
#1
|
Member
Registered: Dec 2019
Location: Sweden
Posts: 312
Rep: 
|
Can't boot Slackware64_15.0
Hi!
I have just installed Slackware64-15.0 to an external multiboot HD with grub in Artix, in a Fujitsu Lifebook med Intel i7, in order to avoid sharing the internal hd med Windows, which I very seldom use, but anyway.
This kind of install was for a long time a difficult challenge which I have reported in https://www.linuxquestions.org/quest...sk-4175710196/.
The machine which is the object of this thread could not proceed with the installer from the original Slackware64-15.0 , freezing at the initial stage of choosing keyboard, as described in https://www.linuxquestions.org/quest...rd-4175725742/.
I was finally able to install from an usb stick with the Live Slak iso for Slackware64-15.0,
The installation went fine and easy without any problems. I skipped installing a bootloader, as I usually do in all my multiboots when I already have a bootloader (in this case I did install Grub from Slackware in a first install but it did not work and then I installed Artix in order to rely on its bootloader). Artix provided the following stanza for Slackware:
Quote:
menuentry 'Slackware 15.0 x86_64 (on /dev/sdb4)' --class slackware --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-48c62261-c47b-4441-92b9-2c4048581a20' {
savedefault
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 48c62261-c47b-4441-92b9-2c4048581a20
else
search --no-floppy --fs-uuid --set=root 48c62261-c47b-4441-92b9-2c4048581a20
fi
linux /boot/vmlinuz root=/dev/sdb4
initrd /boot/initrd.gz
}
|
When I boot from this stanza I get the message in the enclosed image file "Slack_medd_1.png" .
When I subsitute
Code:
root=UUID=48c62261-c47b-4441-92b9-2c4048581a20
for
I get the same result.
I have carefully done a total of 3 clean installs on the partition, keeping the content of other partitions, just to make sure and the situation replicates with precision.
I have also made an initrd for the generic kernel which I also try to boot with the stanza:
Quote:
menuentry 'Slackware 15.0 x86_64 (on /dev/sdb4)' --class slackware --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-48c62261-c47b-4441-92b9-2c4048581a20' {
savedefault
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 48c62261-c47b-4441-92b9-2c4048581a20
else
search --no-floppy --fs-uuid --set=root 48c62261-c47b-4441-92b9-2c4048581a20
fi
linux /boot/vmlinuz-generic-5.15.19 root=/dev/sdb4
initrd /boot/initrd-generic-5.15.19.gz
}
|
with the same error as for the huge kernel.
I made the initrd with the same formulation I finally succeeded in installing to external usb-disks (as in https://www.linuxquestions.org/quest...sk-4175710196/:
Code:
/sbin/mkinitrd -k 5.15.19 -m ext4:vfat:usbcore:usb-storage:uas:xhci-plat-hcd:xhci-pci:xhci-hcd:ehci-pci:ehci-hcd:ehci-platform:uhci-hcd:ohci-pci:ohci-hcd:ohci-platform:uhid:hid-generic:usbhid:stp:squashfs:sd-mod:scsi-mod:sg:ses:serio-raw:mrp:i2c-hid:llc:fujitsu-laptop:crc16:ccm -w 30 -f ext4 -r UUID=48c62261-c47b-4441-92b9-2c4048581a20 -u -o /boot/initrd-generic-5.15.19.gz
I notice:
1 - The Slackware partition is identified as "/dev/sdb4" by artix grub, and as "/dev/sdc4" by Live Slack.
2 - The error message mentions the impossibility of acccessing/finding /dev/sdc4, and that when booted from Grub in Artix:
Code:
/sbin/e2fsck: No such file or directory while trying to open /dev/sdc4
Possibly non-existent device?
3 - When I list the content of "/sbin" from the rescue shell provided by Grub upon the error message I see "e2fsck" in the list (as in enclosed file "e2fsck.png") which seems to me to indicate the problem was exactly that of accessing /dev/sdc4" and the problem with "e2fsck" is just a consequence of that. But I am not sure.
So here I am once more counting on your generosity and competence, which I have been grateful for many, many times.
|
|
|
06-10-2023, 01:42 AM
|
#2
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,565
|
Does this Lifebook have a media reader? If yes, Artix and Slack may be handling its device enumeration order differently. It's a not unusual problem in PCs with such readers added via USB reserving 4 device names whether media is present or not. If it has one, check in firmware for possible configuration options. Also check for a firmware upgrade.
Could it be the stanza's numerical device references are too limiting? I don't remember if I ever tried this, but you might give it a try: leave out all but one hint, keeping only UUID or LABEL.
Also investigate possible propriety of dracut cmdline parameters rd.hostonly=0 and rd.auto, which wouldn't likely help if this is a Grub problem rather than initrd.
|
|
1 members found this post helpful.
|
06-10-2023, 03:04 AM
|
#3
|
Member
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 362
Rep: 
|
At the bottom of both of your "menuentry" code posts is
Code:
linux /boot/vmlinuz root=/dev/sdb4
initrd /boot/initrd.gz
I'd try amending that to
Code:
linux=/dev/sdb4/boot/vmlinuz and
initrd=/dev/sdb4/boot/initrd.gz
Which by the way would be pointing to the wrong place if your booting elilo ..... but you didn't say whether your using lilo or elilo.
If your booting elilo , where you'd find vmlinuz is in the folder /boot/efi/EFI/Slackware/ (and the generic kernel).
Be careful that you're not using the same initrd.gz for both the huge and generic kernel.
Where you'll find the initrd.gz is where you're directing the the mkinitrd command to place it.
Finally install a boot loader. That way if /dev/sda dies you could boot /dev/sdb relatively easily.
Edit to add. Yes I know that in lilo boots the huge kernel doesn't need a initrd.gz file. But my elilo machine created a initrd.gz file and as part the in the elilo.conf for the huge kernel, and as it worked I didn't argue.
Last edited by quickbreakfast; 06-10-2023 at 03:12 AM.
|
|
1 members found this post helpful.
|
06-10-2023, 10:07 AM
|
#4
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,862
|
Grub counts drives from 0 partitions from 1, so if it is the first drive fourth partition it will be:
set root=(hd0,4)
or
linux (hd0,4)/boot/vmlinuz
initrd (hd0,4)/boot/initrd.gz
If you have nvme and sata the sata may be hd0 and the nvme hd1
Maybe changing linux line to
Code:
/boot/vmlinuz-generic-5.15.19 root=UUID=48c62261-c47b-4441-92b9-2c4048581a20
will work, if not I don't think it has to do with the grub entry.
what is in /etc/fstab?
Last edited by colorpurple21859; 06-10-2023 at 10:27 AM.
|
|
1 members found this post helpful.
|
06-10-2023, 11:30 AM
|
#5
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,862
|
On second thought, Booting a Slackware installed on an external usb,
The grub menu entry:
Code:
menuentry 'Slackware 15.0 x86_64 (on /dev/sdb4)' --class slackware --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-48c62261-c47b-4441-92b9-2c4048581a20' {
savedefault
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 48c62261-c47b-4441-92b9-2c4048581a20
else
search --no-floppy --fs-uuid --set=root 48c62261-c47b-4441-92b9-2c4048581a20
fi
linux /boot/vmlinuz-generic-5.15.19 root=UUID=48c62261-c47b-4441-92b9-2c4048581a20
initrd /boot/initrd-generic-5.15.19.gz
}
The fstab, use uuids
Code:
UUID=48c62261-c47b-4441-92b9-2c4048581a20 / ext4 defaults 1 1
UUID=<swap uuid> swap swap defaults 0 0
Last edited by colorpurple21859; 06-10-2023 at 11:57 AM.
|
|
1 members found this post helpful.
|
06-10-2023, 04:33 PM
|
#6
|
Member
Registered: Dec 2019
Location: Sweden
Posts: 312
Original Poster
Rep: 
|
I find this forum fantastic, so many nice answers so quickly,
THANK YOU ALL !
|
|
|
06-11-2023, 04:50 AM
|
#7
|
Member
Registered: Dec 2019
Location: Sweden
Posts: 312
Original Poster
Rep: 
|
I will be returning on your suggestions ASAP !
|
|
|
06-15-2023, 05:39 PM
|
#8
|
Member
Registered: Dec 2019
Location: Sweden
Posts: 312
Original Poster
Rep: 
|
Quote:
posted by @quickbreakfast
At the bottom of both of your "menuentry" code posts is
Code:
linux /boot/vmlinuz root=/dev/sdb4
initrd /boot/initrd.gz
I'd try amending that to
Code:
linux=/dev/sdb4/boot/vmlinuz and
initrd=/dev/sdb4/boot/initrd.gz
Which by the way would be pointing to the wrong place if your booting elilo ..... but you didn't say whether your using lilo or elilo.
|
Thank you @ quickbreakfast but it is Grub, under ARTIX that boots all other distros in the external disk. I use this same scheme in 3 other machines and it has worked well for many years.
|
|
|
06-15-2023, 05:44 PM
|
#9
|
Member
Registered: Dec 2019
Location: Sweden
Posts: 312
Original Poster
Rep: 
|
Quote:
posted by @mrmazda
Does this Lifebook have a media reader?
|
Not that I know @mrmazda, I am not 100% sure as I don't know anything about media readers, have never heard of it before, but I don't see anything I don't recognize.
|
|
|
06-15-2023, 06:42 PM
|
#10
|
Member
Registered: Dec 2019
Location: Sweden
Posts: 312
Original Poster
Rep: 
|
Quote:
posted by @colorpurple21859
On second thought, Booting a Slackware installed on an external usb,
The grub menu entry:
Code:
menuentry 'Slackware 15.0 x86_64 (on /dev/sdb4)' --class slackware --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-48c62261-c47b-4441-92b9-2c4048581a20' {
savedefault
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 48c62261-c47b-4441-92b9-2c4048581a20
else
search --no-floppy --fs-uuid --set=root 48c62261-c47b-4441-92b9-2c4048581a20
fi
linux /boot/vmlinuz-generic-5.15.19 root=UUID=48c62261-c47b-4441-92b9-2c4048581a20
initrd /boot/initrd-generic-5.15.19.gz
}
The fstab, use uuids
Code:
UUID=48c62261-c47b-4441-92b9-2c4048581a20 / ext4 defaults 1 1
UUID=<swap uuid> swap swap defaults 0 0
|
THANK YOU @ colorpurple21859 ! ! !
This had been a troubling one. Masterful second thought there.
All it needed was the change in the fstab, as I had already changed -without success -the root parameter in grub to uuid.
Let me point out to other newbies like me that may come across this that when I installed -from an usb stick:
1) sda was the internal (windows) disk, not at all involved with either installation or booting of the OSes in the external disk.
2) sdb was the installer-usb
3) sdc was the target external disk
The installer then registered the Slackware partition in the external disk as /dev/sdc4 in fstab.
When booting from the external disk in the absence of any usb stick the external disk becomes sdb and I think that this led to a conflict with fstab.
So this is solved and I will open a new thread about not being able to install from the stable iso.
Thanks again to all that took time to help.
Last edited by fredmyra; 06-15-2023 at 07:24 PM.
Reason: corrupted text
|
|
|
06-15-2023, 08:57 PM
|
#11
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,565
|
Quote:
Originally Posted by fredmyra
I don't know anything about media readers, have never heard of it before, but I don't see anything I don't recognize.
|
Media card readers are for generic USB flash memory form factors mainly other than USB-A, such as CompactFlash, MMC, SD, and MicroSD among more than 20 other types. Readers generally have up to about four different slots to fit the various common form factors, often in addition to one or more USB-A slots. Laptops and notebooks that have any at all may have as few as just one.
|
|
1 members found this post helpful.
|
06-17-2023, 03:44 PM
|
#12
|
Member
Registered: Dec 2019
Location: Sweden
Posts: 312
Original Poster
Rep: 
|
@mrmazda>
My laptop has 3 ports for USB, can it be a case of an internal media reader?
|
|
|
06-17-2023, 10:37 PM
|
#13
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,565
|
If they are all type A then not very likely. Attached media readers usually cause reservation of 4 USB-type sdxy devices even when no memory devices are attached. Empty type A USB ports have no reason to do that. If you had only 2 type A and one for SD and/or CompactFlash then it might be reserving at least one for such media.
|
|
|
All times are GMT -5. The time now is 08:07 AM.
|
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
|
|