LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 08-25-2006, 01:55 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
Debian Install question on USB


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.
 
Old 08-26-2006, 09:12 PM   #2
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
any one????
 
Old 08-27-2006, 12:55 PM   #3
wonker
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Rep: Reputation: 0
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...
 
Old 08-27-2006, 04:57 PM   #4
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by wonker
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.
 
Old 08-28-2006, 04:21 PM   #5
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
anyone???
 
Old 08-28-2006, 10:24 PM   #6
bdp
Member
 
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Rep: Reputation: 30
Quote:
Originally Posted by kushalkoolwal
anyone???
here's a very basic discussion which may be useful:
http://www-128.ibm.com/developerwork...-fireboot.html

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.

thx,
-b
 
Old 08-28-2006, 10:33 PM   #7
bdp
Member
 
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Rep: Reputation: 30
Quote:
Originally Posted by kushalkoolwal
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?

Last edited by bdp; 08-29-2006 at 12:06 AM.
 
Old 01-03-2007, 10:53 PM   #8
GoJian
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
http://feraga.com/node/30

- a nice guide targeting at USB flash drive. I guess it works the same for a portable external USB hard drive.
 
Old 01-05-2007, 09:46 PM   #9
ironwalker
Member
 
Registered: Feb 2003
Location: Jersey shore,north
Distribution: Siduction the only way to do Debian Sid!
Posts: 500

Rep: Reputation: 30
Could install cpx-mini...than downgrade or switch to total debian via sources.list.
http://www2.informatik.hu-berlin.de/~bading/cpx-mini/

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.
 
Old 01-26-2009, 08:30 PM   #10
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by bdp View Post
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.
 
Old 02-26-2009, 01:46 PM   #11
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Debian onto external usb hard drive sublyme718 Linux - Newbie 2 02-28-2009 12:50 PM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
USB 2.0 Jump Drive mrgoodtrips Slackware 8 09-28-2005 10:12 AM
Installing Debian on a (fat32) USB hard drive nagromo Debian 7 01-05-2005 12:33 AM
USB 2.0 jump drive in USB 1.1 slot won't work? zwyrbla Slackware 2 09-27-2004 08:26 PM


All times are GMT -5. The time now is 01:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration