[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
howtos:slackware_admin:how_to_chroot_from_media [2012/10/12 23:19 (UTC)] – Typos Fixed. sycamorex | howtos:slackware_admin:how_to_chroot_from_media [2013/06/18 10:12 (UTC)] – tommyc | ||
---|---|---|---|
Line 19: | Line 19: | ||
For LVM volumes you need to make sure that the system can recognize and activate the volume. This is done by running the commands: | For LVM volumes you need to make sure that the system can recognize and activate the volume. This is done by running the commands: | ||
- | * '' | + | * '' |
* '' | * '' | ||
* If more than one group was found, you can select which one to activate with '' | * If more than one group was found, you can select which one to activate with '' | ||
Line 27: | Line 27: | ||
| | ||
After we make sure which partitions are needed, we need to mount them: | After we make sure which partitions are needed, we need to mount them: | ||
- | | + | |
< | < | ||
+ | Here are 3 common examples. | ||
+ | |||
+ | 1. The first is just a simple installation with everything installed under / mounted under /dev/sda1. No LVM or additional drives. | ||
+ | |||
+ | < | ||
+ | |||
+ | 2. In the next example we have two drives. The user has set up his or her Slackware system to use /dev/sdb1 for /home and /dev/sda1 for everything else. | ||
+ | |||
+ | < | ||
+ | mount /dev/sda1 /mnt | ||
+ | mount /dev/sdb1 / | ||
+ | |||
+ | 3. For the third example the user has used LVM and has already made their volume group known to the kernel. The user is using the logical volumes "root, usr, home, opt, var, srv" all under one volume group labeled " | ||
+ | |||
+ | < | ||
+ | mount /dev/sda1 /mnt/boot | ||
+ | mount / | ||
+ | mount / | ||
+ | mount / | ||
+ | mount / | ||
+ | mount / | ||
+ | mount / | ||
+ | |||
+ | We could have also used a for loop for everything except /boot (/dev/sda1) and / (/ | ||
+ | < | ||
+ | do | ||
+ | mount / | ||
+ | done | ||
+ | </ | ||
Next, we need to prepare three virtual directories to be used by the environment. Those are ''/ | Next, we need to prepare three virtual directories to be used by the environment. Those are ''/ | ||
- | | + | |
< | < | ||
mount -o bind /proc /mnt/proc | mount -o bind /proc /mnt/proc | ||
Line 41: | Line 70: | ||
< | < | ||
| | ||
- | <note important> | + | <note important> |
| | ||
The bash prompt that you see here is a bash prompt started on your system. You can now work on this environment naturally. For example editing ''/ | The bash prompt that you see here is a bash prompt started on your system. You can now work on this environment naturally. For example editing ''/ |