LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-14-2009, 06:10 PM   #1
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Rep: Reputation: 16
ISO on flash Drive


Hi

I have an iso which is 4.5GB .I want to put this on a flash drive and boot it from the flash drive.
I want to keep the iso file as it is and not extract it in the flash drive
So if i have mytest.iso then i want to keep this mytest.iso file on the flash drive too. So that when i make a new iso i just have to copy paste the new iso in the flash drive and everything else remains the same.
The problem currently is i have to write a DVD everytime i make a change or fix a bug in a iso and writing a DVD take hours and i get to work in 4 or 5th try.
Hence the need of flash drive.
I have gone through Grub4Dos ,extlinux
Grub4dos wont work as its more than 4gb iso.


Hope to receive a reply
 
Old 07-14-2009, 06:38 PM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Welcome to LQ niravshah!

Now, that's not the normal way to boot linux off usb...

However, we need more info too
what distro are you using?
flash is fat32 or ext3?
extlinux is for booting linux filesystem, not fat16/32

Please explain more to us, and what iso your trying to put on usb.
 
Old 07-15-2009, 12:20 AM   #3
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
Welcome to LQ niravshah!

Now, that's not the normal way to boot linux off usb...

However, we need more info too
what distro are you using?
flash is fat32 or ext3?
extlinux is for booting linux filesystem, not fat16/32

Please explain more to us, and what iso your trying to put on usb.
Well since the iso is more than 4GB i cannot use fat the file system of the flash drive is ext2 .

The iso i am trying to boot is a RHEL5 with my software configured in it .
i have a bootable iso of it but i want to put it on a flash drive to make things faster since burning a DVD is pain

Let me know if u need any other information
 
Old 07-16-2009, 12:43 PM   #4
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by niravshah View Post
Well since the iso is more than 4GB i cannot use fat the file system of the flash drive is ext2 .

The iso i am trying to boot is a RHEL5 with my software configured in it .
i have a bootable iso of it but i want to put it on a flash drive to make things faster since burning a DVD is pain

Let me know if u need any other information
Hi guys i would really appreciate if some could direct me in the right direction
 
Old 07-16-2009, 02:02 PM   #5
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Hello niravshah
yes we need more info
Please post isolinux.cfg
for your iso?
 
Old 07-16-2009, 03:57 PM   #6
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
Hello niravshah
yes we need more info
Please post isolinux.cfg
for your iso?
Does it make a difference what iso it is.
All I want to do is get the iso bootloader to work without extracting the ISO.I was hoping that once I get this to work it would work with any iso.

While googling i came across this link which promises to do exactly what I want but it does not tell me how to do it.
 
Old 07-16-2009, 04:08 PM   #7
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
It may make a difference what iso
grml has this abiity to boot from iso, as does sidux and others
but redhat??

first you gotta install grub2 somehow?
have you tried installing grub2 from source or binary?
 
Old 07-16-2009, 04:16 PM   #8
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
It may make a difference what iso
grml has this abiity to boot from iso, as does sidux and others
but redhat??

first you gotta install grub2 somehow?
have you tried installing grub2 from source or binary?
The ISO I have is a redhat ISO like I said so this iso will install the OS so it would be a virgin machine

I installed grub2 on fedora and I think it worked .I can say this because
when I reboor i see the boot menu changed.

I have no idea what is grml and sidux.
Have you gone through the link I posted in the previous reply because that is exactly what i want.

Thanks for your help
Nirav Shah
 
Old 07-16-2009, 04:24 PM   #9
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Isn't fedora redhat based?

here's info on booting and installing fedora with no cdrom using hd/usb partition
using just regualar GRUB

seems, like sidux, you boot off the kernel and intird that are not in the iso
meaning mount the iso, copy kernel/initrd to a folder somewhwere
then edit menu.lst

Quote:
# Fedora 9/10 Live
title Fedora 9/10 Live
root (hd0,7)
kernel /isolinux/vmlinuz0 root=/dev/sda8 rootfstype=ext3 rw quiet liveimg rhgb
initrd /isolinux/initrd0.img
see this stuff too
http://forums.fedoraforum.org/showthread.php?t=191888
http://forums.fedoraforum.org/showthread.php?t=194202
 
Old 07-16-2009, 04:30 PM   #10
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
Isn't fedora redhat based?

here's info on booting and installing fedora with no cdrom using hd/usb partition
using just regualar GRUB

seems, like sidux, you boot off the kernel and intird that are not in the iso
meaning mount the iso, copy kernel/initrd to a folder somewhwere
then edit menu.lst



see this stuff too
http://forums.fedoraforum.org/showthread.php?t=191888
http://forums.fedoraforum.org/showthread.php?t=194202
This is not what I want.
I want to boot a iso be it any iso.
The iso is in the flash drive which I don't think is possible with regular grub.

When i plug in the flash drive and set my bios to boot from usb it should exactly like booting from a bootable DVD

I hope you understand what I mean
I am not very good at explaining things. Sorry for this


Thanks
Nirav Shah
 
Old 07-16-2009, 04:43 PM   #11
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
No, I under stand
right now I am writing you from sidux-2009-02 which is booting off th iso via my ext3 usb
here is my menu.lst, note the "fromiso" entry

Code:
##ISO boot
title sidux (USB) 2.6.30-1.slh.3-sidux-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.30-1.slh.3-sidux-686 boot=fll fromhd=UUID=45674521-df38-44d1-8f8d-ec264870efbe fromiso=/sidux/sidux.iso quiet persist lang=us tz=Eastern/US vga=791
initrd /boot/initrd.img-2.6.30-1.slh.3-sidux-686
not all distro's have this ability, unless I'm mistaken?

now here's the fedora one, which should be similar if redhat can do this

Code:
# Fedora 9/10 Live
title Fedora 9/10 Live
root (hd0,7)
kernel /isolinux/vmlinuz0 root=/dev/sda8 rootfstype=ext3 rw quiet liveimg rhgb
initrd /isolinux/initrd0.img
just change the "root=" setting

I don't know if redhat can do this, but if fedora can, why not redhat?

Quote:
I want to boot a iso be it any iso.
The iso is in the flash drive which I don't think is possible with regular grub.

When i plug in the flash drive and set my bios to boot from usb it should exactly like booting from a bootable DVD
that's exactly what I'm doing now
booting off usb via the kernel/initrd in sidux folder
there is also sidux iso in sidux folder which is mounted at boot
as read-only
then there is a folder named "fll" where all settings, apps installed, etc remain as persistent; ie, a frugal install
 
Old 07-16-2009, 04:50 PM   #12
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
No, I under stand
right now I am writing you from sidux-2009-02 which is booting off th iso via my ext3 usb
here is my menu.lst, note the "fromiso" entry

Code:
##ISO boot
title sidux (USB) 2.6.30-1.slh.3-sidux-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.30-1.slh.3-sidux-686 boot=fll fromhd=UUID=45674521-df38-44d1-8f8d-ec264870efbe fromiso=/sidux/sidux.iso quiet persist lang=us tz=Eastern/US vga=791
initrd /boot/initrd.img-2.6.30-1.slh.3-sidux-686
not all distro's have this ability, unless I'm mistaken?

now here's the fedora one, which should be similar if redhat can do this

Code:
# Fedora 9/10 Live
title Fedora 9/10 Live
root (hd0,7)
kernel /isolinux/vmlinuz0 root=/dev/sda8 rootfstype=ext3 rw quiet liveimg rhgb
initrd /isolinux/initrd0.img
just change the "root=" setting

I don't know if redhat can do this, but if fedora can, why not redhat?



that's exactly what I'm doing now
booting off usb via the kernel/initrd in sidux folder
there is also sidux iso in sidux folder which is mounted at boot
as read-only
then there is a folder named "fll" where all settings, apps installed, etc remain as persistent; ie, a frugal install
Wow This looks very promising.
But i am a new baby to linux so it would be more helpful to me if you could tell me in steps what I need to do.
I know this is asking for to much but where to I start and how to get this don't on a flash drive.
I would surely give it a try.

Thanks
Nirav
 
Old 07-16-2009, 04:54 PM   #13
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Don't get your hopes up yet, as I'm not sure if redhat can do this
is fedora redhat based???

did you read the links about booting fedora via iso?
try just replacing their menu.lst with kernel/initrd from your dvd iso
and whatnot

that's why I asked you to post isolinux.cfg for redhat dvd so we can hack at it
 
Old 07-16-2009, 04:57 PM   #14
niravshah
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
Don't get your hopes up yet, as I'm not sure if redhat can do this
is fedora redhat based???

did you read the links about booting fedora via iso?
try just replacing their menu.lst with kernel/initrd from your dvd iso
and whatnot

that's why I asked you to post isolinux.cfg for redhat dvd so we can hack at it
The links you have sent me tells me to mount the iso on the flash drive which i don't want to do.
If I could do that it would have been a lot easier to do with extlinux just install the bootlaoder and change the name of isolinux.cfg to extlinux.conf(have tried this and it works for my iso)
But this I cannot do.
I don't want to boot fedora via an ISO i want to boot the ISO

Last edited by niravshah; 07-16-2009 at 04:59 PM.
 
Old 07-16-2009, 05:01 PM   #15
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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

Quote:
su
cd /mnt/
mkdir iso live
mount -o loop -t iso9660 ~/Distro/Fedora-Live.iso iso
mount -t ext3 /dev/sda8 live
cp -r iso/* live/
umount iso live
see the cp command
and umount?
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 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
Open Source Consulting | Domain Registration