LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2011, 04:34 PM   #1
briandarvell
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Rep: Reputation: 0
Post Command-line Linux distor off USB flash drive


Hello,

I have a 32GB flash drive that I want to:

- Have an installation of linux with no X-terminal. Only command-line.

- Be bootable by plugging into any computer and turning that computer on.

My wishes are strictly for writing purposes. I want to write in a minimal environment where there's no distraction by other programs or Internet. I don't care what programs exist on the linux distro as long as it has a text-editor.

Please tell me how to proceed. What linux distro I should get. How to install it on a USB stick. Anything I need to know.

Thanks very much.
 
Old 01-19-2011, 04:40 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ

You can try a minimal debian, or slackware.

Kind regards
 
Old 01-19-2011, 05:12 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,101

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
Almost every top distro could be put on a usb flash. Then if you want you could set boot to terminal or no gui.

See pendrivelinux.com for how to's. Choose ones that have or can have persistence.


As repo suggests, one could use almost any distro that allows one to install to a usb flash. The install would be a real install to an ext file system usually. One may have to take note for some odd deals like that. Video selection or grub entries may need to be looked at. The normal live cd to usb tends to negate all of that.
 
Old 01-19-2011, 07:11 PM   #4
briandarvell
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the replies. I found a LiveUSB Creator program. Would this work with something like an ISO of Puppy Linux to get what I desire?
 
Old 01-19-2011, 08:47 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,101

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
Maybe. Puppy is good but seems to do things a bit different. I think the way puppy installs normally to a usb is to boot to a live cd and then run one of the installers. Might check on that to be sure. On some versions I think you had to have the usb unmounted before using the installer. It should be easy enough to find out online or by using the app.

Liveusbcreator may include that as a standard distro too. In any case you should be willing to try a few. Just be sure you know what exactly you are trying to install to.

There seems to be two similar programs by that name. Do you mean this one? http://www.pendrivelinux.com/linux-live-usb-creator/

Last edited by jefro; 01-19-2011 at 08:48 PM.
 
Old 01-19-2011, 09:11 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,150

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
i inadvertently made my fedora 14 live usb boot to command-line by messing up /etc/X11/xorg.conf. i think basically all you need to do is change: Driver "foobar".
 
Old 01-20-2011, 09:58 AM   #7
briandarvell
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for all the replies. I was able to get it to boot to command line by changing the /etc/inittab files to go in single-user mode. Now it boots to command line properly.

My next question is this, I've made new text files and upon rebooting they remain there in the proper folders - so this means the persistence is working properly. Yet, if I plug my flash drive into Windows there doesn't seem to be any way I can recover these made text files. All I see is some large file called overlay-BRIAN-C0DF-223A that is equal to the size of the persistence file I desired to create. Is there a way to recover these text files I wrote in Windows?

Thanks.
 
Old 01-20-2011, 10:37 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Seems to me the only way is to create a separate data partition on the usb, and copy the files to it, before you shutdown the OS.

Kind regards
 
Old 01-20-2011, 10:50 AM   #9
briandarvell
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Do you know if this partition has to be ent2 or can it also be FAT32?
 
Old 01-20-2011, 10:54 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Fat 32 should work, so windows can read it.

Kind regards
 
Old 01-20-2011, 11:36 AM   #11
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Being also a writer I suggest you make one from either debian, buntu, arch or slackware

I can show you how to make any of them

I also suggest Wordgrinder, a console word processor
http://wordgrinder.sourceforge.net/

I also now distribute a Salix OS clone named PocketWriter here that includes wordgrinder and many other writing apps
http://multidistro.com/

most distros are easy enough to remaster
 
Old 01-20-2011, 12:30 PM   #12
briandarvell
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
I created a second partition on the drive in FAT32. It work fine in linux but when I plug in to Windows it's not recognized because Windows doesn't read multiple partitions on a removable storage device. Ha Ha, I thought things would have been easier than this.
 
  


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
how to mount usb drive in command line IN UBUNTU linux.ab Linux - Newbie 1 03-15-2010 01:57 AM
Mount USB drive from command line rcrummett Linux - Newbie 10 09-25-2008 06:16 PM
Saving a file to a USB thumb drive from the command line dbough Linux - Newbie 7 04-17-2007 08:21 PM
How do I use my USB flash drive on Linux Drague Linux - Hardware 7 01-23-2006 11:27 PM
Using a USB flash drive with Linux membrax Linux - Hardware 76 11-03-2005 12:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration