LinuxQuestions.org
Visit Jeremy's Blog.
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, 01:07 AM   #31
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16

Quote:
Originally Posted by linus72 View Post
Here's my synaptic after searching "grub"

and my software sources stuff
just check the boxes, etc
Still i don't know how to install grub 2 on USB
what i am planning to do is i have installed ubuntu on usb and upgraded grub to grub2 so now will delete everything else place the iso file and then modify the grub.cfg file and see if that works

I know this sounds like a bit gross but i don't mind trying
 
Old 07-17-2009, 11:56 AM   #32
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by niravshah View Post
Still i don't know how to install grub 2 on USB
what i am planning to do is i have installed ubuntu on usb and upgraded grub to grub2 so now will delete everything else place the iso file and then modify the grub.cfg file and see if that works

I know this sounds like a bit gross but i don't mind trying
Ok a fresh day and i am trying it again.
any ideas guys.
 
Old 07-17-2009, 12:01 PM   #33
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Did you read any of these for installing grub2 to usb?
did you get grub2 installed to ubuntu?
http://diliman-networks.com/?page_id=21
http://blog.dipinkrishna.info/2009/0...est-grub2.html
http://www.puredarwin.org/developers/booting/grub2
http://www.mail-archive.com/grub-dev.../msg02488.html

what are stuck on??
 
Old 07-17-2009, 12:24 PM   #34
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
I got grub2 on ubuntu but I cannot get it on the USB.
I am stuck on that
 
Old 07-17-2009, 12:26 PM   #35
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
None of those how-to's for installing grub2 to usb worked?

what exacts steps are you using?
is installing grub2 to usb that much different than installing grub?
 
Old 07-17-2009, 12:28 PM   #36
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
None of those how-to's for installing grub2 to usb worked?

what exacts steps are you using?
is installing grub2 to usb that much different than installing grub?
for installing grub i used to go to grub> prompt
then on grub prompt I used to do root (hd1,0)
and then setup (hd1)

But now i cannot get the grub prompt
so i have to look for another way
 
Old 07-17-2009, 12:39 PM   #37
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
you didn't read the how-to dude

it's easy, here's syntax for grub2 to usb
(in this exampl MY HD IS UNPLUGGED FROM MOTHERBOARD!)

do not do this unless your booting from a livecd(ubuntu-9.04)
and your usb is plugged in and hd is unplugged!)

assuming USB is 1 single partition, ext2 or ext3, etc
mine is desgnated by ubuntu as /dev/sdb1 /media/disk

so it would be

Code:
grub-install --root-directory=/media/disk /dev/sdb
and then to set it up as 1st hd, this way it will be recognized as (hd0,0)
and boot even on some computers that won't boot usb(with plop bootmanager)

Code:
grub-setup -d /media/usbdisk/boot/grub -v -r
'(hd0,0)' -m /media/usbdisk/boot/grub/device.map '(hd0)'
note that in grub2 menu.lst is now called grub.cfg

read that one
http://diliman-networks.com/?page_id=21
 
Old 07-17-2009, 12:42 PM   #38
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
you didn't read the how-to dude

it's easy, here's syntax for grub2 to usb
(in this exampl MY HD IS UNPLUGGED FROM MOTHERBOARD!)

do not do this unless your booting from a livecd(ubuntu-9.04)
and your usb is plugged in and hd is unplugged!)

assuming USB is 1 single partition, ext2 or ext3, etc
mine is desgnated by ubuntu as /dev/sdb1 /media/disk

so it would be

Code:
grub-install --root-directory=/media/disk /dev/sdb
and then to set it up as 1st hd, this way it will be recognized as (hd0,0)
and boot even on some computers that won't boot usb(with plop bootmanager)

Code:
grub-setup -d /media/usbdisk/boot/grub -v -r
'(hd0,0)' -m /media/usbdisk/boot/grub/device.map '(hd0)'
note that in grub2 menu.lst is now called grub.cfg

read that one
http://diliman-networks.com/?page_id=21
let me try it and get back to you
 
Old 07-17-2009, 12:44 PM   #39
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
oh wait
change that
Quote:
grub-setup -d /media/usbdisk/boot/grub -v -r
'(hd0,0)' -m /media/usbdisk/boot/grub/device.map '(hd0)'
to that
Quote:
grub-setup -d /media/disk/boot/grub -v -r
'(hd0,0)' -m /media/disk/boot/grub/device.map '(hd0)'
sorry
 
Old 07-17-2009, 01:33 PM   #40
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
oh wait
change that


to that


sorry
grub-setup command not found error

how to go ahead????????????
 
Old 07-17-2009, 01:38 PM   #41
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 at aloss too
 
Old 07-17-2009, 03:29 PM   #42
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
I'm at aloss too
Wait I was trying this on fedora where i installed grub2 i am not sure if that the way to go

I would try this on ubuntu which is getting ready in a while(i m installing it)

let me try from that and will get back to you if this works
 
Old 07-17-2009, 03:33 PM   #43
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,346

Rep: Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376
I think the only way to boot from an ISO on a flash is to try to make the flash drive appear to bios as a usb cd/dvd drive. The ISO would have to be applied to the drive exactly as it would have been to the disk.

I think I have read how before but it may only work on some very few flash drives.

There really is no great need to do this as far as I can tell. What would be the point of all this. Just use any of the few hundred ways to install to usb that we use.

Last edited by jefro; 07-17-2009 at 03:35 PM.
 
Old 07-17-2009, 03:42 PM   #44
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jefro View Post
I think the only way to boot from an ISO on a flash is to try to make the flash drive appear to bios as a usb cd/dvd drive. The ISO would have to be applied to the drive exactly as it would have been to the disk.

I think I have read how before but it may only work on some very few flash drives.

There really is no great need to do this as far as I can tell. What would be the point of all this. Just use any of the few hundred ways to install to usb that we use.
Hi jefro

The whole point of this is to make things easier.
I did find a way of doing it with the use of extlinux where in just install the bootloader and mount the iso and then copy its content on the flash drive but that is not what i want

I know its a pain but if you consider burning a DVD everytime this pain looks worth as its just one time
 
Old 07-17-2009, 04:35 PM   #45
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
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...?

Quote:
I think the only way to boot from an ISO on a flash is to try to make the flash drive appear to bios as a usb cd/dvd drive. The ISO would have to be applied to the drive exactly as it would have been to the disk.

I think I have read how before but it may only work on some very few flash drives.
actually, jeffro, grub2 can do this for some distro's
( http://michael-prokop.at/blog/2009/0...iso-via-grub2/ )

but redhat?
 
  


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 05:42 AM
USB Flash Drive, write protect, and flash file system questions storkus Linux - Hardware 4 12-01-2008 04:32 AM
linux on flash drive, is this possible and flash writes, where?? lizzie_jianne Linux - General 1 01-04-2007 12: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 02:16 AM
iso to USB flash drive shmude Linux - Hardware 7 09-27-2003 02:14 AM


All times are GMT -5. The time now is 12:00 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