Passa ai contenuti principali

Install Ubuntu on a USB Pen Drive

Thanks to this site I understood a method to install Ubuntu on a USB Pen Drive.
However, I have not tested it yet.
I made cut and paste from that site:

A couple of assumptions to take into account when going through this manual:

  • My computer (Dell D820 laptop) has 1 internal disk, devided into 3 partitions (dell utility - windows - Ubuntu 8.04)
  • Just one USB device (in my case a 250GB harddisk
  • BIOS configured to enable boot from internal HDD, CD/DVD and USB Storage device

(I didn’t take screenshots, so I will be explaining a lot about the screens… It looks like a lot of work, but trust me: it is not, and it really is easy:-)

  1. Insert the LiveCD into your computer;
  2. Connect your USB device;
  3. Boot your computer from the liveCD;
  4. Once Ubuntu is started, go to System - Administration - Partition Manager
    This will open the Partion Editor. Select your USB device and delete all partitions on it. Click Apply and exit Partition Editor;
  5. Double Click the Install Icon. This will start the Installer;
  6. The Welcome Screen is shown. Choose your language and click Forward;
  7. Select your Time Zone and click Forward;
  8. Choose your Keyboard Layout and click Forward;
  9. The partitioner will be started, and you will be given the choice where to install Ubuntu. Choose Guided - Use entire disk, selecting your USB device (this will most likely be /dev/sdb, don’t choose /dev/sdb1!);
  10. The next sceen you will give your username/password information. Provide the required info and hit Forward;
  11. If there is anything to migrate from other installations on your computer (most likely not), do whatever you want, and click Forward;
  12. The next screen is important - It is titled: “Ready to Install”. Be careful here: before clicking on Forward, make sure you click on the “Advanced” Button!
    This will open a new screen, giving you the option whether and where to install the bootloader. Select your USB device (in my case it was /dev/sdb) to install the bootloader to;
    Exit this screen and click on Forward in the “Ready to Install” screen, which will be shown;
  13. The installation will be started now. Just be patient, grab a cup of coffee and come back 15 minutes later, your installation will be more or less finished by then.

So you have finished the installation. However, when you will be restarting your system from USB, you will find out that the partition you just installed Ubuntu to cannot be mounted.
Here comes the trick:

  1. Once the installation is finished, reboot your PC (this is the safest) from your LiveCD, with your USB device connected;
  2. Once started, open up a terminal (Applications - Accessories - Terminal);
  3. In the Terminal, type: sudo -i (which will give you root privileges, so be careful from now on!);
  4. Change directories to /media/disk/boot/grub - This will take you to the “/boot/grub” directory on the USB device;
  5. open menu.lst with vi (make a backup first!)
  6. Go to line 130 (or somewhere in that area).
    You will find a line looking like:
    ## ## End Default options ##
    And underneath it you will find three entries pointing to your Ubuntu you just installed:
    title Ubuntu 8.04, kernel 2.6.24-16-generic
    root (hd1,0)
    kernel /boot/vmlinuz………
    initrd /boot/initrd…….
    quiet
    (the above 5 lines repeat 3 times with slight differences)
  7. The magic trick is to change (hd1,0) into (hd0,0) for all these three entries.
    Why? Booting from USB device makes your USB device hd0, in stead of hd1 at time of installation.
  8. Search for the line starting with “# groot=(hd1,0)” and change (hd1,0) to (hd0,0) - Don’t delete the # at te beginning of this line!
  9. Once you did this, you can optionally remove the remaining of the file
    (everything underneath ### END DEBIAN AUTOMATIC KERNELS LIST);
  10. Save the file, make sure it is owned by root:ubuntu (chgrp ubuntu menu.* will do)
  11. Edit device.map (in the same directory) and change the mapping of hd0 to /dev/sdb.
  12. Reboot your machine, from USB, choose the Ubuntu installation from the Boot Loader and you are one happy person.

Post popolari in questo blog

Excel 2007: Histograms with different textures

Select the series in the histogram Open Visual Basic terminal by typing ALT + F11 Open the Visual Basic editor by typing CTRL + G In the Immediate Window, type the following and press enter: selection.fill.patterned (4) I would like to thank Diego M. Oppenheimer who wrote this wonderful guide .

Come unire piu' file pdf usando MAC OS

To join two or more pdf files together using Preview (the standard pdf viewer in OS X) simply open a pdf in preview, open the thumbnail view (Shift-⌘-D), and then drag a second pdf file ON TOP OF an existing page thumbnail. The two documents will merge into one. Then save the new combined file. Read on for step-by-step instructions. Combining pdf documents in OSX is easy. Leopard and Snow Leopard have the ability to move pdf pages around and even merge two pdf documents together. It’s built right in to OS X – you don’t need a third party program to do it! SUMMARY: To merge the two PDF files you need to drag the new pdf ON TOP OF an existing thumbnail. If you drag it into the sidebar but not on top of an existing page the new file will be added as an external link – not merged into the original pdf document. See these two pictures below to visualise the difference. Questo articolo e' stato copiato dal sito: http://macintoshhowto.com/leopard/how-to-merge-pdf-files-with-preview-in...