Re: Setting up Debian on a mobile disk



On Thu, Jan 31, 2008 at 03:56:10PM +0100, Dan H. wrote:

like the subject says, I want to set up a Debian system on a bootable
external USB hard disk

Followup: I've discovered debootstrap and have used it to set up a system on
that mobile disk. I chrooted to that disk (using the procedure from the
debootstrap manpage) and installed a few additional packages with aptitude.
That sort of worked (there were gazillions of error messages about Perl
falling back to the C locale or some such stuff -- don't know if that
matters). Also what puzzled me was that the chroot system immediately wanted
to upgrade many packages -- I mean, all packages had come fresh off the same
server minutes ago.

Anyway, I then rebooted the PC and tried to boot from the USB disk but that
didn't work.

Then, back in my normal system, I mounted the USB disk and discovered that
it had neither a kernel nor a bootloader installed (that ain't much of the

So to fix that I wanted to chroot into my mounted USB disk again but was
rebuffed:

chroot: cannot run command `/bin/bash': Permission denied

WTF? There were no changes to that disk since chroot worked just before the
reboot. I also did the "mount proc" spiel, whatever that's for.

Thanks,
--D.


Attachment: signature.asc
Description: Digital signature



Relevant Pages

  • Re: migrating Debian GNU/Linux Etch to second SATA
    ... it on a new disk sdb in such a way that when the new disk is ... if sda and sdb are identical I use dd) of the old sda, ... and then inside the chroot I mount what i need: ...
    (Debian-User)
  • Re: Desktop user: Etch or the next testing?
    ... >> Douglas Allan Tutty wrote: ... I know there is chroot jail ... >> one can run a whole Debian operating system in a chroot jail. ... If I have another physical disk, I'd rather put backups on it. ...
    (Debian-User)
  • Re: Slightly failed Hard-Disk-Upgrade
    ... >> attach new hd to desktop and copy drive image to new hd ... >> put new hd in laptop ... > Swapped old disk for new disk booted and got as far as ... I think I'd try 'chroot' to see if the new partition will work. ...
    (Debian-User)
  • Rebuilding Corrupt Debian
    ... I've had some hard drive corruption issues, I was able to transfer pretty ... much everything to another disk, but I had 192 bad blocks on my old disk so ... I have booted to knoppix but I when I try to chroot into my debian ... I tried chrooting from Ubuntu, ...
    (Debian-User)
  • Re: --++[Preventing the spread of USB malware]++--
    ... "/Flash_Disinfector will create a hidden folder named autorun.inf in each partition and every USB drive that is plugged in when you ran it. ... Don't delete this folder...it will help protect your drives from future ... > Malware uses two main techniques to spread through memory sticks. ... > the disk in a hex editor. ...
    (Pen-Test)