LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 01-01-2024, 12:20 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333
Repair booting AntiX-23


I installed Antix as a spare OS on my elderly laptop. No backup exists, because I expected to format this, install some despicable OS and give it to some deserving soul who needed it, but was incapable of learning linux. I know a few of those. But that hasn't happened.

To make a long story short, I'm on MBR & lilo here with Slackware. AntiX has sda6, and shares sda1 (/boot) with Slackware. sda1 was hosed, which makes it hard to boot AntiX. I have the AntiX-23_x64.iso here.

So I found a likely looking kernel & initrd on the iso, put them in lilo, and tried booting. It halted for the lack of linuxfs

I can see linuxfs there, but it's 1.6 GB and very big for a ramdisk unless it's for the install procedure. AntiX is installed - I just want my kernel & initrd back.
 
Old 01-01-2024, 12:26 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,363

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
post the contents of sda1, and
Code:
sudo parted -l

Last edited by colorpurple21859; 01-01-2024 at 12:27 PM.
 
Old 01-01-2024, 01:48 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Original Poster
Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333
Code:
bash-5.2$ sudo parted -l /dev/sda
Model: ATA KINGSTON SV300S3 (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  525MB   524MB   primary   ext4            boot
 2      525MB   5894MB  5369MB  primary   linux-swap(v1)  swap
 3      5894MB  48.8GB  42.9GB  primary   ext4
 4      48.8GB  240GB   191GB   extended
 5      48.8GB  103GB   53.7GB  logical   ext4
 6      103GB   129GB   26.8GB  logical   ext4
 7      129GB   240GB   111GB   logical   ext4

bash-5.2$ ls /boot   
README.initrd@            boot_message.txt          elilo-ia32.efi*    initrd1.gz   onlyblue.bmp  vmlinuz@               vmlinuz1
System.map@               config@                   elilo-x86_64.efi*  inside.bmp   onlyblue.dat  vmlinuz-generic@
System.map-generic-6.6.8  config-generic-6.6.8.x64  grub/              inside.dat   slack.bmp     vmlinuz-generic-6.6.8
System.map-huge-6.6.8     config-huge-6.6.8.x64     initrd-tree/       lost+found/  tuxlogo.bmp   vmlinuz-huge@
boot.0800                 efi/                      initrd.gz          map          tuxlogo.dat   vmlinuz-huge-6.6.8
bash-5.2$
/boot is all slackware, except initrd1.gz and vmlinuz1, just to avoid name confusion with slackware. Taken from the iso antiX/ directory, antiX/vmlinuz (the bigger one) is now /boot/vmlinuz1. I tried them both.
 
Old 01-01-2024, 03:03 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
So I found a likely looking kernel & initrd on the iso, put them in lilo, and tried booting. It halted for the lack of linuxfs
I don't see how that could work as I don't believe lilo is capable of booting an iso file directly. Are you wanting to boot the AntiX iso or are you trying some way to rescue the install on sda6? If you want to use the AntiX iso, extract (loop mount) the AntiX iso to a directory and copy the entire contents of the directory to sda6 (overwriting everything there) or to another empty partition slightly larger than the iso file. The entry below will boot AntiX (the extracted iso) from sda6 using Grub2. Since you are familiar with lilo, I expect you should be able to convert it to boot from Lilo.

Quote:
menuentry "ANtiX" {
set root='hd0,6'
linux /antiX/vmlinuz quiet splash --
initrd /antiX/initrd.gz
}
The 'linuxfs' file is the compressed filesystem for AntiX and is used when booting the live system.

Last edited by yancek; 01-02-2024 at 06:05 AM.
 
Old 01-01-2024, 04:02 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,363

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Does Slackware boot? Did you use grub at one time as the bootloader and if so why did you switch to lilo?
Post the contents of /etc/elilo.conf
What is in the boot directory on sda6?
What is in /etc/fstab on sda6?

Last edited by colorpurple21859; 01-01-2024 at 04:21 PM.
 
Old 01-02-2024, 01:43 PM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Original Poster
Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333
SORTED!

I must confess to misleading the AntiX installer, because I want the main system to have mastery of the boot loader, and each distro thinks they are in charge. Not only that, but each distro don't know about the other ones. So there's mayhem regularly on updates. AntiX wasn't told about the /boot partition, so I had a /boot directory in AntiX's root drive with everything there. So I just copied over to sda1 again, and everything works.

Sorry for not getting my brains in gear a little earlier on this. The tricky bit was that lilo.conf is new, because grub got wiped out as well.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Conky display gets corrupted since updating Antix-16 to Antix-17 hazel Linux - Distributions 3 12-18-2017 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 02:45 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