tag:blogger.com,1999:blog-35119159.post192062777381166225..comments2023-08-20T05:19:44.859-04:00Comments on Ask The Admin: Question: How do I install an os on a usb memory stick for emergencys?Karl L. Gechlikhttp://www.blogger.com/profile/08319210063068776291noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-35119159.post-64837884959969385502007-06-22T20:39:00.000-04:002007-06-22T20:39:00.000-04:00lots of good stuff here!lots of good stuff here!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-35119159.post-13798515348526154462007-06-22T09:14:00.000-04:002007-06-22T09:14:00.000-04:00that is very coolthat is very coolAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-35119159.post-55728782808754862462007-06-22T07:32:00.000-04:002007-06-22T07:32:00.000-04:00Answer: How-to: Installing Ubuntu Linux on a usb p...Answer: How-to: Installing Ubuntu Linux on a usb pendrive<BR/><BR/>This tutorial will show how-to install Ubuntu on a usb stick. Even though this tutorial uses Ubuntu as its base distribution, you could virtually use any type of Linux liveCD distribution.<BR/><BR/>Being able to run Linux out of a usb bar is a great way to enjoy the live CD experience (being able to use Linux on any computer you might get by) and the big advantage of being easier to carry around than a CD.<BR/><BR/>1. Requirements<BR/>In order to reproduce this tutorial, you will need a few items such as: <BR/><BR/>a ubuntu liveCD <BR/>a usb bar of at least 1G <BR/>a running Linux operating system <BR/>Now that you have all this, it is time to prepare you USB bar do host the Ubuntu liveCD files.<BR/><BR/>2. Setting up the USB disk<BR/>2.1. Finding the device<BR/>In the first place, you need to plug your usb drive and check under which device it is associated. To find out the device, run: <BR/><BR/>$ sudo fdisk -l<BR/><BR/>On my system, the device appears as being /dev/sdb, I will therefore use /dev/sdb as a reference for this tutorial, please replace it accordingly to your system (might be sda, sdc ...).<BR/>Once you found your device, you are going to create the partitions. <BR/><BR/>Using the wrong device name might destroy your system partition, please double check<BR/><BR/>2.2. Making the partitions<BR/>Make sure every of your already mounted partition are unmounted:<BR/><BR/><BR/>$sudo umount /dev/sdb1<BR/><BR/>and then launch fdisk, a tool to edit partition under linux:<BR/><BR/>sudo fdisk /dev/sdb<BR/><BR/>We are going delete all the partition and then create 2 new partition: one fat partition of 750M which will host the files from the live CD iso, and the rest on another partition.<BR/><BR/>At fdisk prompt type d x where x is the partition number (you can simply type d if you only have one partition), then:<BR/><BR/>n to create a new partition <BR/>p to make it primary <BR/>1 so it is the first primary partition <BR/>Accept the default or type 1 to start from the first cylinder <BR/>+750M to make it 750 Meg big <BR/>a to toggle the partition active for boot <BR/>1 to choose the 1 partition <BR/>t to change the partition type <BR/>6 to set it to FAT16 <BR/>Now we have out first partition set up, let's create the second one:<BR/><BR/>n to create yet again a new partition <BR/>p to make it primary <BR/>2 to be the second partition <BR/>Accept the default by typing Enter <BR/>Accept the default to make your partition as big as possible <BR/>Finally, type w to write the change to your usb pendrive <BR/>Partitions are now created, let's format them.<BR/><BR/>2.3. Formatting the partitions<BR/>The first partition is going to be formated as a FAT filesystem of size 16 and we are going to attribute it the label "liveusb".<BR/><BR/>$ sudo mkfs.vfat -F 16 -n liveusb /dev/sdb1<BR/><BR/>The second partition is going to be of type ext2 with a blocksize of 4096 bytes and the label casper-rw. Mind that it has to be labeled as casper-rw otherwise the tutorial won't work!.<BR/><BR/>$ sudo mkfs.ext2 -b 4096 -L casper-rw /dev/sdb2<BR/><BR/>At this stage, our usb pendrive is ready to host the liveCD image. Now, let's copy the files to the usb bar.<BR/><BR/>How-to: Installing Ubuntu Linux on a usb pendrive -- page 2<BR/>How-to: Installing Ubuntu Linux on a usb pendrive -- page 2 ›<BR/>printer-friendly version | add new comment | | | | | | | | <BR/>HowTo | System Submitted by chantra on Wed, 2007-03-14 19:48.<BR/>Hi, its a very basic<BR/>Submitted by Anonymous (not verified) on Wed, 2007-06-06 17:34.<BR/>Hi,<BR/><BR/>its a very basic question from a newbie like me.<BR/>while performing "step 2.3 formatting", I get following problm - <BR/><BR/>my usb is mounted as /dev/sdc1 and now I have added two partition on it as said. but while formatting which device should I use. I am confused because in the article it says sdb1 and sdb2 which might be the partition in the USB for author. for me its /dev/sdc1p1 and /dev/sdc1p2. when I try to format by this name my host can not identify this and gives error like no such device.<BR/><BR/>please help soon<BR/><BR/>thanks<BR/><BR/>reply<BR/>You might want to use: fdisk -l<BR/>Submitted by chantra on Wed, 2007-06-06 19:35.<BR/>You might want to use:<BR/>$ sudo fdisk -l<BR/><BR/>This will output the different partition you have, then pick up the right one.<BR/>Debuntu<BR/><BR/>reply<BR/>linux off USB<BR/>Submitted by riyasmp on Sun, 2007-05-06 21:34.<BR/>hi guys<BR/><BR/>i am trying to get around a problem for the last one month. since i am not a computer expert most of the answers what i get is not sufficient. as somebody put it giving a link and asking to read manual is not helping me at all. i will summurise the issue and will ask you the perticular things i want to know.<BR/><BR/>i have got a sony vio laptop which doesnt support USB boot.i have got an external USb HDD on which i want to put any of the linux distro preferably ubuntu. i tried with fedora and ubuntu but did not work. some of the forums opined that you can get around this problem with installing GRUB on MBR. when i restart grub menu never comes up.<BR/><BR/>can any one help me with this issue please.i would be happy if u tell me with making a bootable CD to tackle it so that i can boot from my USB HDD.<BR/><BR/>thanks<BR/><BR/>reply<BR/>Persistent Partition<BR/>Submitted by tux on Tue, 2007-03-27 10:21.<BR/>Hello all,<BR/>Fantastic site, wish I had found it long ago!<BR/>I have followed the tutorial and it works well, one small problem that I wonder if anyone can shed some light upon.<BR/>When I boot up and select the persistent option, for the first couple of boots it works very well, on subsequent boots I get an error saying my session only lasted for 10 seconds, then I cannot log into my partition.<BR/>If I also remember correctly I think it also says something about an Xserver (though I could be wrong).<BR/>I have tried a couple of USB sticks now and they all have the same error.<BR/>If anyone could help I would be very grateful<BR/>Thank you.<BR/>Nic<BR/><BR/>In life, sometimes you are the lamp post and sometimes the dog<BR/><BR/>reply<BR/>custom settings and ~/.xsession-errors<BR/>Submitted by chantra on Tue, 2007-03-27 12:20.<BR/>The reason this usually happens might be due to some preferences files in your home dir.<BR/>Did you by any chance copy some user settings (~/.* files) from another install to your usb stick?<BR/>You might also find hints in the ~/.xsession-errors file<BR/>Hope this helps.<BR/>Debuntu<BR/><BR/>reply<BR/>Thank you<BR/>Submitted by tux on Wed, 2007-03-28 21:56.<BR/>Hello chantra<BR/>Thank you for your response I will take a look and see if i can spot anything.<BR/>Not wishing to sound dull, if I cannot log into my persistent area will I find the files by looking on the Casper RW partition?<BR/>Nic<BR/><BR/>In life, sometimes you are the lamp post and sometimes the dog<BR/><BR/>reply<BR/>Yep, it should be on your<BR/>Submitted by chantra on Thu, 2007-03-29 14:14.<BR/>Yep, it should be on your casper-rw.<BR/>that partition should have a /home folder, look into there.<BR/>Also, if you can't start a X session, you might want to type Ctrl-Alt-F1 and logging from the virtual console.<BR/>Debuntu<BR/><BR/>reply<BR/>RE:<BR/>Submitted by tux on Thu, 2007-03-29 21:44.<BR/>Ok I tried to install to a brand new USB stick, all went well for a few boots, then the error came up once more.<BR/>I tried to Ctrl+Alt+F1 and logging in that way.<BR/>I cannot remember what the entire error is, something about ICE. not being able to do something.<BR/>I also looked of for the /~x server file but could not find it, when logging in I saw it, something about /tmp/.xo-lock needing to be removed.<BR/>Think i am going to leave it for a while now.<BR/>Thank you very much for your help<BR/><BR/>In life, sometimes you are the lamp post and sometimes the dog<BR/><BR/>reply<BR/>Same Login Problem<BR/>Submitted by NukePodcaster (not verified) on Mon, 2007-04-02 21:58.<BR/>I'm wondering of you solved this problem because I'm getting the same login prompt asking me for login id and password, then session ends within 10 sec.<BR/><BR/>I can run my fantastic pen drive Ubuntu like a live CD, but not in persistent mode. My knowledge of Linux has not evolved to the point that I can troubleshoot this one on my own!<BR/><BR/>Anyone out there have a solution?<BR/><BR/>John<BR/><BR/>reply<BR/>Works!<BR/>Submitted by Marek Klein (not verified) on Sat, 2007-03-24 13:39.<BR/>Works great, many thanks for your How-to.<BR/><BR/>reply<BR/>Easier way<BR/>Submitted by donnie (not verified) on Fri, 2007-03-23 18:02.<BR/>I've been using Puppy Linux (www.puppyos.com) off a usb for years now. Boot off the live CD then there is a nice little 'wizard' that installs on the drive for you! For those not sure about booting off a liveCD, I was very wary at first, try VirtualBox (www.virtualbox.org) to run a linux distro from within your XP! You will begin to enjoy it very quickly. It is a great way to find which one you like best. Personally I found Ubuntu way to cumbersome.<BR/><BR/>reply<BR/>Very Cool<BR/>Submitted by TJ (not verified) on Tue, 2007-03-20 23:49.<BR/>Very cool. I've bookmarked for future reference. BTW, good chance this will make COTD on TekTag.com.<BR/><BR/>reply<BR/>How about from a Windoze machine?<BR/>Submitted by Anonymous (not verified) on Fri, 2007-03-16 22:42.<BR/>I want Ubuntu on a stick, but I don't have a working Linux box. Can you get me there from Windoze?<BR/><BR/>reply<BR/>You could try<BR/>Submitted by Anonymous (not verified) on Sat, 2007-03-17 14:10.<BR/>You could try www.pendrivelinux.com<BR/><BR/>They have step by step procedures from windows XP. Though u may have to use the Live CD first. But you dont need to have it installed though.<BR/><BR/>reply<BR/>From windows<BR/>Submitted by chantra on Sat, 2007-03-17 11:51.<BR/>I'm not much of a windows user, but I know that syslinux is available for windows.<BR/>1. You should be able to achieve this by formating the usb bar as described above, but for the ext2 partition.<BR/>2. Mount the CD/ISO with whichever utility under windows (winImage...)<BR/>3. Use syslinux.exe to make the first partition of your usb bar bootable<BR/>4. The casper-rw might be created after a first boot from the usb key in normal mode.<BR/><BR/>I believe this is roughly how you might be able to achieve the same thing from windows.<BR/>Debuntu<BR/><BR/>reply<BR/>only if you spell it right.<BR/>Submitted by Anonymous (not verified) on Fri, 2007-03-16 23:34.<BR/>no one likes it when you spell it windoze. you sound like a dumbass and its not cool. its w-i-n-d-o-w-s, just do it right.<BR/>its also MS not M$ and not OMG WROST CMOPNY EVA!<BR/><BR/>reply<BR/>Get a Life....<BR/>Submitted by sammiam (not verified) on Fri, 2007-04-13 18:30.<BR/>WINDOZ is a M$ product... get a LIFE !<BR/><BR/>reply<BR/>./<BR/>Submitted by Anonymous (not verified) on Sun, 2007-03-18 02:17.<BR/>Exactly what I was thinking.<BR/><BR/>reply<BR/>sorry bud, but you're the<BR/>Submitted by willie (not verified) on Sat, 2007-03-17 17:05.<BR/>sorry bud, but you're the azz for pointing out that windoze isn't spelled windoze...<BR/><BR/>MSFT == Software From Satan™<BR/><BR/>reply<BR/>Please stop this silly<BR/>Submitted by chantra on Sat, 2007-03-17 18:47.<BR/>Please stop this silly war.<BR/>There is no point in arguing about this and this is off topic.<BR/>cheers<BR/>Debuntu<BR/><BR/>reply<BR/>You know, I bet if I googled<BR/>Submitted by Anonymous (not verified) on Sat, 2007-03-17 05:13.<BR/>You know, I bet if I googled "Ubuntu from a flash key \ pen drive \ anything else you want to call it" it would probably come up as the first result... but Im lazy.<BR/><BR/>Anybody want to spill the beans or a link?<BR/><BR/>reply<BR/>thank you, bill<BR/>Submitted by Anonymous (not verified) on Sat, 2007-03-17 02:49.<BR/>thank you, bill gates.<BR/><BR/>windoze still sucks.<BR/><BR/>reply<BR/>New to Linux, Ubuntu..etc.<BR/>Submitted by terry field on Tue, 2007-03-20 20:33.<BR/>I am brand new to any Linux use. I wanted to try it since I've heard so much about it. BUT, now that my very first experience with it is some person mouthing off about "WINDOZE SUCKS" I am totally turning away form this.<BR/><BR/>ByeKarl L. Gechlikhttps://www.blogger.com/profile/08319210063068776291noreply@blogger.comtag:blogger.com,1999:blog-35119159.post-71538711848910324732007-06-21T23:58:00.000-04:002007-06-21T23:58:00.000-04:00Eric I'm sorry I just emailed you the solution... ...Eric I'm sorry I just emailed you the solution... I dont know what to tell you. No one replied to you :( If it stays stagnant I will post the answer in the AM.Karl L. Gechlikhttps://www.blogger.com/profile/08319210063068776291noreply@blogger.com