All proceeds from Ad Clicks goes to the author of this site.

 

Wednesday, November 02, 2005

Grub on a stick

This was posted on the OpenSolaris discuss list, it explains how to install grub on a usb stick in Solaris, figure I would archive it here so I can find it later when I need it, also it may help someone else who knows….



---------- Forwarded message ----------
From: Magnus Forsberg
To: opensolaris-discuss@HIDDEN
Date: Wed, 24 Aug 2005 07:22:16 -0700 (PDT)
Subject: [osol-discuss] HOWTO: Installing GRUB on USB stick
Installing GRUB on USB stick
--------------------------------

tested on Solaris Express Community Release b20

I wrote this guide for installing GRUB on my USB stick. Maybe someone will find it useful. Comments or suggestions for improvement are welcome.

The following steps will install GRUB on a USB stick. If the USB stick is inserted the GRUB menu will appear, if not XP will boot automatically. Remember to configure your BIOS to boot from USB.

Stop Volume Management
----------------------
# svcadm disable -t system/filesystem/volfs

Find USB stick paths
--------------------
# rmformat
...
2. Logical Node: /dev/rdsk/c2t0d0p0
Physical Node: /pci@0,0/pci1014,52e@1d,7/storage@4/disk@0,0
Connected Device: SanDisk Cruzer Micro 0.2
Device Type: Removable
Bus: USB
Size: 977.5 MB
Label:
Access permissions:
...

Create partitions on USB stick
------------------------------
# fdisk /dev/rdsk/c2t0d0p0
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris2 1 97 97 10
2 Win95 FAT32 98 976 879 90

Create FAT-32 filesystem on USB partition 2
-------------------------------------------
# mkfs -F pcfs -o fat=32 /dev/rdsk/c2t0d0p0:c
Construct a new FAT file system on /dev/rdsk/c2t0d0p0:c: (y/n)? y

Create slice for /boot
----------------------
# format -e
1. c2t0d0
/pci@0,0/pci1014,52e@1d,7/storage@4/disk@0,0
...
Part Tag Flag Cylinders Size Blocks
0 root wm 1 - 94 94.00MB (94/0/0) 192512
...

Create UFS filesystem on /boot slice
------------------------------------
# newfs -v /dev/rdsk/c2t0d0s0

Install Master Boot program (is this step actually needed)?
-----------------------------------------------------------
# fdisk -b /usr/lib/fs/ufs/mboot -n /dev/rdsk/c2t0d0p0

Install GRUB on USB stick
-------------------------
bash-3.00# installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c2t0d0s0
Updating master boot sector destroys existing boot managers (if any).
continue (y/n)?y
stage1 written to partition 0 sector 0 (abs 2048)
stage2 written to to partition 0, 228 sectors starting 50 (abs 2098)
stage1 written to master boot sector

Create GRUB boot directories
-----------------------------
# mount /dev/rdsk/c2t0d0s0 /mnt/usb
# mkdir -p /mnt/usb/boot/grub

Copy GRUB files to USB stick
----------------------------
# cd /boot/grub
# find . -print -depth | cpio -pdumv /mnt/usb/boot/grub

Mounting the FAT-32 partition
-----------------------------
# mount -F pcfs /dev/dsk/c2t0d0p2 /mnt/fat

Laptop internal HDD Dual Boot partitioning
------------------------------------------
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active IFS: NTFS 0 13004 13005 34 (windows xp)
2 Solaris2 13005 18084 5080 13 (main solaris 11)
3 Win95 FAT32 18085 18859 775 2 (shared storage)

Update GRUB boot menu (hd1 is internal HDD0 where Solaris is installed)
-----------------------------------------------------------------------
# cat /mnt/usb/boot/grub/menu.lst
...
title Solaris 11
root (hd1,1,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive
...
title Windows XP Professional
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1
...

22 Comments:

Blogger Michael said...

Very cool. However, I'm having a problem with Grub not coming up after installing Fedora on a system with Windows XP. Is there a way to install Grub on a usb stick from Windows?

11:01 AM  
Blogger uiyui said...

Day night,gold für wow the moon or on world of warcraft gold the tree,cheap wow gold Hao Jie pouring down the moonlight, as if accompanied by Xiaotu Feifei enter sweet dreams. In the dream, a dream Feifei about his sister to the moon night. Will open the door,wow gold kaufen go down the moon sister.mesos Xiaochanzouxia take is that they did not see the moon sister. At that time, anchored at the tree on the moon sister saw Xiaochan, they yelled loudly: "Feifei, Feifei, I tree, the tree, I." Xiaochan sit at the moon to his sister, who Daizhaoxiaochan came wow geld to the beautiful pond. Only, water,maple story mesos everywhere in the lush leaves and beautiful flowers.maple story items A frog squatting lotus leaf, see Xiaochan, surprised and said: "Xiaochan,wow gold farmen you can even sit on the moon. You simply It's amazing!maple story money I am sure that you are the first animals to the moon by the animal. good,wow leveling I envy you!Maple Story Accounts "Xiaotu listening, happy to smile. Then, with the moon sister Xiaotu to its home.powerlevel Only, the moon sister's home stars are everywhere. The eyes of a star a Zha Zha,world of warcraft power leveling like Xiaotu greeted the arrival of a mouth, like: "Xiaochan, Hello, we at the Moon Palace waiting for your arrival."maple story powerleveling Xiaotu listened,archlord gold smiling all of the 1930. Finally, the moon Xiaotu sister back home, also pleased to Xiaochan said goodbye. Xiaochan also pleased to the moon sister said: "The Moon sister Goodbye! You bring me to this night. Dainiqu next time I visit some of ourforests."

12:31 AM  
Blogger jislsnhd said...

It is the holic gold which makes me very happy these days, my brother says holic money is his favorite games gold he likes, he usually holic online gold to start his game and most of the time he will win the cheap holic gold back and give me some holic online money to play the game.

4:05 AM  
Blogger 筱娅 said...

Have you heared about a game which you need use kal geons to play, and you can also borrow kal gold from other players? But you can buy kal online geons, or you will lose the choice if you do not have kal online gold. If you get kalonline Geons, you can continue this game.

3:00 AM  
Blogger 筱娅 said...

Have you heared about a game which you need use shadow of legend Gold to play, and you can also borrow sol gold from other players? But you can buy shadow of legend Gold, or you will lose the choice if you do not have cheap shadow of legend Gold. If you get shadow of legend Gold money, you can continue this game.

3:01 AM  
Blogger 筱娅 said...

Have you heared about a game which you need use Tales Of Pirates gold to play, and you can also borrow Tales Of Pirates money from other players? But you can buy Tales Of Pirates Gold, or you will lose the choice if you do not have cheap Tales Of Pirates gold. If you get it, you can continue this game.

3:02 AM  
Blogger 陈凯燕 said...

Do you know 2moons dil? I like it. My brother often goes to the internet bar to buy 2moons gold and play it. After school, He likes playing games using these 2moon dil with his friend. I think that it not only costs much money but also spend much time. One day, he give me many buy 2moons dil and play the game with me. I came to the bar following him and found cheap 2moons gold was so cheap.

4:40 AM  
Blogger 陈凯燕 said...

Do you know Asda Story gold? I like it. My brother often go to the internet bar to buy Asda Story money and play it. After school, He likes playing games using these buy Asda Story Gold with his friend. I think that it not only costs much money but also spend much time. One day, he give me manycheap Asda Story gold and play the game with me.

4:40 AM  
Blogger 陈凯燕 said...

Do you know cabal online alz? I like it. My brother often goes to the internet bar to buy cabal alz and play it. After school, He likes playing games using these cabal gold with his friend. I do not like to play it. Because I think that it not only costs much money but also spend much time. One day, he give me many cabal money and play the game with me. I came to the bar following him and found buy cabal alz was so cheap.

4:41 AM  
Blogger jewelry said...

wholesale jewelry ,AYpearl.com supply vast kinds of styles fashion jewelry,mainly engage in promote handmade jewelry and wholesale handmade jewelry,such as wholesale pearl wholesale crystal,wholesale gemstone,wholesale costume jewelry,also wholesale fashion jewelry like wholesale swarovski crystal,wholesale beads,wholesale turquoise,wholesale coral,wholesale costume jewelry ,shell jewelry,costume jewelry and discount jewelry, jewelry wholesale, just on AYpearl jewelry store.fashion jewelry

12:35 AM  
Blogger milf said...

dessicant air dryerpediatric asthmaasthma specialistasthma children specialistcarpet cleaning dallas txcarpet cleaners dallascarpet cleaning dallas

vero beach vacationvero beach vacationsbeach vacation homes veroms beach vacationsms beach vacationms beach condosmaui beach vacationmaui beach vacationsmaui beach clubbeach vacationsyour beach vacationscheap beach vacations

bob hairstylebob haircutsbob layeredpob hairstylebobbedclassic bobCare for Curly HairTips for Curly Haircurly hair12r 22.5 best pricetires truck bustires 12r 22.5

washington new housenew house houstonnew house san antonionew house ventura

3:54 PM  
Blogger milf said...

new houston house houston house txstains removal dyestains removal clothesstains removalteeth whiteningteeth whiteningbright teeth

jennifer grey nosejennifer nose jobscalebrities nose jobsWomen with Big NosesWomen hairstylesBig Nose Women, hairstyles

3:55 PM  
Blogger milf said...

black mold exposureblack mold symptoms of exposurewrought iron garden gatesiron garden gates find them herefine thin hair hairstylessearch hair styles for fine thin hairnight vision binocularsbuy night vision binocularslipitor reactionslipitor allergic reactionsluxury beach resort in the philippines

afordable beach resorts in the philippineshomeopathy for eczema.baby eczema.save big with great mineral makeup bargainsmineral makeup wholesalersprodam iphone Apple prodam iphone prahacect iphone manualmanual for P 168 iphonefero 52 binocularsnight vision Fero 52 binocularsThe best night vision binoculars here

night vision binoculars bargainsfree photo albums computer programsfree software to make photo albumsfree tax formsprintable tax forms for free craftmatic air bedcraftmatic air bed adjustable info hereboyd air bedboyd night air bed lowest price

3:55 PM  
Blogger milf said...

find air beds in wisconsinbest air beds in wisconsincloud air beds

best cloud inflatable air bedssealy air beds portableportables air bedsrv luggage racksaluminum made rv luggage racksair bed raisedbest form raised air bedsbed air informercialsbest informercials bed airmattress sized air beds

bestair bed mattress antique doorknobsantique doorknob identification tipsdvd player troubleshootingtroubleshooting with the dvd playerflat panel television lcd vs plasmaflat panel lcd television versus plasma pic the bestadjustable bed air foam The best bed air foam

hoof prints antique equestrian printsantique hoof prints equestrian printsBuy air bedadjustablebuy the best adjustable air bedsair beds canadian storesCanadian stores for air beds

migraine causemigraine treatments floridaflorida headache clinicdrying dessicantair drying dessicant

3:55 PM  
Blogger products said...

China Wholesale has been described as the world’s factory. This phenomenom is typified by the rise ofbusiness. Incredible range of products available with China Wholesalers “Low Price and High Quality” not only reaches directly to their target clients worldwide but also ensures that wholesale from china from China means margins you cannot find elsewhere and buy products wholesaleChina Wholesale will skyroket your profits.wedding dressescheap naruto cosplayanime cosplay

9:03 PM  
Blogger products said...

Women’s nike tn Shox Rivalry est le modèle féminin le plus tendance de baskets pour le sport. tn chaussuresConcernant la semelle :Cheap Brand Jeans Shop - True Religion Jeans nike shoes & Puma Shoes Online- tn nike,Diesel Jeans le caoutchouc extérieur, l’EVA intermédiaire Levis Jeanset le textile intérieur s’associent pour attribuer à la.ed hardy shirts pretty fitCharlestoncheap columbia jackets. turned a pair of double plays to do the trick.Lacoste Polo Shirts, puma basket, Burberry Polo Shirts.wholesale Lacoste polo shirts and cheap polo shirtswith great price.Thank you so much!!cheap polo shirts men'ssweate,gillette mach3 razor bladesfor men.As for Cheap Evisu JeansCheap Armani Jeanspolo shirtsPuma shoes

9:03 PM  
Blogger Peejay Li said...

Your page is very wonderful and cool. I has been attracted by it and I agree with you and support you.
Nike Tn Chaussures
requin tn
nike shox
puma shoes
puma CAT
puma basket
puma speed
baskets puma
puma sport
puma femmes
puma shox r4 torch
nike air max requin
nike shox r3
shox rival r3
tn plus
chaussures shox
nike shox r4 torch
air max tn requin
nike tn femme
pas cher nike
tn chaussures
nike rift
nike shox nz
chaussures shox
nike shox rival

10:23 PM  
Blogger bing shen said...

1
http://www.12hot.com

1)
polo shirts

polo shirts supplies.wholesale polo shirts with great price. 12hot.com offers lot of 10 polo shirts and lot of 20 polo shirts. 12hot.com offers classic fit polo shirts.polo clothing All our shirts made in original factory.

2)
spyder jackets

12hot.com offers spyder jackets :
MENS' Spyder white&red REMOVEABLE CAP and SLEEVES SKI SUIT JACK
MEN'S SPYDER GRAY REMOVEABLE CAP SLEEVES SKI SUIT
MEN'S SPYDER BLACK REMOVEABLE CAP SLEEVES SKI SUIT JACKET
MEN'S SPYDER BLUE REMOVEABLE CAP SLEEVES SKI SUIT Jacket
MEN'S SPYDER WHITE REMOVABLE CAP&SLEEVES SKI SUIT Jacket
MEN'S SPYDER RED NEW STYLE SKI SUIT Jacket

3)
north face jackets

north face jackets,north face jacket. Here is a black The North Face Women's mountain jacket .

4)
Women's Sky Blue The North Face Original Twinset Parka/Jacket

This is a style of sky blue The Women's North Face outdoor and mountaineering apparel .The North Face offers advanced fabrics and technologies for all-weather performance and protection during demanding outdoor action. The design adds darts at the elbow, allowing for easier arm movement and a full range of motion. The internal wind skirt effectively keeps snow and wind out.
100% Omni-Tech!
100% SATISFIDE YOU!

2
http://www.polocart.com

1)
polo shirts

new polo shirts,polo shirts,polo shirt,Ralph Lauren polo shirts,polos .Paypal payment. we have best price.Welcome to wholesale Lacoste polo shirts

3
http://www.polosales.com/

1)
cheap polo shirts

Buy cheap polo shirts,polo shirt,lacoste polo shirts,ralph lauren polo shirts,wholesale polo shirts

4
http://www.superpolos.com/

1)
Lacoste Polo Shirts

Retail and Wholesale Lacoste Polo Shirts Cheap Lacoste Polo Shirts Polo Shirts Cheap Polo Shirts at cheap price with PayPal free shipping



6
http://www.bootsboots.co.uk

ugg boots

UGG short Boots
UGG 5245 tall Boots
UGG 5325 classic Boots
UGG 5359 womens Boots
UGG 5815 tall Boots
UGG 5819 womens Boots
UGG 5825 short Boots

7
http://www.chiflatiron.us

chi flat iron

chi flat iron
InStyler rotating hot iron with a heat resistant carrying bag
New BLUE CAMO CHI Camo Colletion 1" flat iron
New CHI Turbo 2 Big Flat Iron
New GREEN CAMO CHI Camo Colletion 1" flat iron
Black CHI Ceramic Flat Iron Original Farouk Hair Straightener
8
http://www.thehairstraighteners.com

CHI hair straightener

Very Cheap! www.thehairstraighteners.com is a professional supplier to supply CHI hair straightener Welcome to wholesale hair straighteners at www.thehairstraighteners.com.
CHI Straightener Blue Camo
CHI Straightener Green Camo
CHI Straightener Pink Camo
Original CHI Hair Straightener
CHI Turbo Big 2-Inch Hair Straightener


9)
http://www.jacketscart.com
jacketscart

spyder jackets
new discount spyder women's insulated ski jacket in orange
2009 new women's syder jackets insulated in white and red
women's discount spyder ski jacket insulated in red
women's cheap spyder ski suit insulated in pink
brand new men's spyder ski jackets in gray

9:21 PM  
Blogger polo shirt said...

Do not mean bad.Thank you so much! I just want to show some fashion wedding dress, cheap wedding dresses to all of you. I like wedding dresses, because wedding for a girl, it is the most special day in her life. Do you want to have the beautiful wedding dresses and designer wedding dresses in perfect day?? Here are the most popular discount wedding dresses and lace wedding dresses even plus size wedding dresses for all of you. Also the cheap evening dresses and evening formal dresses are a great choice for you. Let you dream come ture!! When you take part in a party, you can shoose party cocktail dresses, also fashion but cheap cocktail dresses and cheap prom dresses here. Besides, the cheap bridesmaid dress and cheap flower girl dresses are also provide to you!

12:55 AM  
Blogger theprophet said...

sneakers shoes She continued,
"Why...? Don't you need someone to pose as your girlfriend this year?" Then he answered, "No, there is no need for that anymore......"
Before he can continue, he was interrupted, discount nike shoes"Oh yes! Must have found a girlfriend! nike shox r4 You haven't been searching for one for the past years, right?" The man looked up, as if he has struck gold, his face beamed and looked directly at the drunken girl. tn dollarHe replied, "Yes......you are right! I haven't been looking for anyone for the past years."
With that, the man darted across the floor and out the door, cheap nike shoesleaving the lady in much bewilderment. He finally realized that he has already found his dream girl, and she was.....the Vancouver girl all along! The drunken lady has said something that awoken him.
All along he has found his girl.nike tennis shoes That was why he did not bother to look further when he realized she was not coming back. It was not any specific girl he was seeking! cheap nike shoxIt was perfection that he wanted, and yes.....perfection!!
Relationship is something both parties should work on. Realizing that he had let away someone so important in his life, he decided to call her immediately. His whole mind was flooded with fear.free shipping shoes He was afraid that she might have found someone new or no longer had the same feelings anymore..... For once, he felt the fear of losing someone.
As it was Christmas eve, the line was quite hard to get through, especially an overseas call. He tried again and again, never giving up. Finally, he got through......precisely at 1200 midnight. He confessed his love for her and the girl was moved to tears. nike shoes It seemed that she never got over him! Even after so long, she was still waiting for him, never giving up.
He was so excited to meet her and to begin his new chapter of their lives. He decided to fly to Vancouver to join her. It was the happiest time of their lives! nike discount shoes But their happy time was short-lived. Two days before he was supposed to fly to Vancouver,cheap puma shoes he received a call from her father. She had a head-on car collision with a drunken driver. nike shox shoes She passed away after 6 hours in a coma.
The guy was devastated, as it was a complete loss. Why did fate played such cruel games with him? He cursed the heaven for taking her away from him, denying even one last look at her! How cruel he cursed! How he damned the Gods...!!nike free shoes How he hated himself....for taking so long to realize his mistake!! That was in 1996.
The moral of this story is :
Treasure what you have...
Time is too slow for those who wait;
Too swift for those who fear;
Too long for those who grief;
Too short for those who rejoice;
But for those who love...
Time is Eternity.
For all you out there with someone special in your heart, cherish that person, cherish every moment that you spend together that special someone, for in life, anything can happen anytime. buy shoes onlineYou may painfully regret, only to realise that it is too late.

12:45 AM  
Blogger beilihua said...

Your blog is really good, and I like it very much. I find that we have the same ideas about this topic, and I consider it as my honour.
How do you think of polo cotton shirt? Do you want to be a fashion chaser? In our store online you can chase the most popular ralph lauren women shirts. it can help you increase your attraction.
My friends and I also want to buy excellent tennis prince, and I know there is a perfect store recently, which sells perfect tennis rackets.In order to play the game and search the place where can buy the
tennis racket, we find many places, and finally, we find tennis set shop.
would you want to be more attractive? If your answer is "Yes", you can wear spyder
jackets
, you really need a pair of north face jacket. They can make you become the focus.
women's polo hoodies
men's polo hoodies
north face jacket
polo t shirt
custom shirts
black polo
prince tennis accessories
discount tennis racquets
wilson tennis racquets
perfect babolat racquets
famous wilson racquet
excellent head racquets

3:03 AM  
Blogger xiaoxu said...

Your blog is very good, I like it very much
spyder jackets for cheap
womens spyder jackets
spyder ski jacket
north face jackets
Abercrombie Fitch polo shirt
Abercrombie Fitch clothing
Columbia Jacket
wholesale polo shirts
Abercrombie Fitch hoodiles
head tennis rackets
babolat racquet
wilson tennis racket
wilson tennis racquets
babolat tennis racket
classic wilson tennis racquets
prince tennis racket
prince tennis racquets
cheap head tennis racquet
superior wilson tennis racquets
babolat tennis racket
head tennis rackets
babolat racquet
wilson tennis racquets
polo womans shirt
lauren polo pants
burberry polo shirt
columbia jacket mens
lauren polo long sleeves shirt
classic spyder jacket
red ralph lauren vest
polo mens jacket
yellow polo women's jackets
striped polo shirts
ralph lauren polo shirt
polo shirt red
ralph lauren womens shirt
Ralph Lauren mens hoodies
charming north face jacket

8:32 AM  

Post a Comment

<< Home