Ok, it seems someone got in, don't know, here goes what you asked me for:

[EMAIL PROTECTED] mkdir /mnt/debian
[EMAIL PROTECTED] mount -o rw,exec -t auto /dev/hdb1 /mnt/debian
[EMAIL PROTECTED] chroot /mnt/debian /bin/bash
chroot: cannot run command `/bin/bash': Permission denied
[EMAIL PROTECTED] ls /mnt/debian
bin   cdrom  flashcard  lib         mnt   sbin   tmp  vmlinuz
boot  dev    floppy     lost+found  proc  stick  usr  vmlinuz.old
card  etc    home       memstick    root  sys    var
[EMAIL PROTECTED] file /mnt/debian/bin/bash
/mnt/debian/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped
[EMAIL PROTECTED]

[EMAIL PROTECTED] stat /mnt/debian/bin/bash
  File: `/mnt/debian/bin/bash'
  Size: 666892          Blocks: 1312       IO Block: 4096   regular file
Device: 341h/833d       Inode: 2681751     Links: 1
Access: (0660/-rw-rw----)  Uid: (   33/www-data)   Gid: (   33/www-data)
Access: 2004-11-21 17:02:04.000000000 -0500
Modify: 2004-11-11 01:42:13.000000000 -0500
Change: 2004-11-21 11:44:15.000000000 -0500
[EMAIL PROTECTED]
[EMAIL PROTECTED]

ls -l /mnt/debian/bin/bash
-rw-rw----  1 www-data www-data 666892 Nov 11 01:42 /mnt/debian/bin/bash


Looks bad... Tell me guys, wipe all?

David, thank you for all, same for Michael

[EMAIL PROTECTED] wrote:
> the chroot step didn't work, rr webmail is being a pain, loging me out every 
> 5 sec, sorry if send this mail twice, dont know if it made it
Hmm, it worked before though, are you sure you followed the exact same
steps (mkdir /mnt/debian, then mount /dev/<root> /mnt/debian, then
chroot /mnt/debian /bin/bash)?

> is chroot indispensible for the dpkg reinstallation?
It's much easier with the chroot, but it's possible without chrooting.

Just a brief overview on how chroot (the program not the C function) works:
1. make some directory e.g. /mnt/debian the new root (/) for the current
process
2. cd into / (/mnt/debian to the rest of the computer)
3. run another program e.g. /bin/bash (/mnt/debian/bin/bash to the rest
of the computer)

What that effectively does is put you 'in' your debian system even
though the computer is running knoppix.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/CM$/CS>$/CC/IT$/M/S/O/U dpu s+:++ !a C++$>C+++$
UB+++>++++$L++++$*-- P+>++$ L+++(++++)$ E-(---) W+++>$ N(+) o? K-
w--(---) O? M V? PS++@ PE-@ Y+@ PGP++(+++)>$ t? 5? X? R tv--(-)
b++(+++)@ DI? D? G e->++++ h* r? z*
------END GEEK CODE BLOCK------

David Mandelberg
[EMAIL PROTECTED]

Reply via email to