Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1176
  • Last Modified:

Install Linux to Flash drive

I have a 2.0 GB flash drive and I want to be able to intall Linux (any distro) to is. Here is the catch though, I DO NOT want it is be a bootable CD type install where it still loads into the RAMDisk. I want the flashdrive to be treated as an actual harddrive with a swap partition and everything. Is this possible? Will it work on any Linux distro? How do I do it?
0
strickdd
Asked:
strickdd
1 Solution
 
xDamoxCommented:
Hi,

I would recommend using damn small linux:

http://www.damnsmalllinux.org/
0
 
alextoftCommented:
You may wish to try Damn Small Linux - http://www.damnsmalllinux.org

I have that installed on a 128Mb stick and USB stick installs are a specific supported feature. It's a small distro, but has X, Firefox, and plenty of apps you can bolt on as MyDSL packages (just tar.gz's really). Depends what level of features you require. I'm pretty sure Knoppix also supports this, and has a far, far larger set of applications including OpenOffice. Unfortunately my company don't seem to want to anything bigger than 512Mb so I can't say I've tried it yet.

Whilst the 2 mentioned are both traditionally "live" distros, they will happily install and live on other mediums in the traditional sense.
0
 
strickddAuthor Commented:
The thing is I have tried installing DSL to a flashdrive and it would not recognize it as a valid harddrive. This was the same for Auditor as well. If seems that Linux cannot have a flashdrive act like a harddrive and run directly from it without the RAMDisk. Am I missing something with DSL that allows it to actually INSTALL to a flashdrive as if it was a harddrive?

If the solution uses a RAMDisk, that is NOT what I want.
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
Duncan RoeSoftware DeveloperCommented:
At work we installed Slackware to flash drive to run as you say. I first installed to a normal HDD and cut it down to 64MB or so (no compilers, man pages or other doco but keep gdb and network tools like tcpdump traceroute &c.). Then copy it over (Knoppix / NFS or temporarily connect 2 CD drives - system normally has none). No swap - we had 512M RAM and a 512M flash.
Flash not being recognised as a disk could be a problem. Is it configured as an IDE disk on the mobo? Have you tried booting Knoppix and looking for it with fdisk? (try fdisk /dev/hda, fdisk /dev/hdb, ... until you find it)
0
 
nedvisCommented:
   " If the solution uses a RAMDisk, that is NOT what I want."  Then there's no solution for you !
    Pople often wants impossible.
    Keep in mind both Linux and Windows users boot from devices and not from busses, and technically speaking USB devices ( flash drives included) are only bus storage media accessible through SCSI emulation
( meaning that USB flash drive only acts as hard-disk even if its not )
     "...It seems that Linux cannot have a flashdrive act like a harddrive ."
    Neither Windows can.  USB flash memory , jump drive ,pen drive , keychan memory , diskonkey ( call it whatever you want) are considerred STORAGE only device and are not enumerated as hard-disks.
    "BIOS support for USB hard drives and USB CD-ROM must comply with the "Compaq Phoenix Intel BIOS Boot Specification version 1.01" as hard drives and CD-ROM drives on other buses do today.
      New requirements come from the USB Mass Storage Working Group which is currently working on a specification to standardize booting from USB storage devices called the "USB Mass Storage Specification for Bootability". At the time of this writing, this specification is currently at revision 0.8. Additionally, when it is published it will have an appendix that illustrates INT 13h support and should be followed.
Additionally the USB Mass Storage Working Group has constricted the Control/Bulk/Interrupt (CBI) Transport to only apply to floppy disk drives. BIOSes should simplify their designs by supporting only the Bulk-Only Transport (BOT) as CBI can not be used for hard drives and CDs.
   
   Overview of Linux USB  ---->   http://www.linuxjournal.com/article/8093
   
   See also Microsoft's  "Recommendations for Booting Windows from USB Storage Devices  "
   http://www.microsoft.com/whdc/device/storage/usb-boot.mspx
         "BIOS must support INT 13h During the boot process, Windows assumes that support for communicating with the boot device, either hard disk drive or CD-ROM drive, is present in INT 13h when Windows loads because the NT Loader uses calls to INT 13h to access the disk. INT 13h support must comply with the "BIOS Enhanced Disk Drive Services - 2" specification and the "USB Mass Storage Specification for Bootability," The newer specification is considered the authority if the two specifications contradict each other.
         Accurate drive numbering by BIOS Windows also requires that the assignment of drive numbers follows "Compaq Phoenix Intel BIOS Boot Specification version 1.01." Hard disk drives should begin numbering at 80h and CD-ROM drives should begin numbering at 82h, as in the past."
 
           Flash memory can only be flashed so many times before it doesn't work  anymore so USB jumpdrive
as a media or block/hardware device that is accessed with buffering within the operating system is not exactly suitable for hosting Linux swap .

good luck
nedvis

0
 
strickddAuthor Commented:
Thank you for your detailed input on this topic. I really had hoped that it would be possible, but I guess not. Is it possible to install Linux to an external harddrive?
0
 
nedvisCommented:
Please read punkrawkpat's post in this thread :
http://forums.devarticles.com/the-lizard-lounge-10/linux-install-suse-on-an-external-usb-drive-6250.html
Also an excellent IBM Linux support WEb site :
http://www-128.ibm.com/developerworks/linux/library/l-fireboot.html       

nedvis
0
 
strickddAuthor Commented:
Thanks for all the input once again!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now