LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2009, 06:03 PM   #46
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16

Quote:
Originally Posted by linus72 View Post
I too don't understand why you don't just boot off usb
with the extracted dvd?

but, hey, we learn by doing, leastways me

much simpler to boot that way
you can even mayube find a way
to boot the reg redhat as read-only
and have somekind of persistence file/archive that kepps changes
perisitent
though this would probably have to be scipted up or changes made...?



actually, jeffro, grub2 can do this for some distro's
( http://michael-prokop.at/blog/2009/0...iso-via-grub2/ )

but redhat?
Ok the Current scenario
Installed Ubuntu 9.04 on a flash drive
when i check the grub--version it gives me 0.97
So
i do sudo apt-get install grub-pc
the output i get

root@nirav-laptop:/# apt-get install grub2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package grub2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package grub2 has no installation candidate

i dont know how to get grub2 on ubuntu then i can try to get grub2 on flash drive and just to try it
And if this doesn work i would be convinced that this cannot be done
 
Old 07-17-2009, 06:44 PM   #47
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
I'm telling you big dog
it's in the repos for ubuntu
grub2 is a dummy pkg it says...
and you SHOULD be using synaptic brother, not apt-get
synaptic

guarantee you you go put ultimate edition 2.2
on usb or dvd and it can get it, I got it

you can use usb-creator to put on usb too.

try ultimate edition dude, it's got all the ubuntu repos too
( http://ultimateedition.info/ultimate-edition-2-2/ )

downloads at bottom of page

did you make sure all the stuff is checked off in "software sources"
at main admin menu?
 
Old 07-17-2009, 06:46 PM   #48
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by niravshah View Post
Ok the Current scenario
Installed Ubuntu 9.04 on a flash drive
when i check the grub--version it gives me 0.97
So
i do sudo apt-get install grub-pc
the output i get

root@nirav-laptop:/# apt-get install grub2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package grub2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package grub2 has no installation candidate

i dont know how to get grub2 on ubuntu then i can try to get grub2 on flash drive and just to try it
And if this doesn work i would be convinced that this cannot be done
ok guys very close
installed grub2 on ubuntu and also on the flash drive

but

when i first run the command
grub-setup -d /media/disk-1/boot/grub -v -r '(hd2,0)' -m /media/disk-1/boot/grub/device.map '(hd2,0)'
i get grub-setup: error: no such partition
so i do
grub-setup -d /media/disk-1/boot/grub -v -r '(hd2,1)' -m /media/disk-1/boot/grub/device.map '(hd2,1)'

and i dont get the error but the problem is i dont see grub.cfg file in the flash drive/boot/grub directory

Is this ok
???
 
Old 07-17-2009, 06:56 PM   #49
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Oh, I think you need to make a grub.cfg, unless mistaken

you can make one easy too
just make one

you should be good to go after that
 
Old 07-17-2009, 06:57 PM   #50
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
see dude, this is why I said unplug hd and installl to usb as hd0,0
it s easier

grub-setup -d /media/disk-1/boot/grub -v -r '(hd2,1)' -m /media/disk-1/boot/grub/device.map '(hd2,1)'

I had same issue trying to do (hd1,0) as usb, wouldn't work
 
Old 07-17-2009, 07:00 PM   #51
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
see dude, this is why I said unplug hd and installl to usb as hd0,0
it s easier

grub-setup -d /media/disk-1/boot/grub -v -r '(hd2,1)' -m /media/disk-1/boot/grub/device.map '(hd2,1)'

I had same issue trying to do (hd1,0) as usb, wouldn't work
how do i unplug the hard drive i m using a laptop
plus hd1 is the flash drive i installed ubuntu on
and hd2 is the flash drive on which i want the grub2

i will try making grub.cfg
 
Old 07-17-2009, 07:04 PM   #52
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
OH, it's a lappy...you can still do it, but don't unless you need to

I never could get a usb to boot with grub unless I used hd0,0
for usb, after unhooking hd

try grub-find /boot/grub/stage1 or similar
 
Old 07-17-2009, 07:13 PM   #53
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
OH, it's a lappy...you can still do it, but don't unless you need to

I never could get a usb to boot with grub unless I used hd0,0
for usb, after unhooking hd

try grub-find /boot/grub/stage1 or similar
I did not understand this .I mean what are u trying to do.
Ok now in grub.cfg file how what should i put in the

set root = (hd0,0) or (hd2,1) (this is what i used in the command)

or i should keep it as (hd0,0) since i will be bootin from the flash drive???
??????????????????????????
 
Old 07-17-2009, 07:22 PM   #54
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
What does /boot/grub/device.map say?

go with what it says for usb

did you try grub-find /boot/grub/stage1 ?
 
Old 07-17-2009, 07:24 PM   #55
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
grub-mkdevicemap - to generate a device map file automatically

use that while all drives are mounted

and then move that device.map from /boot/grub to somewhere else
then re-run grub-mkdevicemap with only redhat usb mounted

then you'll know which one is redhat usb

grub-mkdevicemap
 
Old 07-17-2009, 07:34 PM   #56
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
grub-mkdevicemap - to generate a device map file automatically

use that while all drives are mounted

and then move that device.map from /boot/grub to somewhere else
then re-run grub-mkdevicemap with only redhat usb mounted

then you'll know which one is redhat usb

grub-mkdevicemap
but what when i go to a different computer.
and in fromiso =/myiso.iso does this mean that iso has to be in the same directory as the grub.cfg since grub.cfg is in flashdrive/boot/grub
 
Old 07-17-2009, 07:42 PM   #57
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Um...o I don't think it matters where you put the iso on usb
just give full path to iso

like if it's just in the usb it would be fromiso=/myiso.iso
or you know

that's why I did mine as (hd0,0), so any computer thinks it's the 1st hd and booted 1st!
see here
( http://natureheals.info/linux/tiny/tc1/instau.html )

Quote:
If the same USB drive is connected to different computers, drives may be designated differently. Everything which relates to specific drives has been left out, so it will work however the computer designates them.
Quote:
I used this one, with hd unhooked

One way to be sure, is to disconnect the computer's hard drive, and use a Linux live CD to get a Grub prompt.

With the hard drive disconnected, after getting a grub prompt, type:

root (hd0,0)
setup (hd0)
quit
substitue grub2 procedure there

you really need to be on a desktop pc
do you have desktop pc??
 
Old 07-17-2009, 07:48 PM   #58
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
see here's my menu.lst for ext3 4gb usb now
I'm packing HEAT baby!

Quote:

title Super Grub Disk\nEasily restore the grub bootloader.
root (hd0,0)
kernel /boot/syslinux/memdisk
initrd /boot/sgd/sgd.gz

title zorOS-3.6 IDE
root (hd0,0)
kernel /boot/syslinux/linuz TOOLSLANG=1 initrd=/boot/syslinux/full.img vga=788 load_ramdisk=1 ramdisk_size=53248 prompt_ramdisk=0 rw root=/dev/ram rootfstype=ext2 apm=off
initrd /boot/syslinux/full.img

title zorOS-3.6 SATA
root (hd0,0)
kernel /boot/syslinux/linuz TOOLSLANG=1 initrd=/syslinux/full.img vga=788 load_ramdisk=1 ramdisk_size=53248 prompt_ramdisk=0 rw root=/dev/ram rootfstype=ext2 apm=off libata.atapi_enabled=1 ide0=noprobe ide1=noprobe
initrd /boot/syslinux/full.img

title Grub bootloader - USB-Menu
root (hd0,0)
configfile /boot/grub/usb/grub-menu.lst

title Grub4DOS USB-Menu
root (hd0,0)
configfile /boot/grub/usb/usb-menu.lst

title PLOP Bootmanager USB
root (hd0,0)
kernel /boot/plpbt

title SystemRescueCD-1.2.2 - Menu
root (hd0,0)
configfile /boot/grub/sysrescue-menu.lst

title DRBL-1.0.0-8-XFCE
root (hd0,0)
configfile /live/drbl-menu.lst

title Sidux-2009-02
root (hd0,0)
configfile /boot/grub/sidux-menu.lst

title Mini-PartedMagic
root (hd0,0)
kernel /minipm/bzImage root=/dev/ram0 init=/linuxrc ramdisk_size=100000 vga=791
initrd /minipm/initrd

title PartedMagic - USB-Menu
root (hd0,0)
configfile /boot/grub/usb/pmagic-menu.lst

title ClamAV Anti-Virus LiveUSB
root (hd0,0)
configfile /boot/grub/usb/clamusb-menu.lst

title TinyCore_2.1 with JWM USB-Menu
root (hd0,0)
configfile /boot/grub/usb/tc-menu.lst

title RescuePuppy49 USB-Menu
root (hd0,0)
configfile /boot/grub/usb/pupusb-menu.lst

title NetbootCD 3.1.2 USB Net-install a Major Distro
root (hd0,0)
kernel /boot/kexec.bzI quiet base norestore nolocal waitusb=5
initrd /boot/nbinit3.gz

title Boot FreeDOS (Balder)
root (hd0,0)
kernel /vimages/memdisk
initrd /vimages/bootdisk/dos.imz

title FreeDOS (modified)
root (hd0,0)
kernel /vimages/memdisk floppy
initrd /vimages/bootdisk/freedos.img

title Run Smart Boot Manager
root (hd0,0)
kernel /vimages/memdisk
initrd /vimages/bootdisk/sbm.imz

title Graphical Boot Manager
root (hd0,0)
kernel /vimages/memdisk floppy
initrd /vimages/bootdisk/gag.img

title Ranish Partition Manager
root (hd0,0)
kernel /vimages/memdisk floppy
initrd /vimages/bootdisk/ranish.img

title AIDA Diagnostic Tool
root (hd0,0)
kernel /vimages/memdisk floppy
initrd /vimages/bootdisk/aida.img

title Hardware Detection Tool
root (hd0,0)
kernel /vimages/c32/hdt.c32 modules=/vimages/c32/modules.pci pciids=/vimages/c32/pci.ids

title HDD Diagnostic Tool
root (hd0,0)
kernel /vimages/memdisk floppy
initrd /vimages/bootdisk/mhdd.img

title NT Password Viewer
root (hd0,0)
kernel /vimages/ntpasswd/vmlinuz rw /vimages/ntpasswd/scsi.cgz
initrd /vimages/ntpasswd/initrd.cgz

title HDD Wipe Data Tool
root (hd0,0)
kernel /vimages/memdisk floppy
initrd /vimages/bootdisk/dban.img

Last edited by linus72; 07-17-2009 at 07:50 PM.
 
Old 07-17-2009, 07:56 PM   #59
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
where are you niravshah?
india?

why are using redhat?
did it cost money?
going to school rhel5?
 
Old 07-17-2009, 08:09 PM   #60
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
where are you niravshah?
india?

why are using redhat?
did it cost money?
going to school rhel5?
I am in USA
this is a project for the company
I am a intern
doing my masters in computer science
using redhat because its the requirenment of our software

ok where should i send u my resume (just kidding) as the internship gets over in august

Ok here's the deal
i made some changes to grub.cfg just dumped one from the original laptop i was working on and now when i boot i get GRUB and nothing after that
it just stops there

What might be the issue ??
well that grub root = (hd1,1)
i did not change it and kept as it is

i think i should change to hd0,0 and try
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ISO to bootable flash drive Steve W Linux - Software 4 03-08-2009 06:42 AM
USB Flash Drive, write protect, and flash file system questions storkus Linux - Hardware 4 12-01-2008 05:32 AM
linux on flash drive, is this possible and flash writes, where?? lizzie_jianne Linux - General 1 01-04-2007 01:12 PM
LXer: EDGE Tech Corp Announces Portable Flash Drive With Muscle - the New 8GB DiskGO!(TM) Now Available; Swap and Go With This Secure Thumb-Sized Flash Drive LXer Syndicated Linux News 0 12-14-2005 03:16 AM
iso to USB flash drive shmude Linux - Hardware 7 09-27-2003 03:14 AM


All times are GMT -5. The time now is 04:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration