Re: portable Debian



On Mon, Feb 15, 2010 at 11:36:23AM EST, Stefan Monnier wrote:

[..]

- getting your BIOS find your kernel:
- some machines can't boot from USB at all.
- others can, but with some restrictions (typically Apple hardware,
so I end up having to setup my flash key with grub-efi-32,
grub-efi-64, and grub-pc, which is poorly supported under Debian).
- of course yet other machines aren't even using the IA32 instruction
set, so you may need several separate installs (PowerPC/Mips/Arm/...).

What I did on my machine with a BIOS that will never recognize USB
devices, was boot off of the hard drive grub and then point grub2 to the
USB device from the shell that's accessible by hitting 'c' on the grub
boot menu.

With current versions of grub-pc, you have to load the two USB modules
manually, which on my hardware takes for ever. But when you see the USB
light come on, you know you're in business.

- getting your kernel to find the root filesystem. Your external hard
disk partition will typically not have a fixed device name like
/dev/sdb2, so you'll want to refer to it with its UUID, label, or via
LVM naming.

Yes.

- Some udev rules try to give unique and *stable* names to devices by
simply remembering the names they used in the past. On a system that
you move around on many different machines, this can be a pain in the
rear, since your only ethernet card may easily end up named eth7
(because eth0-eth6 were already used for the cards on other machines).
So you may want to "rm /etc/udev/rules.d/70-persistent-*" in your
/etc/rc.local.

Good point. I've had this 'project' on the back burner for a while and I
think it's time to take another look and finalize portability aspects.

Thanks,

CJ


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/20100216044744.GE3343@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: [PATCH 2.6.34] ehci-hcd: add option to enable 64-bit DMA support
    ... USB flash drive, which gets about 30 MB/sec on read, with CPU-burning ... I thought the downside was that this would break on some machines. ... feature enablement patch, that has zero impact on anyone that doesn't ... Intel chipset machines have two EHCI controllers, ...
    (Linux-Kernel)
  • Re: Quick and dirty "debian live" on USB stick.
    ... I already have a custom initrd and recreating it is not going to ... system on the USB stick to a DVD and see if I can boot off of that. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Serial Port CE_OVERRUN errors
    ... machines, especially when EMM386 or HIMEM.SYS were loaded. ... and then you could watch the readings catch up. ... My early experiments proved that the serial port of the PC should be able to ... We had some major problems with commercial USB to Serial converters, ...
    (comp.lang.pascal.delphi.misc)
  • Re: USB key requirement.
    ... diskless boot. ... If the requirement can be relaxed to be some other sort of USB device, ... This I've already done with my server, the usb key is inserted into the ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Boot cd query
    ... lays down the swap file at boot. ... would investigate why your machine does not recognize the USB KVM. ... Our HP and IBM machines ... configuration screens and the bios set up screens which are only available ...
    (alt.os.linux.suse)