Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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,....
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,....
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.
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"
[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.
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
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 ?
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
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.