Jump to content











Photo

(not livecd) Boot full Ubuntu+Fedora+Mint .VHD From USB by g4d


  • Please log in to reply
14 replies to this topic

#1 sara - pmedia

sara - pmedia

    Frequent Member

  • Lady
  • 172 posts
  • Location:tel aviv
  •  
    Israel

Posted 07 February 2011 - 04:24 PM

Hello everyone :whistling:

I already told you about my "Sara's multi boot disc" :cheers: :) Includes everything..

To this day, I would use a separate ext3 partition for each linux (Ubuntu,kubuntu,mint,fedora...) I installed it.

But now you can run them all from vhd file. :cheers:


* no ext3 partition needed
* One file instead of many files
* Virtual machine also works
* No need to use vboot.mbr - work directly from g4d


Enjoy this code & attached files I uploaded :ph34r:

That's how it should show

ubuntu

<your drive>\ubuntu-1004\initrd.img-2.6.32-21-generic - download
<your drive>\ubuntu-1004\vmlinuz-2.6.32-21-generic - download
<your drive>\ubuntu-1004\ubuntu-1004-desktop-i386.vhd - download

title      ubuntu  VHD Boot

kernel  /ubuntu-1004/vmlinuz-2.6.32-21-generic root=UUID=<your uuid> vloop=/ubuntu-1004/ubuntu-1004-desktop-i386.vhd vlooppart=p1 quiet splash

initrd  /ubuntu-1004/initrd.img-2.6.32-21-generic


fedora

<your drive>\fedora-13\vmlinuz-2.6.33.3-85.fc13.i686 - download
<your drive>\fedora-13\initramfs-2.6.33.3-85.fc13.i686.img - download
<your drive>\fedora-13\fedora-13-i686.vhd - download

title	Fedora VHD Boot

kernel /fedora-13/vmlinuz-2.6.33.3-85.fc13.i686 root=UUID=<your uuid> vloop=/fedora-13/fedora-13-i686.vhd vlooppart=p1 quiet splash

initrd /fedora-13/initramfs-2.6.33.3-85.fc13.i686.img


mint

<your drive>\mint-9\initrd.img-2.6.32-21-generic - download
<your drive>\mint-9\vmlinuz-2.6.32-21-generic - download
<your drive>\mint-9\mint-9-gnome-i386.vhd - download


title	mint-9  VHD Boot

kernel  /mint-9/vmlinuz-2.6.32-21-generic root=UUID=<your uuid> vloop=/mint-9/mint-9-gnome-i386.vhd vlooppart=p1 quiet splash

initrd  /mint-9/initrd.img-2.6.32-21-generic


#2 sara - pmedia

sara - pmedia

    Frequent Member

  • Lady
  • 172 posts
  • Location:tel aviv
  •  
    Israel

Posted 08 February 2011 - 12:57 PM

I need some help To make the code more universal

...........root=/dev/sdb1...........

Notice that this path may changed from pc to pc. It depends on the amount of drives that are connected

In some cases it sdb1 In other its sda1 etc....

Is it possible to put a string of path detection?? (like find-- set root /..*.vhd)?

thanks :smiling9:

#3 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 08 February 2011 - 01:58 PM

I need some help To make the code more universal
...

http://www.unixtutorial.org/2008/05/ubuntu-uuid-how-to/

Hope that helps.

#4 sara - pmedia

sara - pmedia

    Frequent Member

  • Lady
  • 172 posts
  • Location:tel aviv
  •  
    Israel

Posted 08 February 2011 - 03:37 PM

Thank you very much but I have no time to learn the theory of Linux commands :smiling9:


Does anyone know the correct combination to find /ubuntu.vhd and set root to the coronet drive (root=/dev/sdb1)

This file is in this path

<usb drive>\ubuntu-1004\ubuntu-1004-desktop-i386.vhd


title      ubuntu  VHD Boot

kernel  /ubuntu-1004/vmlinuz-2.6.32-21-generic root=/dev/sdb1 vloop=/ubuntu-1004/ubuntu-1004-desktop-i386.vhd vlooppart=p1 quiet splash

initrd  /ubuntu-1004/initrd.img-2.6.32-21-generic

how to set root for this??

#5 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13750 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 08 February 2011 - 06:56 PM

Thank you very much but I have no time to learn the theory of Linux commands :cheers:


Does anyone know the correct combination to find /ubuntu.vhd and set root to the coronet drive (root=/dev/sdb1)


Sarah you need to calculate yourself the UUID, that's entirely the point of the link Sha0 gave you.

It tells you that instead of "hardcoding" a device, like
root=/dev/sdb1
you can dynamically set it from it's UUID, like:
root=UUID=c73a37c8-ef7f-40e4-b9de-8b2f81038441

grub4dos has also UUID capabilities:

******************************************************************************
*** New command 'uuid' to identify partitions ***
******************************************************************************

Usage:

uuid [DEVICE] [UUID]

If DEVICE is not specified, search for filesystem with UUID in all partitions
and set the partition containing the filesystem as new root (if UUID is
specified), or just list uuid's of all filesystems on all devices (if UUID is
not specified). If DEVICE is specified, return true or false according to
whether or not the DEVICE matches the specified UUID (if UUID is specified),
or just list the uuid of DEVICE (if UUID is not specified).

Example 1:

find --set-root uuid () 7f95820f-5e33-4e6c-8f50-0760bf06d79c

which will find a partition with uuid=7f95820f-5e33-4e6c-8f50-0760bf06d79c
and set the partition as root if found.

Example 2:

uuid ()

which will print the uuid of the current root device.


I hope it is more clear now. :dubbio:

:unsure:
Wonko

#6 sara - pmedia

sara - pmedia

    Frequent Member

  • Lady
  • 172 posts
  • Location:tel aviv
  •  
    Israel

Posted 08 February 2011 - 08:16 PM

@wonko

tnks, If you can explain to me a few things

* Did uuid mean drive id like the one i give with rename drive from windows (e.g data)? or its some kind of serial number of the device
?

I realized it a unique identifying number to each device
Is there another way to find out the uuid except "blkid" in terminal


* standard find --set-root /ubuntu.vhd can work? Or it works only on g4d full booting and for linux we must use uuid?

#7 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13750 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 08 February 2011 - 08:37 PM

* Did uuid mean drive id like the one i give with rename drive from windows (e.g data)? or its some kind of serial number of the device?

It is "some kind of of serial number" it is a "unique identifier"

* standard find --set-root /ubuntu.vhd can work? Or it works only on g4d full booting and for linux we must use uuid?

Sure, it can work, but the point is that you seemingly have to pass the "root=" parameter to the kernel (this is a requirement of Linux).

Get to a command prompt of grub4dos and just type in it:
uuid
[ENTER]

it will list the UUID's of all available devices.

Or try:
find --set-root /whatever.vhd
[ENTER]
uuid ()
[ENTER]

this is attached to the "partition" and as long as you do not re-format it, it will always remain the same.

now, trying passing the uuid to the "root=" kernel parameter as in the previously given link.

:dubbio:
Wonko

#8 sara - pmedia

sara - pmedia

    Frequent Member

  • Lady
  • 172 posts
  • Location:tel aviv
  •  
    Israel

Posted 09 February 2011 - 12:14 PM

@Wonko @sha0

Thank you both :confused1:
I did not think it's so simple :rolleyes:

Now code is fully universal :cheers:

I updated the first post

#9 ireneuszp

ireneuszp

    Frequent Member

  • Advanced user
  • 191 posts
  •  
    Poland

Posted 09 February 2011 - 09:39 PM

Is there another way to find out the uuid except "blkid" in terminal


yes,

Display the UUID for the specified volume.

SYNTAX:
vbootedit uuid drive_letter

OPTIONS:
driver_letter
Specify a drive letter to display its UUID.

EXAMPLES:
vbootedit uuid C:

or blkid.cmd from here http://grub4dos-iren...m/files/uuid.7z
or Grub4DOS Toolbox for Windows http://sourceforge.n...rub4dostoolbox/

http://farter.users....toolbox/page/2/

6. Display UUID of mounted Windows partitions



 This will list UUID(s) of all mounted  partitions (except network and ram disks) in current Windows. The  results can be copied to other text editor to be used for writing  menu.lst files.



 Note: Although this task will display  UUID of exFAT partitions on Windows with exFAT support, exFAT is not yet  supported by GRUB4DOS.





:cheers:

#10 daddy_fizz

daddy_fizz
  • Members
  • 8 posts

Posted 24 March 2011 - 01:40 AM

So does this require a modified kernel (i.e. those files you have listed to download?) I was hoping to use this with a Live/Persistent USB install. I would want to put the casper-rw file inside of a VHD instead of making a second FAT32 partition on my USB...

#11 sara - pmedia

sara - pmedia

    Frequent Member

  • Lady
  • 172 posts
  • Location:tel aviv
  •  
    Israel

Posted 24 March 2011 - 02:08 AM

if you want boot several ubuntu\kubuntu livecd versions all you need its this code. you dont need extract the iso files...


title Ubuntu LiveCD

find --set-root /Images/ubuntu.iso

map /Images/ubuntu.iso (0xff)

map --hook

root (0xff)

kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=/Images/ubuntu.iso quiet splash --

initrd /casper/initrd.lz

boot


#12 daddy_fizz

daddy_fizz
  • Members
  • 8 posts

Posted 24 March 2011 - 02:10 AM

Yeah I can get that to work no problem, and I also know that you can make a second partiton and make it FAT32 and put the casper-rw file on there. What I was hoping to do was to just have one partition (NTFS) and have a VHD file with the casper-rw file inside of it. I would then mount that and wouldn't have to bother with a second partition...

#13 sara - pmedia

sara - pmedia

    Frequent Member

  • Lady
  • 172 posts
  • Location:tel aviv
  •  
    Israel

Posted 24 March 2011 - 07:18 AM

ok i get your point, You want to put all linux tools that must be in fat32 into a vhd to save the need to create another partition .

I do not know if it is possible for all linux systems. gRUB4DOS can only map and start the first phase of the booting but the linux system itself must be able to map and access to the vhd or its not find the files .....
(in my case i use modified kernel for do it)
certainly it does not exist for all systems...

I personally also had to work with another fat32 partition for all surdu tools

#14 linuxbaby

linuxbaby

    Frequent Member

  • .script developer
  • 139 posts
  •  
    Germany

Posted 24 March 2011 - 10:46 AM

<your drive>\ubuntu-1004\ubuntu-1004-desktop-i386.vhd - download

<your drive>\fedora-13\fedora-13-i686.vhd - download

<your drive>\mint-9\mint-9-gnome-i386.vhd - download


Hello sara - pmedia

the download links are broken by the provider.

The new download links are here: (after register)

http://www.vmlite.co...d=22:appliances

regards and many "thank's" for your fantastic work,
linus

#15 voyager2

voyager2
  • Members
  • 4 posts
  •  
    Bulgaria

Posted 30 October 2012 - 08:25 AM

Hello everyone :smiling9:

I already told you about my "Sara's multi boot disc" :1st: :1st: Includes everything..

To this day, I would use a separate ext3 partition for each linux (Ubuntu,kubuntu,mint,fedora...) I installed it.

But now you can run them all from vhd file. :w00t:


* no ext3 partition needed
* One file instead of many files
* Virtual machine also works
* No need to use vboot.mbr - work directly from g4d


Enjoy this code & attached files I uploaded :juggler:

That's how it should show

ubuntu

<your drive>ubuntu-1004initrd.img-2.6.32-21-generic - download
<your drive>ubuntu-1004vmlinuz-2.6.32-21-generic - download
<your drive>ubuntu-1004ubuntu-1004-desktop-i386.vhd - download

title ubuntu VHD Boot

kernel /ubuntu-1004/vmlinuz-2.6.32-21-generic root=UUID=<your uuid> vloop=/ubuntu-1004/ubuntu-1004-desktop-i386.vhd vlooppart=p1 quiet splash

initrd /ubuntu-1004/initrd.img-2.6.32-21-generic


fedora

<your drive>fedora-13vmlinuz-2.6.33.3-85.fc13.i686 - download
<your drive>fedora-13initramfs-2.6.33.3-85.fc13.i686.img - download
<your drive>fedora-13fedora-13-i686.vhd - download

title	Fedora VHD Boot

kernel /fedora-13/vmlinuz-2.6.33.3-85.fc13.i686 root=UUID=<your uuid> vloop=/fedora-13/fedora-13-i686.vhd vlooppart=p1 quiet splash

initrd /fedora-13/initramfs-2.6.33.3-85.fc13.i686.img


mint

<your drive>mint-9initrd.img-2.6.32-21-generic - download
<your drive>mint-9vmlinuz-2.6.32-21-generic - download
<your drive>mint-9mint-9-gnome-i386.vhd - download


title	mint-9 VHD Boot

kernel /mint-9/vmlinuz-2.6.32-21-generic root=UUID=<your uuid> vloop=/mint-9/mint-9-gnome-i386.vhd vlooppart=p1 quiet splash

initrd /mint-9/initrd.img-2.6.32-21-generic

links are dead is there a way to create our own whds and use them ?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users