My windows xp laptop…3 years old…it keeps on dying. I am going broke and just sick of paying my geek friend to wipe and reinstall the os.
So recently it just would not boot up again. Sigh. So I got this brilliant idea to play with a linux Live CD and see if it worked. I just want to be able to get some of my vital files and maybe get on the Internet…sheesh.
So I burn like 6 different live cd’s. (Knoppix, Fedora, Puppy, …ok maybe only 4…) Then I take them home, pop them in my cd drive and boot. Bam I have a fully functioning operating system running on my laptop!! Woohoo. I grab the critical files I needed off my hard drive (all my karaoke songs!) …and then I am like…hey…i wonder if I can connect to my wireless network?? Turns out I could. It just took the following 12 easy steps:
[ol]
[li]Find the linux network setup tool. I used Puppy so that was easy. [/li][li]Scan for my wireless network…easy…there it is![/li][li]Figure out how to enter my WEP Key…is it 40 bit or 128? Who knows… Try them both… …and TAADAAA! The wireless nic still didn’t connect to my access point. [/li][li]Get frustrated and see if you can get wireless networking going in one of the other 4 linux live CD’s easily? Maybe it will just work? and…Taadaaa one of these has to work right?!! No. None of them worked. Not that easy. Sigh and go to bed.[/li][li](The next night) Start researching how to troubleshoot wireless networking in Linux. Learn all about iwconfig, iwlist, and all those super easy command line tools that make Linux great! Finally… after manually setting all the parameters for my wireless nic…Taadaaa! Come to the realization that something is wrong. Something just aint right. [/li][li]Finally come to the conclusion that my wireless nic uses something called a legacy b43 driver for a particular type of Broadcom wireless chips. And to make a long story short…after hours of testing and wierd commands and linux forum reading…turns out…I need to update the firmware on my chip! HA How hard can that be?[/li][li] You see if I am running Opensuse i type sudo /usr/sbin/install_bcm43xx_firmware… or if i am in UBuntu i type… sudo apt-get install b43-fwcutter I was in Fedora at one point doing this so I had to use a totally different method… After about 3 hours of typing in all sorts of crazy commands and figuring out how the hell to type the correct path the the file I wanted my b43 cutter to extract the inf from and somehow put it on my nic…i think i did it. Not totally sure…because the final message I got was like “unable to create folder” But I saw some other guy also got that message and it worked…so Hell…i guess it worked…everything else looked good… Sigh. Finally. I did it. I updated the firmware for the b43 on my damned old broadcom NIC. Tadaaaa! Wireless nic still didn’t connect to my access point. [/li][li]Well… I had a new theory. A couple posts on a couple of those forums said that the live cd was the problem. I needed to boot from a writeable medium. Well…what the hell. I really liked the idea of booting linux from a flash drive…and i did have one…so I decided to install Puppy Linux to my flash drive. How hard could that be?[/li][li]Run the Puppy universal installer and install puppy on the flash drive. You just follow the wizard, reboot, and Taaadaaaaaa! well… you guessed it. no it did not work. I tried to boot from the usb flash drive and it did not work. My system said “operating system missing.” hmmm[/li][li] (Day 3) Thank god I am divorced so I can spend hours every night working on this kind of awesome shit! Who needs laundry, dirty dishes, and sex twice a month! Ok…why the hell is my usb puppy linux not working??? more research… ahh of course… my Master Boot Record on my USB is not working right…searching searching searching…aaahhhaaa! Solution. I just need something called GRUB to fiix the MBR on my USB! Oh I should have known! What an idiot I am![/li][li]Use GRUB to install a special Master Boot Record to my USB flash puppy linux disk…or something. I don’t know I just did all these steps:[/li]
If your BIOS supports USB, you can make a bootable flash drive using GRUB.
Be aware that some BIOS’s will identify your flash drive as an additional
hard drive, not a USB device. You may have to search through your boot
priority list to find it.
-
Connect your flash drive. Run a partition manager like GParted and verify
that its boot flag is set. Or type the command: fdisk -lSome flash drives come formatted in “superfloppy” mode. This means that the
device has no partition table like a regular hard drive, so it will not work
with GRUB in its current state. If you have one of these drives, you will
see an error icon when you check it in Gparted. Go to the Updates section
at the end of this document for more information. -
Mount the flash drive and copy the three core Puppy files from the Live CD -
vmlinuz, initrd.gz and pupxxx.sfs. Older versions of Puppy also used a file
named zdrvxxx.sfs. -
Inside the pup2usb download folder is a subfolder named “boot”. Drag it onto
the flash drive. -
Open the “boot” folder. Note that it contains a dummy file named “marker”.
Then open the “grub” subfolder and check out the “menu.lst” file. Observe that the
“root” command refers to (hd0,0) which would ordinarily be your main hard drive.
When your machine boots, the BIOS will recognize the flash device as the first
available drive and report this to GRUB. -
Unmount the flash drive but leave it connected.
-
Go to the console and type: grub
This loads the GRUB emulator.
At the > prompt, type: find /boot/marker
GRUB will search for the marker file on the flash drive and will probably
locate it at (hd1,0). -
If GRUB cannot find the marker file, do NOT continue. You have done something
wrong, or GRUB is not compatible with your device. -
While still at the GRUB prompt, type the three commands below:
(Do NOT accidentally use hd0. This will put GRUB on the MBR of your hard
drive and erase your Windows bootloader.) <----HEY THANKS MAN YOU DIDN’T NEED TO TELL ME THIS! ISN’T IT FLIPPING OBVIOUS A LITTLE TYPO HERE COULD SHITBLANKET YOUR ENTIRE COMPUTER??!root (hdx,0) (where x is the drive number that GRUB reported in Step 6)
setup (hdx) (there should be some messages indicating success)
quit -
Reboot off the flash drive.
[li]And then i rebooted…and TAADAAAA! IT WORKED! I BOOTED FROM MY USB FLASH DRIVE! So I did accomplish something. So next I tested my wireless nic and… IT FARKING WORKED!!![/li][/ol]
Almost too easy. I don’t know why everyone doesn’t switch to Linux today. I wrote this entire post on my newly wireless capable super puppy linux laptop.
i am just afraid to reboot because i am not sure if my wireless settings will save in linux and i will easily get on the Internet again…but that is a tale for another day…