LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 10-18-2020, 07:17 AM   #1
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Rep: Reputation: Disabled
Alpine-linux netboot - no block devices found


I posted a while ago about setting up a PXE-boot-enviroment for an old laptop. Unfortunately i am still stuck whith the Alpinelinux-Netboot-Files from Alpinelinux.org and the following configuration:

tftproot/pxelinux.cfg/default:
Code:
PROMPT 0
TIMEOUT 10
default alpine
LABEL alpine
    LINUX image/vmlinuz-lts
    INITRD image/initramfs-lts
    APPEND ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/edge/main modloop=my.server.ip.here://image/initramfs-lts
So kernel and initramfs from the alpine-netboot-package are in tftproot/image/ and i chose the rolling repo for alpine. I am not sure about the modloop-parameter but otherwise i successfully booted into alpine-linux and the basic setup. The only thing that's problematic after boot: i have no block devices in /dev nor in /sys/class/block except ram0-9. So there is no way to install alpinelinux to any of the laptops hard drives.

I have tested the harddrive on another machine and it worked. I have tested with slackware-pxe-setup as in here with no problems finding the partitions of the laptops HD after netboot.

My simple questions are: am i overseeing something basic about alpine linux?
Are there any known issues with harddrives?
Is my setup faulty or missing something essential?
TIA

Last edited by platypo; 10-18-2020 at 07:22 AM.
 
Old 10-18-2020, 09:42 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
I think your answer lies in Alpine linux. Does the kernel show any hardware detected?
 
Old 10-19-2020, 02:16 AM   #3
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
I think your answer lies in Alpine linux. Does the kernel show any hardware detected?
Looking through dmesg and messages didn't show anything harddrive-related after boot. It's almost like this verstion was intended as live-system/workstation but scince i haven't found any indications for that in the docs i'm asking here.

It's unfortunate because otherwise alpine seems perfect for an old machine like this.

Edit: i think i just found the answer here

Last edited by platypo; 10-19-2020 at 02:24 AM.
 
Old 10-19-2020, 05:12 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
It looks to me quite like Tails, which runs from a live dvd but is more secure on a usb key.
The idea is that you can run on a box and leave no trace. I am told Parrot OS is a more normal compromise - a secure OS more like normal ones.
 
Old 10-19-2020, 06:33 AM   #5
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
It looks to me quite like Tails, which runs from a live dvd but is more secure on a usb key.
The idea is that you can run on a box and leave no trace. I am told Parrot OS is a more normal compromise - a secure OS more like normal ones.
Alpine is not like tails afaik. Getting smarter by the hour i now understand that it only runs with initrd in the current setup while another, extended ramdisk (modloop) is required. Every pxe-toturial i find loads that from a seperate http server and i try to figure out if it's possible to boot everything from the tftp-server. Pxelinux uses wget but also supports ftp somehow so maybe it works. I hope i understood these things halfway right.
Another thing yet to find out for me is what an nfs server is and why/if i need that in my setup.

Last edited by platypo; 10-19-2020 at 08:58 AM.
 
Old 10-19-2020, 11:42 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
AFAIK, PXE uses tftp, not regular ftp. It goes like this:
  1. 'Network Boot' in Bios asks: "Is there anything out there?"
  2. Tftp Server on remote system says: "Yeah, I'm here." Nic gets an IP courtesy of some dhcp extensions.
  3. Bios asks: "Could I have a kernel pls?"
  4. Remote server supplies one, which is duly run, and resources are found.
  5. Bios asks: "Have you an OS for me, pls?"
  6. Remote Server supplies one, all over tftp. Bios installs it.

That's the basic idea, and the install should end in a reboot, so your system comes up, with it's default install. If some place buys 1000 pcs, it saves loads of labour.

I suggest you read up on Alpine. You apparently got a special purpose OS and just installed it.
 
Old 10-19-2020, 12:49 PM   #7
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
AFAIK, PXE uses tftp, not regular ftp. It goes like this:
  1. 'Network Boot' in Bios asks: "Is there anything out there?"
  2. Tftp Server on remote system says: "Yeah, I'm here." Nic gets an IP courtesy of some dhcp extensions.
  3. Bios asks: "Could I have a kernel pls?"
  4. Remote server supplies one, which is duly run, and resources are found.
  5. Bios asks: "Have you an OS for me, pls?"
  6. Remote Server supplies one, all over tftp. Bios installs it.

That's the basic idea, and the install should end in a reboot, so your system comes up, with it's default install. If some place buys 1000 pcs, it saves loads of labour.

I suggest you read up on Alpine. You apparently got a special purpose OS and just installed it.
Thanks for the brief overview allthough i thought the bios asks for a bootloader wich is replaced through pxelinux over the nic. Nevertheless, understanding that pxe booting is initially intended for live-system-like workstations in a big network brings some clarity here.
But i still think it's possible to configure it as an install medium to rescue a single machine somehow.

Last edited by platypo; 10-19-2020 at 01:02 PM.
 
Old 10-20-2020, 05:59 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
PXE is designed for systems with nothing on the drive(s), so the Nic & BIOS do the heavy lifting initially. I didn't think it needs a bootloader because there's nothing to load. It does need an install-able distro from the server.
 
Old 10-20-2020, 07:48 AM   #9
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
PXE is designed for systems with nothing on the drive(s), so the Nic & BIOS do the heavy lifting initially. I didn't think it needs a bootloader because there's nothing to load. It does need an install-able distro from the server.
Pls don't confuse me any further, i meant that a system like pxelinux loads a file called pxelinux.0 wich is configured similar to a bootloader.

So you say it _does_ use installable media as live-media in the same way (referring to my last post)?

Meanwhile i tried booting kernel and initrd from the alpinelinux standard installation image (instead of netboot) wich resulted in a kernelpanic. From that i deduct that you were right when you said that i used a version not suitable as an installation medium. This would give an answer to this thread but leaves me with my initial problem not being able to configure pxelinux in order to install a linux distribution over the network.

Soon i won't have time on the hand to focus on these things so if anybody has a hint or can point out what i'm doing wrong i'd be very glad.

Last edited by platypo; 10-20-2020 at 07:50 AM.
 
Old 10-20-2020, 10:36 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
PXE came up in a job interview. Guys were disabled (Primarily slightly mentally retarded), and I was to be the techie type. They were formatting old pcs & installing the latest windows on them. They had one Server loading everything via the network.
 
Old 10-21-2020, 01:39 PM   #11
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
PXE came up in a job interview. Guys were disabled (Primarily slightly mentally retarded), and I was to be the techie type. They were formatting old pcs & installing the latest windows on them. They had one Server loading everything via the network.
Good story but i don't quite catch the moral of it. I'm far from discriminating mentally retarded people or doubting anyones skills here. I just need to find out what i'm doing wrong or acquire some general knowledge about the process.

I think i am on the right tracks but the boot is missing something basic - terms like squashfs, modloop and nfs-server float around in my head but i can't wrap my mind around it yet.
 
Old 10-22-2020, 11:45 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Squashfs = a compressed filesystem that is small, but when it's mounted it's bigger. Used on usb disks, for one
Modloop Dunno; the 'loop' might give you an idea
NFS = some system of mounting remote drives on your box over your network.
 
Old 10-23-2020, 04:56 AM   #13
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Squashfs = a compressed filesystem that is small, but when it's mounted it's bigger. Used on usb disks, for one
Modloop Dunno; the 'loop' might give you an idea
NFS = some system of mounting remote drives on your box over your network.
Thanks, like said i am glad for every hint.
Meanwhile i got the time to troubleshoot a little bit further. The system boots into an emergency shell with the statements:

Code:
grep: /sys/class/net/eth*/operstate: No such file or directory
ERROR: IP requested but no network device was found
 * Installing packages to root filesystem: WARNING: Ignoring APKINDEX.066df28d.tar.gz: No such file or directory
OK: 0MiB in 0 packages
ok.
grep: /sysroot/etc/inittab: No such file or directory
/sbin/init not found in new root. Launching emergency recovery shell
Type exit to continue to boot.
sh: can't access tty; job control turned off
/#
So i'm stranded in a recovery-shell with basically no clue what to do here (I can't find any network devices except lo, however /dev/sda exists here - i just don't want to mark this thread as solved yet)
When i exit, the boot ends in the said kernelpanic.

Last edited by platypo; 10-23-2020 at 05:00 AM.
 
Old 10-23-2020, 11:55 AM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
I would strongly suggest you install a linux distribution - any one except Alpine. Your messages look like a failed network boot but you choose network boot in the BIOS, not by turniung it on.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
CUPS (ALPINE) - CUPS claiming print job completed despite printing nothing, How to debug the issue? (network printer, Alpine, Linux, Docker) vinnu543 Linux - Newbie 2 11-01-2018 03:18 PM
CUPS (ALPINE) - CUPS claiming print job completed despite printing nothing, How to debug the issue? (network printer, Alpine, Linux, Docker) vinnu543 Linux - Networking 1 11-01-2018 03:13 AM
How do I map ATA devices to /dev/sd* block devices when using a port multiplier? Mahonri Linux - Hardware 0 02-19-2014 11:44 PM
what is the different btw raw devices and block devices yenonn Linux - General 2 02-10-2006 09:34 PM

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

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