[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: boot-floppies for stable

On Thu, Apr 19, 2001 at 08:09:55AM -0400, Russell Hires wrote:
> I've come across a funny problem: I'm unable to "mkdir chroot". It isn't 
> there already, so, what do I do?
> I checked the man pages for chroot, and lo and behold, it's a command! I
> guess you can't make a directory that is a command. Should I just d/l the
> source, build, and it will create the directory?
> Russell
You're missing a very important concept of chroot.  Usage: chroot dir

After you chroot, your / becomes whatever dir you entered after the chroot.
When debian installs, it puts everything in /target.  Already installed
debian but can't boot for some reason, and you didn't use the "rescue"
option of the i386 disks.

mount /dev/... /target
mount... as needed

chroot /target

Now you are esentially using your system just like you booted it from the
hd, but it didn't go through the init startup process from the hd...

Maybe this is a little complicated for an example, but it illustrates the
last time I needed to use chroot.

chroot, is usually used for restricting users.  Some ftp servers use this.


Reply to: