LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-16-2009, 06:05 PM   #16
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16

Quote:
Originally Posted by linus72 View Post
I think their just mounting the iso temporarily to copy the kernel/initrd
so the kernel/initrd get booted, then it mounts the iso as read-only and uses the squashfs, etc
as the main system



see the cp command
and umount?
Ok like I said in the post i just want the iso file in the flash drive and the the bootloader nothing else on the flash drive.

So when i make a new build of the iso i just replace the iso and the flash drive would work
I saw the cp command they mount the iso and cp the mounted version of the iso on the flash drive. means the flash drive has folders like isolinux,EFI,....
 
Old 07-16-2009, 06:15 PM   #17
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
I think their just mounting the iso temporarily to copy the kernel/initrd
so the kernel/initrd get booted, then it mounts the iso as read-only and uses the squashfs, etc
as the main system



see the cp command
and umount?
Ok like I said in the post i just want the iso file in the flash drive and the the bootloader nothing else on the flash drive.

So when i make a new build of the iso i just replace the iso and the flash drive would work
I saw the cp command they mount the iso and cp the mounted version of the iso on the flash drive. means the flash drive has folders like isolinux,EFI,....
 
Old 07-16-2009, 06:20 PM   #18
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Unlss mistaken, I don't believe you can boot straight from an iso on usb
how would you do the isolinux/syslinux.cfg/menu.lst

title iso
root (hd0,0) whatever
kernel ? /iso/vmlinuz
initrd ? /iso/initrd.gz

I don't think reg grub can do this

but, as you said earlier, GRUB2 can do this, seemingly
therefore you must first get grub2 going

Quote:
With grub2 you can directly boot an (iso9660) ISO using its loopback option. This is great because it provides another nice rescue scenario - for example when using grml (the Debian based Linux Live-CD for sysadmins). You no longer need to extract kernel and initrd from the ISO to be able to boot it using the isofrom bootoption. All you need to do is put a plain grml ISO to your harddisk.
note the kernel append for grml

Quote:
isofrom=/dev/sda1/grml/grml-small_2008.11.iso boot=live
questions is can redhat do that?

fedora uses

Quote:
root=/dev/sdxx rootfstype=ext3 liveimg
so maybe redhat can use that kernel append too?
editing for your usb device have you tried booting it yet??

[QUOTE]
# RHEL5
title RedHat Live
loopback loop (hdx,x)/redhat.iso
linux (loop)/boot/isolinux/redhat-kernel isofrom=/dev/sdxx/redhat.iso boot=live quiet root=/dev/sdxx rootfstype=ext3 rw quiet liveimg rhgb vga=791 noeject noprompt
initrd (loop)/boot/isolinux/redhat-initrd
boot


just edit that
where is kernel/initrd Inside the iso?
in boot or in boot/isolinux or where?
just replace kernel/initrd lines with where the kernel intrd are on iso
"(loop)/boot/isolinux/redhat-kernel"

only grub2 can do this though...
 
Old 07-16-2009, 06:27 PM   #19
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
[QUOTE=linus72;3610035]Unlss mistaken, I don't believe you can boot straight from an iso on usb
how would you do the isolinux/syslinux.cfg/menu.lst

title iso
root (hd0,0) whatever
kernel ? /iso/vmlinuz
initrd ? /iso/initrd.gz

I don't think reg grub can do this

but, as you said earlier, GRUB2 can do this, seemingly
therefore you must first get grub2 going



note the kernel append for grml



questions is can redhat do that?

fedora uses



so maybe redhat can use that kernel append too?
editing for your usb device have you tried booting it yet??

Quote:
# RHEL5
title RedHat Live
loopback loop (hdx,x)/redhat.iso
linux (loop)/boot/isolinux/redhat-kernel isofrom=/dev/sdxx/redhat.iso boot=live quiet root=/dev/sdxx rootfstype=ext3 rw quiet liveimg rhgb vga=791 noeject noprompt
initrd (loop)/boot/isolinux/redhat-initrd
boot


just edit that
where is kernel/initrd Inside the iso?
in boot or in boot/isolinux or where?
just replace kernel/initrd lines with where the kernel intrd are on iso
"(loop)/boot/isolinux/redhat-kernel"

only grub2 can do this though...
I don't know how to get grub2 on usb .
Have been looking for it infact have posted another thread for the same.
But I guess no one likes that thread (HA HA HA)
Trust me I have spent past one week googling and reading forums .I dont have to work on fedora but any OS which can let me install Grub2 on flash drive. I know ubuntu 9.04 comes with grub2 but i can only try it on weekend as i have to install ubuntu on weekends.
 
Old 07-16-2009, 06:32 PM   #20
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Why don't you put ubuntu-9.04 persistent on usb and use that?
then install grub2 to redhat iso usb
actually, you don't even need persitence, jus 9.04 booting off usb
use usb-creator in ubuntu to make usb ubuntu-9.04
then install grub2 to redhat usb

so, you need 2 usb's
1 is fat32 booting 9.04
1 is redhat ext2/3 and install grub2 to it via othwer usb

you got 2 usb ports?
 
Old 07-16-2009, 06:38 PM   #21
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
Why don't you put ubuntu-9.04 persistent on usb and use that?
then install grub2 to redhat iso usb
actually, you don't even need persitence, jus 9.04 booting off usb
use usb-creator in ubuntu to make usb ubuntu-9.04
then install grub2 to redhat usb

so, you need 2 usb's
1 is fat32 booting 9.04
1 is redhat ext2/3 and install grub2 to it via othwer usb

you got 2 usb ports?
I have 2 usb ports and 2 usb's also .
So you mean I install Ubuntu on a usb and then boot from there and install grub2 on the other usb
Let me try this.

Suppose if this doesn't work I mean the grub2 thing then should i believe that its not possible to do ?

Thanks a ton for all this help
Nirav Shah
 
Old 07-16-2009, 06:44 PM   #22
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
I think almost anything is possible with Linux, but it matters what the makers put in there as for boot options too

Quote:
I have 2 usb ports and 2 usb's also .
So you mean I install Ubuntu on a usb and then boot from there and install grub2 on the other usb
Let me try this.
but, yes that's what I'm saying
IF ubuntu-9.04 has/can get grub2, then it should work
but, do you install grub2 as you install grub??

like
"grub"
"root (hd0,0)"
"setup (hd0)"
"quit"

or
"grub-install --root-directory=/mnt/sda1 /dev/sda"

or how does grub2 install??

I am using Ultimate-edition-2.2 which is BIG ubuntu-9.04
so let me reboot out of sidux and into ubuntu and see about grub2
 
Old 07-16-2009, 06:45 PM   #23
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by niravshah View Post
I have 2 usb ports and 2 usb's also .
So you mean I install Ubuntu on a usb and then boot from there and install grub2 on the other usb
Let me try this.

Suppose if this doesn't work I mean the grub2 thing then should i believe that its not possible to do ?

Thanks a ton for all this help
Nirav Shah
Just as long term project can I write a program for this.
I mean making a grub for this as my new project. There is this Grub4dos things which does what I want if u have heard of it . But it works only for fat32 partition.

I have no idea about this but this would be a real challenging project for me and i would love to do it.
Am i a being too ambitious about this?

Last edited by niravshah; 07-16-2009 at 07:03 PM.
 
Old 07-16-2009, 06:47 PM   #24
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
I think almost anything is possible with Linux, but it matters what the makers put in there as for boot options too



but, yes that's what I'm saying
IF ubuntu-9.04 has/can get grub2, then it should work
but, do you install grub2 as you install grub??

like
"grub"
"root (hd0,0)"
"setup (hd0)"
"quit"

or
"grub-install --root-directory=/mnt/sda1 /dev/sda"

or how does grub2 install??

I am using Ultimate-edition-2.2 which is BIG ubuntu-9.04
so let me reboot out of sidux and into ubuntu and see about grub2
Man thanks a ton
 
Old 07-16-2009, 08:20 PM   #25
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by niravshah View Post
Man thanks a ton
Ubuntu 9.04 doesn't have grub2
it says it has it by default
 
Old 07-16-2009, 08:24 PM   #26
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
What?
No way dude I just installed it in ultimate-edition-2.2 which IS
ubuntu-9.04!

did you check software sources and check everything?

install big ole ultimate on usb!
it's like 2+gb!

I did have to uninstall reg grub to install grub2 it said
 
Old 07-16-2009, 08:48 PM   #27
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
What?
No way dude I just installed it in ultimate-edition-2.2 which IS
ubuntu-9.04!

did you check software sources and check everything?

install big ole ultimate on usb!
it's like 2+gb!

I did have to uninstall reg grub to install grub2 it said
Well i just downloaded ubuntu iso and made a bootable iso using unetbootin and currently installing ubuntu this usb to another usb

while installing it gives you this ubuntu desktop from where you install
as if its already installed and then I went to the terminal to check if i can install the grub without installing ubuntu there i checked the version of the grub which was 0.97
 
Old 07-16-2009, 09:05 PM   #28
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
oh
open synaptic package manager from administration menu
click on search
and enter
"grub"

you'll see grub2 and lots of grub stuff
 
Old 07-16-2009, 09:16 PM   #29
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
oh
open synaptic package manager from administration menu
click on search
and enter
"grub"

you'll see grub2 and lots of grub stuff
it shows me 3 things
grub 0.97
grub-common 1.96+20....
memtest86+ 2.11-3

now the question is how to install grub2 on flash drive ?
 
Old 07-16-2009, 09:43 PM   #30
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Here's my synaptic after searching "grub"

and my software sources stuff
just check the boxes, etc

Last edited by linus72; 07-20-2009 at 05:08 PM.
 
  


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 03:17 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