Re: which references (books, web pages, faqs, videos, ...) would you recommend to someone learning about the Linux boot process as thoroughly as possible?

2022-04-03 Thread Thomas Schmitt
Hi,

sonbird wrote:
>   i was just going to suggest that he clone your brain.  :)

If brain cloning is a viable option then i propose those of
Vladimir Serbinenko and Daniel Kiper because of their experience as
maintainers of GRUB.


Have a nice day :)

Thomas



Re: which references (books, web pages, faqs, videos, ...) would you recommend to someone learning about the Linux boot process as thoroughly as possible?

2022-04-03 Thread Albretch Mueller
> I think that at least in the past it was possible to boot Debian Live systems 
> with `toram` option, too. You should probably just try it out?

 Well, it seems DL has its own "toram", "fromhd", "bootfrom", ... but
not as parameters to be entered right in the first splash screen while
it boots up as knoppix does

 I went google: "debian live toram" looking for something like:

 http://knoppix.net/wiki3/index.php?title=Cheat_Codes

 and just found single one page with 77 hits. I tried: "append
boot=live", but it didn't work.

>live-boot *does* have these options. I've not used those in a while.
>'man 7 live-boot' mentions 'toram' and 'fromiso/findiso'.

>> I will need to log the boot process to study it.

>Perhaps you need 'debug', 'nosplash', and similar boot options. You might not 
>need to use a serial device. Also for your convenience, run the live image in 
>e.g. kvm, which simulates a serial device.

>See also the latest version of live-manual:
>https://live-team.pages.debian.net/live-manual/html/live-manual/index.en.html

 and, especifically, on chapter:

 
https://live-team.pages.debian.net/live-manual/html/live-manual/overview-of-tools.en.html

 you find the explanation about how to parametrize the live start up
process with lb config, not exactly the start up one liner approach I
was very hopefully looking for

 I used and loved knoppix before there was DL. "Political" and
cultural aspects are interesting when it comes to technology. Here are
the google hits you get when searching for:

 knoppix toram: 2580
 knoppix bootfrom: 295,000

 I like that "bootfrom" iso thing so much, because for more than one
good reason I don't like the idea of carrying two laptops around. Even
though the "fast start" on Windows would not let you mount its hard
drives rw:

$ sudo lsblk
NAMEMAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0 7:00   2.1G  1 loop
/usr/lib/live/mount/rootfs/filesystem.squashfs
sr0  11:01   2.4G  0 rom  /usr/lib/live/mount/medium
nvme0n1 259:00 238.5G  0 disk
├─nvme0n1p1 259:10   260M  0 part
├─nvme0n1p2 259:2016M  0 part
├─nvme0n1p3 259:30 237.7G  0 part
└─nvme0n1p4 259:40   526M  0 part

$ sudo blkid | grep ntfs
/dev/nvme0n1p3: BLOCK_SIZE="512" UUID="0880083680082CAE" TYPE="ntfs"
PARTLABEL="Basic data partition"
PARTUUID="a49b734e-47e3-40e5-a8d6-c31b764078ef"
/dev/nvme0n1p4: LABEL="Windows RE tools" BLOCK_SIZE="512"
UUID="00BC32C0BC32B050" TYPE="ntfs" PARTLABEL="Basic data partition"
PARTUUID="8cd3ccd8-fa9e-425f-955d-044324ab52d7"

$ sudo mkdir /media/nvme0n1p3

$ sudo mount --verbose --types ntfs /dev/nvme0n1p3 /media/nvme0n1p3
Windows is hibernated, refused to mount.
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)
Could not mount read-write, trying read-only

$ sudo umount --verbose  /media/nvme0n1p3
umount: /media/nvme0n1p3 unmounted
$

 There is a way to bypass those kinds of problems when the drive is
hybernated but not while it is "fast start(ed)"

 I would like to place a DL iso in the Windows drive access it ro (in
a sense it is better so) and then let the DL DVD know what I need at
start up. I used to do exactly this with knoppix just fine, but DL
boots on quite literally anything and for some reason I would like to
investigate knoppix doesn't.

 lbrtchx



Re: which references (books, web pages, faqs, videos, ...) would you recommend to someone learning about the Linux boot process as thoroughly as possible?

2022-04-02 Thread songbird
Thomas Schmitt wrote:
...
> If i wanted to expand my knowledge towards x86-related firmware,
> bootloaders, and the Linux kernel i would probably begin at
>   https://en.wikipedia.org/wiki/BIOS
>   https://uefi.org/specifications
>   https://git.savannah.gnu.org/cgit/grub.git/tree/
>   https://www.kernel.org/doc/html/latest/x86/
> depending on the direction of my expansion. (I wouldn't get far, i guess.)
>
>
> Have a nice day :)

  i was just going to suggest that he clone your brain.  :)


  songbird



Re: which references (books, web pages, faqs, videos, ...) would you recommend to someone learning about the Linux boot process as thoroughly as possible?

2022-04-02 Thread Thomas Schmitt
Hi,

Albretch Mueller wrote:
> imagine you had to code a new bootloader now (as an exercise) in
> hindsight which books would you have picked?

I only know about the small bridges between computer firmware and the
first custom program to be started, which usually is a bootloader.
  
https://dev.lovelyhq.com/libburnia/libisofs/raw/branch/master/doc/boot_sectors.txt

If i wanted to expand my knowledge towards x86-related firmware,
bootloaders, and the Linux kernel i would probably begin at
  https://en.wikipedia.org/wiki/BIOS
  https://uefi.org/specifications
  https://git.savannah.gnu.org/cgit/grub.git/tree/
  https://www.kernel.org/doc/html/latest/x86/
depending on the direction of my expansion. (I wouldn't get far, i guess.)


Have a nice day :)

Thomas



Re: which references (books, web pages, faqs, videos, ...) would you recommend to someone learning about the Linux boot process as thoroughly as possible?

2022-04-02 Thread Linux-Fan

Albretch Mueller writes:


imagine you had to code a new bootloader now (as an exercise) in
hindsight which books would you have picked?


I do not know of any books about bootloaders, but having a look at multiple  
different bootloaders (documentation and possibly source code) should be a  
good way to start? I think GRUB, SYSLINUX, u-boot will cover for a wide  
variety of boot scenarios?



I am OK with Math and technology of any kind and I am more of a Debian
kind of guy. In fact, I am amazed at how Debian Live would pretty much
boot any piece of sh!t you would feed to it, but, just to mention one
case, knoppix would not. But then knoppix, has such super nice boot-up
options as: toram (right as a parameter as you boot, no tinkering with
any other thing!), fromhd and bootfrom (you can use to put an iso in a


I think that at least in the past it was possible to boot Debian Live  
systems with `toram` option, too. You should probably just try it out? In  
case the menu does not offer it, consider tinkering with the respective  
syslinux/isolinux configuration and adding a menu entry with `toram` set?



partition of a pen drive, or even stash it in your own work computer,
in order to liberate your DVD player after booting), ..., which DL
doesn’t have.


I think GRUB2 supports this feature, but am not sure if it will work  
correctly in all of the cases.


For my own tinkering I mostly prefer SYSLINUX. It can boot just about any  
live linux and you can also add `memdisk` images to add DOS and other small  
systems.


[...]


I have been always intrigued about such matters and such differences,
between what I see as supposedly being standardized, like a boot
process.


Compare the boot process between amd64 and armhf to find out that there are  
quite the differences :)


HTH
Linux-Fan

öö


pgpVSDkpKfsYh.pgp
Description: PGP signature


which references (books, web pages, faqs, videos, ...) would you recommend to someone learning about the Linux boot process as thoroughly as possible?

2022-04-02 Thread Albretch Mueller
imagine you had to code a new bootloader now (as an exercise) in
hindsight which books would you have picked?

I am OK with Math and technology of any kind and I am more of a Debian
kind of guy. In fact, I am amazed at how Debian Live would pretty much
boot any piece of sh!t you would feed to it, but, just to mention one
case, knoppix would not. But then knoppix, has such super nice boot-up
options as: toram (right as a parameter as you boot, no tinkering with
any other thing!), fromhd and bootfrom (you can use to put an iso in a
partition of a pen drive, or even stash it in your own work computer,
in order to liberate your DVD player after booting), ..., which DL
doesn’t have.

I know some RS232/USB converters are not reliable. Which ones do you
use? As far as I know laptops don’t come with RS232 anymore. I will
need to log the boot process to study it.

I have been always intrigued about such matters and such differences,
between what I see as supposedly being standardized, like a boot
process.

lbrtchx