From the course: Advanced Linux: The Linux Kernel

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Solution: GRUB, command line parameters, boot sequence

Solution: GRUB, command line parameters, boot sequence - Linux Tutorial

From the course: Advanced Linux: The Linux Kernel

Solution: GRUB, command line parameters, boot sequence

(bouncy intro music) - [Instructor] So, I've interrupted GRUB. I'm in the menu here. Let's do an e for edit. Let's look for kernel line. Here we go, here's the first kernel line. Let's say CMD ARG, TRY ONE init = bin/bash. And then let's look for another one. Got another one here. Let's go CMD ARG TRY TWO init = bin/bash and let's try to boot that. Alright, looks like it booted and I got a shell prompt here. I don't have to log in. How many things have we got in /bin? 1400. It's got a lot. Got any block devices? Yeah, it sees three discs, processes, yeah, there's a lot of kernel threads, all these kworkers. And all these /3 things are also kernel stuff. In fact, this is pretty much all kernel stuff except for the ps and the grip. If we do pstree, do we have that command? There's like no processes, right? All we have is the shell, but we have our discs. And this could be handy, for example, if you forgot your root password. This also could be handy if you were trying to be malicious…

Contents