C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 12-18-2008, 08:21 AM   #1
Super Moderator
 
Join Date: Sep 2001
Posts: 4,775
USB Linux - live or no?

So I wanted to get linux running from a flash drive, but there seems a fair bit of ambiguity out there about "live" distributions. And I'm pretty confused about my options. Can you correct any assumptions I'm making and recommend a good distro for this?

It's mainly for system recovery, but I'd also like to be able to store my own files and programs on the desktop (if you're running a live system - I know that has to be a separate partition - but can you "install" to a USB drive and have it use it's own partition? I have a feeling that might hinder the ability to detect different hardware at start-up - am I right?)

I'd rather not have a gui - I'd rather just have something that loads quickly, reocgnizes the local hardware, and lets me look through the files, editing them or pulling them onto the USB drive if I choose to.

I'm not a big pro at mounting drives from the CLI - but I wouldn't mind learning. If it recognizes hardware as well as ubuntu and just dumps me in the CLI with everything mounted - well hey that's perfect!

The only reason I don't just install Ubuntu is because I think I can get away with taking up a lot less space and having more space for my own files, and the only reason I don't just install the most bare bones distro I can find is that I want to make sure that I have support for most common file-systems and hardware, etc...

If you can point me in a better direction that I'm going with google - I'd appreciate it! I'm making more progress but I definitly want to learn more - but I'm not at the point where I'd be able to put my own distro together - which is where I'd like to end up.

edit: Is Damn Small Linux pretty good at recognizing usb drives, hard drives, etc... out of the box? And if you put it on a USB drive, can it treat it's own partition as though it was a hard drive? i.e. installing new software, writing to files, customizing the desktop, etc... DSL seems like it might be a good choice for me...
sean is offline   Reply With Quote
Old 12-18-2008, 01:47 PM   #2
Frequently Quite Prolix
 
dwks's Avatar
 
Join Date: Apr 2005
Location: Canada
Posts: 7,761
You could always go with Ubuntu. You don't have to install X (i.e., graphical stuff).

I don't know about Ubuntu, but I've seen plenty of Debian Linux distributions that are less than 400 MB -- with Gnome! If you bootstrap a basic Debian system, it's like 200 MB. This would include a lot of command-line utilities and no doubt all of the hardware detection software you'd be looking for.

I don't know about DSL, but Puppy Linux seemed pretty good to me in terms of hardware detection. I'm sure DSL is quite good too.

Also, something I just found that you may be interested in: http://en.wikipedia.org/wiki/UNetbootin
__________________
dwk

Seek and ye shall find. quaere et invenies.

"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell


Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net

My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
dwks is offline   Reply With Quote
Old 12-18-2008, 02:58 PM   #3
glo
Registered User
 
Join Date: May 2006
Posts: 160
I used to have a system-rescue-cd bootable distro on my usb stick at around 100mb. It proved sort of useful for its purpose. The only downside is that some older computers will not boot from the usb properly, if at all. Therefore I'd actually suggest a LiveCD/DVD for system rescue seeing as those are more widely boot supported.
If you are just looking for a handy solution, this really may be it.
glo is offline   Reply With Quote
Old 12-18-2008, 05:09 PM   #4
Woof, woof!
 
zacs7's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 3,400
> I'm not a big pro at mounting drives from the CLI - but I wouldn't mind learning.
There's nothing to it,

Work out which device the USB is,
# fdisk -l

Mount it,
# mount /dev/sdx1 /media/usb

Do your stuff and unmount it,
# umount /dev/sdx1

> Is Damn Small Linux pretty good at recognizing usb drives, hard drives, etc... out of the box?
Most of that stuff is either "in" the kernel or as additional kernel modules.

I'd go with Arch if I was you or some other system that you build yourself, the Arch installer should be able to install Arch to USB -- even the USB it's running from.
__________________
My homepage | premake | vim

Last edited by zacs7; 12-18-2008 at 05:12 PM.
zacs7 is offline   Reply With Quote
Old 12-23-2008, 10:30 AM   #5
and the hat of copycat
 
stevesmithx's Avatar
 
Join Date: Sep 2007
Posts: 422
I used UNetBootin to create a Live USB Ubuntu 7.04(Feisty Fawn) today on my 2GB drive today and voila it works like a charm.Now I face the same problem as sean which is to store files on the drive while still using it as a Live version.
Being a Linux noob ,I googled for this stuff and I found something https://help.ubuntu.com/community/LiveCD/Persistence. which looked promising.
I was a bit disappointed when i read this thing is not supported for Feisty Fawn.
Guess I'll just have to download a newer version of Ubuntu.

Meanwhile when I used the free command to see how much space is available,
I get this:
Code:
ubuntu@ubuntu:~$ free -m
                     total       used       free     shared    buffers     cached
Mem:              946        829        117          0        101        497
-/+ buffers/cache:        230        716
Swap:              0          0          0
As you can see it shows 1GB instead of 2GB.(I don't have any idea about the buffers/cache
being a linux noob,i ignored them :S)
Can somebody with linux knowledge tell what is going on?
Thanks.

P.S:Right now, I am posting this from Feisty fawn
__________________
Not everything that can be counted counts, and not everything that counts can be counted
- Albert Einstein.


No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes.
- Herbert Mayer

Last edited by stevesmithx; 12-23-2008 at 10:40 AM. Reason: Using code tag instead of quote
stevesmithx is offline   Reply With Quote
Old 12-23-2008, 10:38 AM   #6
Reverse Engineer
 
maxorator's Avatar
 
Join Date: Aug 2005
Location: Estonia
Posts: 2,276
Quote:
Originally Posted by stevesmithx View Post
As you can see it shows 1GB instead of 2GB.(I don't have any idea about the buffers/cache
being a linux noob,i ignored them :S)
Can somebody with linux knowledge tell what is going on?
Thanks.
I don't know that much about Linux, but I'm guessing it shows the amount of memory, not the amount of space on the USB stick, since it loads its file system into the memory, not onto the USB stick.

Edit: OT: sean, you've made 2^12-1 posts!
__________________
If programming is like cooking, a programming language is an oven.

Last edited by maxorator; 12-23-2008 at 10:53 AM.
maxorator is offline   Reply With Quote
Old 12-23-2008, 10:47 AM   #7
and the hat of copycat
 
stevesmithx's Avatar
 
Join Date: Sep 2007
Posts: 422
Quote:
Originally Posted by maxorator View Post
I don't know that much about Linux, but I'm guessing it shows the amount of memory, not the amount of space on the USB stick, since it loads its file system into the memory, not onto the USB stick.
Thanks for replying, maxorator.
I think you are right as i have 1GB of RAM.
df should be used for this i think.
I'll try that.
Edit:
Yeah you are right.Man page says it is used for checking memory.
__________________
Not everything that can be counted counts, and not everything that counts can be counted
- Albert Einstein.


No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes.
- Herbert Mayer

Last edited by stevesmithx; 12-23-2008 at 10:49 AM.
stevesmithx is offline   Reply With Quote
Old 12-23-2008, 10:56 AM   #8
and the hat of copycat
 
stevesmithx's Avatar
 
Join Date: Sep 2007
Posts: 422
When I use df I get the following(I can't find my USB drive although i can see my disks hda ,sda ,methinks)
Code:
ubuntu@ubuntu:/$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                   484844     33788    451056   7% /lib/modules/2.6.20-15-generic/volatile
tmpfs                   484844     33788    451056   7% /lib/modules/2.6.20-15-generic/volatile
varrun                  484844       104    484740   1% /var/run
varlock                 484844         0    484844   0% /var/lock
udev                    484844       124    484720   1% /dev
devshm                  484844         0    484844   0% /dev/shm
tmpfs                   484844        12    484832   1% /tmp
/dev/hda1             19543072  19104584    438488  98% /media/disk
/dev/sda1             19543040  18708120    834920  96% /media/disk-1
/dev/sda7             19518940  18763468    755472  97% /media/disk-2
__________________
Not everything that can be counted counts, and not everything that counts can be counted
- Albert Einstein.


No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes.
- Herbert Mayer
stevesmithx is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Linux install from a 4Gb USB stick mynickmynick Linux Programming 4 12-02-2008 03:54 PM
Working SB Live in Linux? martman00 Tech Board 7 04-13-2003 07:42 PM
Newbie problems after first linux install ever... Leeman_s A Brief History of Cprogramming.com 1 01-24-2003 03:04 PM
how to use USB disk in linux ? black Linux Programming 12 07-15-2002 11:56 PM


All times are GMT -6. The time now is 12:03 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22