<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Geek Tips &#187; Linux</title>
	<atom:link href="http://tips.mistergeek.com/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://tips.mistergeek.com</link>
	<description>making IT as simple as ABC</description>
	<lastBuildDate>Mon, 16 Jan 2012 15:23:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Repair Windows MBR with Ubuntu LiveCD</title>
		<link>http://tips.mistergeek.com/87</link>
		<comments>http://tips.mistergeek.com/87#comments</comments>
		<pubDate>Sun, 03 Jul 2011 08:54:51 +0000</pubDate>
		<dc:creator>benriley</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[master boot record]]></category>
		<category><![CDATA[mbr]]></category>
		<category><![CDATA[recover]]></category>
		<category><![CDATA[repair]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://tips.mistergeek.com/?p=87</guid>
		<description><![CDATA[If something happens to your Windows Master Boot Record (MBR), here is a very quick and easy way to restore it with nothing but an Ubuntu LiveCD WARNING: You are working with your disks in a very direct manner throughout this process. As always, having thorough and recent backups is essential. Boot into your Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<div align="justify"><span style="font-family:arial;font-size:12;">If something happens to your Windows Master Boot Record (MBR), here is a very quick and easy way to restore it with nothing but an Ubuntu LiveCD</p>
<p><b>WARNING</b>: You are working with your disks in a very direct manner throughout this process. As always, having thorough and recent backups is essential.
<ol>
<li>Boot into your Ubuntu LiveCD on the offending machine.</li>
<li>Once Ubuntu has started up, go to <i>System</i> > <i>Administration</i> > <i>Software Sources</i> and enable the <i>Universal Repository</i>.</li>
<li>Open a terminal session (<i>Applications</i> > <i>Accessories</i> > <i>Terminal</i>) and type <b>sudo apt-get install ms-sys</b></li>
<li>Now you need to figure out which partition is the one hosting your Windows operating system. Start by typing <b>sudo fdisk -l</b> in to Terminal window.</li>
<li>From the resultant list of available partitions, you are looking for a partition that says something like:
<p><i>/dev/sda1 1 8619 94723115 81 NTFS</i></p>
<p>The two important bits are the <u>/dev/sda1</u> which is the partition label and the <u>NTFS</u> which tells us it is a Windows formatted partition.  So, in this example, your Windows partition exists on the drive sda and it is at partition 1.</li>
<li>We nned to fix the MBR on /dev/sda so type <b>sudo ms-sys -m /dev/sda</b>. You will need to change the <i>sda</i> text if your results from step 4 are different.</li>
<li>Remove the LiveCD from the CD drive and reboot the machine. Windows should come back to you.</li>
</ol>
<p>Of course, you could do this by inserting the correct Windows CD and booting into repair mode but the Ubuntu way doesn&#8217;t care about versions and is actually a bit faster.</span></div>
]]></content:encoded>
			<wfw:commentRss>http://tips.mistergeek.com/87/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Run Linux from a USB flash drive</title>
		<link>http://tips.mistergeek.com/44</link>
		<comments>http://tips.mistergeek.com/44#comments</comments>
		<pubDate>Fri, 01 Jul 2011 10:24:04 +0000</pubDate>
		<dc:creator>benriley</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[flash drive]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://tips.mistergeek.com/?p=44</guid>
		<description><![CDATA[Linux is a relatively lightweight operating system and can be run quite effectively from a USB flash drive. This can be very useful when trying to retrieve files from a PC with a corrupt OS or boot sector. Most PCs manufactured in the last couple of years will allow you to boot from a USB [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="font-size: 12px; font-family: arial;">Linux is a relatively lightweight operating system and can be run quite effectively from a USB flash drive. This can be very useful when trying to retrieve files from a PC with a corrupt OS or boot sector. Most PCs manufactured in the last couple of years will allow you to boot from a USB device but you may have to enter the computer&#8217;s BIOS to enable this functionality. This tutorial enables you to install, boot and run Ubuntu Linux 7.10 <em>Gutsy Gibbon</em> from a USB flash drive. In addition to installing Ubuntu to the USB device and then booting from it, this also enables you to automatically save your changes and settings back to the flash drive and restore them on each boot using a second persistent partition. </span></p>
<p style="text-align: justify;"><span style="font-size: 12px; font-family: arial;">You will need: </span></p>
<ol>
<li>Ubuntu 7.10 ISO image</li>
<li>DVD Burner</li>
<li>Blank writeable DVD</li>
<li>2GB USB flash drive</li>
<li>The computer on which you are working must have internet access</li>
</ol>
<p style="text-align: justify;"><span style="font-size: 12px; font-family: arial;">Throughout the following instructions, replace <strong>X</strong> with your drive letter: </span></p>
<ol>
<li>Grab the <a href="http://releases.ubuntu.com/7.10/ubuntu-7.10-desktop-i386.iso" target="_blank">Ubuntu 7.10 ISO image</a> and burn it to a DVD</li>
<li>Insert the CD and your USB flash drive</li>
<li>Reboot your computer into Ubuntu from the CD</li>
<li>Open a terminal window and type <strong>sudo su</strong></li>
<li>Type <strong>fdisk -l</strong> to list available partitions. Note which device is your flash drive (example: <em>/dev/sda</em>). Throughout these instructions, replace <strong>x</strong> with your flash drive letter. For example, if your flash drive is <em>sdb</em>, replace <strong>x</strong> with <strong>b</strong>.</li>
<li>Type <strong>umount /dev/sdx1</strong></li>
<li>Type <strong>fdisk /dev/sdx</strong></li>
<li>Type <strong>p</strong> to show the existing partition and <strong>d</strong> to delete it</li>
<li>Type <strong>p</strong> again to show any remaining partitions (if partitions exist, repeat the previous step)</li>
<li>Type <strong>n</strong> to make a new partition</li>
<li>type <strong>p</strong> for primary partition</li>
<li>type <strong>1</strong> to make this the first partition</li>
<li>Hit <strong>enter</strong> to use the default 1st cylinder</li>
<li>Type <strong>+750M</strong> to set the partition size</li>
<li>Type <strong>a</strong> to make this partition active</li>
<li>Type <strong>1</strong> to select partition 1</li>
<li>Type <strong>t</strong> to change the partition filesystem</li>
<li>Type <strong>6</strong> to select the fat16 file</li>
<li>Type <strong>n</strong> to make another new partition</li>
<li>Type <strong>p</strong> for primary partition</li>
<li>Type <strong>2</strong> to make this the second partition</li>
<li>Hit <strong>enter</strong> to use the default cylinder</li>
<li>Hit <strong>enter</strong> again to use the default last cylinder</li>
<li>Type <strong>w</strong> to write the new partition table</li>
<li>Type <strong>umount /dev/sdx1</strong> to ensure the 1st partition is unmounted</li>
<li>Type <strong>mkfs.vfat -F 16 -n ubuntu710 /dev/sdx1</strong> to format the first partition</li>
<li>Type <strong>umount /dev/sdx2</strong> just to ensure the 2nd partition is unmounted</li>
<li>Type <strong>mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2</strong> to format the second partition</li>
<li>Remove and re-insert your USB flash drive</li>
<li>Type <strong>apt-get update</strong></li>
<li>Type <strong>apt-get install syslinux mtools</strong></li>
<li>Type <strong>syslinux -sf /dev/sdx1</strong></li>
<li>Type <strong>cd /cdrom</strong></li>
<li>Type <strong>cp -rf casper disctree dists install pics pool preseed .disk isolinux/* md5sum.txt README.diskdefines ubuntu.ico casper/vmlinuz casper/initrd.gz /media/ubuntu710/</strong> (ignore any <em>cannot create symbolic link</em> errors)</li>
<li>Type <strong>cd /home/ubuntu</strong></li>
<li>Type <strong>wget pendrivelinux.com/downloads/U710fix.zip</strong></li>
<li>Type <strong>unzip -o -d /media/ubuntu710/ U710fix.zip</strong></li>
<li>Restart your computer, set your BIOS or Boot Menu to boot from the USB device and reboot again.</li>
</ol>
<p style="text-align: justify;"><span style="font-size: 12px; font-family: arial;">You will now have a USB flash drive running Ubuntu 7.10 <em>Gutsy Gibbon</em> that will automatically save your changes, restoring them on boot. If you have trouble getting Ubuntu to boot, your memory stick may have a corrupted Master Boot Record (MBR). To repair the MBR of your USB device, at the terminal type <strong>sudo apt-get install lilo</strong> followed by <strong>lilo -M /dev/sdx</strong> (again replacing x with the letter of your flash device).</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://tips.mistergeek.com/44/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

