Installing Debian on USB Hard Drive/USB Jump Drive
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What is the best method to install my Debian System(Sarge/Etch) on a USB hard drive or a USB Jump drive?
I already have a debian system installed on my Hard drive but I would like to install it(fresh new system or the one already installed on my Hard Drive) on my USB device.
Is there any guide?
EDIT: Update: Here is the guide.
Thanks
Last edited by kushalkoolwal; 07-20-2009 at 05:59 PM.
I'm only a bigginer but this is where I would start looking :
When you have your USB key plugged in when you install debian it asks about partitions and where to install debian, I guess you just choose your usb key instead of the hard drive...
The only problem I see here is the boot, and of course the speed your usb key being slow. I guess that if you install a new debian on your PC hardrive you'll have to have your uSB key pluged in so you do not loose your usb menu in your boot manager...
I'm only a bigginer but this is where I would start looking :
When you have your USB key plugged in when you install debian it asks about partitions and where to install debian, I guess you just choose your usb key instead of the hard drive...
The only problem I see here is the boot, and of course the speed your usb key being slow. I guess that if you install a new debian on your PC hardrive you'll have to have your uSB key pluged in so you do not loose your usb menu in your boot manager...
From what I have come to known is we can copy the file system from any existing Debian system to our USB jump drive. But the problem comes when you have to install the boot loder. I think syslinux does that job but it requires FAT16 or FAT32 partition in order to install the boot loader on the USB jump drive. That means I think we need two partitions: one is ext3 to have the filesystem and a FAT partition to have boot loader.
But I am hoping if someone who already has an experience with this can guide me or give his/her valuable suggestion.
although i haven't tried it yet, my strategy will be to take a stock install of the business-card-sized-sarge on an IDE drive and try to get it to boot after relocation to a USB housing. this will surely require some messing with grub from a chrooted boot CD such as knoppix and probably also the inclusion of whatever modules are required for boot (from the USB device) such as the USB modules, the SCSI modules, etc in /etc/modules as per the following man page :
The /etc/modules file contains the names of kernel modules that are to be loaded at boot time, one per line.
once i get this working on a USB drive (someday) i'd try to dd it to a USB thumbdrive which obviously is slower for experimental purposes.
let me know if you get it going, would like to hear an optimized strategy if you find one.
From what I have come to known is we can copy the file system from any existing Debian system to our USB jump drive. But the problem comes when you have to install the boot loder. I think syslinux does that job but it requires FAT16 or FAT32 partition in order to install the boot loader on the USB jump drive. That means I think we need two partitions: one is ext3 to have the filesystem and a FAT partition to have boot loader.
But I am hoping if someone who already has an experience with this can guide me or give his/her valuable suggestion.
regarding the boot loader, one quote from the article above which may provide some insight is "One word of caution, however: care needs to be taken when deciding on where to install the boot loader (usually GRUB or LILO) -- I would recommend not installing it in the Master Boot Record (MBR) (which is usually the default). Rather, it should be installed in the root partition (or boot partition, if you use a separate one) of the external drive."
further, i don't follow why any FAT partitions are required, can't you just make an EXT3 boot partition and use the grub installer to fix things up correctly?
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
By the way,the new version based on sidux will be more geared toward,if not,pure debian unstable.
Stil can downgrade to testing or stable via sources.list with either kanotix or sidux.
further, i don't follow why any FAT partitions are required, can't you just make an EXT3 boot partition and use the grub installer to fix things up correctly?
I completely agree with you regarding that. Why create all this fuss regarding FAT and also using squashfs and all that complex thing.
It's been more than two and half years since I posted the question. Few months back I got inspired and I wrote a series of article. Hope it helps somebody...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.