Re: installing Linux from a USB flash drive



On 11/06/08 07:35, Rahul wrote:
Is there a way to install Linux (Centos) *from* a USB stick? I've installed before from iso images on CD's / DVD's and PXE-over-the-network but can I do it from a USB stick too?

When I googled the articles I could find all show me how to install it *to* a USB. But how does one use USB as the istallation medium itself? I cannot just copy the iso to a USB stick can I?

Try:

dd if=any.iso of=/dev/sdd bs=2048

while /dev/sdd is where your USB stick is inserted, and boot off of it with help of BIOS options (if your the mobo BIOS allows that, otherwise you may need to tweak that ISO image around around a bit, as have been advised in most of those docs which you read -- How to boot off LiveCD image of from a USB stick/pendrive).

Works for most Linux/Unix images; I have tested Debian, Arch, FreeBSD and Nexenta iso images. Although http://cto.homelinux.net/pub/FreeBSD/tftpboot/README.txt, is somewhat FreeBSD specific, but most of steps involved can be useful and, or usable for some Linux distributions too i.e. mounting an image and booting off it over PXE/Netboot.

Hope that helps,
--
Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709
Anu'z Linux@HOME (Unix Shoppe) Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India Gentoo, Fedora, Debian/FreeBSD/XP
Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/
.



Relevant Pages

  • Re: Creating a boot disk
    ... >> I am trying to install Linux on a computer that does not have a CD drive, ... The easy way now for most machines is to get one of those USB flash ... drives or a USB adapter for compact flash or SD cards. ... Download the iso images to a directory that is NFS exported. ...
    (Fedora)
  • Re: usb mouse support update plans
    ... >> On my grande circuit of trying to make mouse support better for>> FreeBSD, ... >> I've finally come about to working on usb mice. ... It uses the same reciever as the keyboard and touch pad. ...
    (freebsd-current)
  • Re: [Fwd: Re: Kernel panicking in 6.2 and 7-CURRENT -- interrupt issues]
    ... 6.2 RELEASE panics if I don't boot FreeBSD up into "safe mode", ... ohci_add_done looking for a non-existent memory address, if the USB ... controller is enabled in the BIOS with "Legacy Mode", i.e. USB Keyboard ... This is my first nvidia chipset board but it looks as though I'll be looking for one with the trusty Intel chipset. ...
    (freebsd-stable)
  • Re: Dialup->Broadband. Changes? [Long]
    ... > 1) The first problem I encountered was that the FreeBSD box has no USB ... Do these cards work on FreeBSD? ... However I would suggest a router not a modem, so USB would not be needed. ... Buy a USB ADSL modem. ...
    (comp.unix.bsd.freebsd.misc)
  • FreeBSD Quarterly Status Report, First Quarter of 2007
    ... This report covers FreeBSD related projects between January and March ... Building Linux Device Drivers on FreeBSD ... Ports Collection ... Initially the project focused on USB webcams, ...
    (freebsd-hackers)