Jump to content











Photo
- - - - -

Direct Loading of LiveHacking CD ?


  • Please log in to reply
19 replies to this topic

#1 mbzadegan

mbzadegan

    Member

  • Members
  • 80 posts
  •  
    Germany

Posted 15 September 2011 - 07:09 AM

Dear all ,
i downloaded livehacking cd ( UBUNTU BASE )and extract its files to my HDD livehacking folder .
Now , How i could load it by GRUB4DOS ?
i tested it by follow menu.lst too .


title LiveHacking
root (hd0,1)
find --set-root /livehacking/casper/vmlinuz
kernel /livehacking/casper/vmlinuz
append root=/dev/sda2 file=/livehacking/preseed/ubuntu.seed boot=casper initrd=/livehacking/casper/initrd.lz

Edited by mbzadegan, 15 September 2011 - 07:55 AM.


#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 8,784 posts
  • Location:The Outside of the Asylum
  •  
    Italy

Posted 15 September 2011 - 08:12 AM

title LiveHacking
root (hd0,1)
find --set-root /livehacking/casper/vmlinuz
kernel /livehacking/casper/vmlinuz
append root=/dev/sda2 file=/livehacking/preseed/ubuntu.seed boot=casper initrd=/livehacking/casper/initrd.lz

Since WHEN append is a grub4dos command? :w00t:

READ:
http://reboot.pro/15321/page__st__25

:cheers:
Wonko

#3 mbzadegan

mbzadegan

    Member

  • Members
  • 80 posts
  •  
    Germany

Posted 15 September 2011 - 08:22 AM

oh , thanks , i changed to grub4dos command :)

title LiveHacking
root (hd0,1)
find --set-root /livehacking/casper/vmlinuz
kernel /livehacking/casper/vmlinuz root=/dev/sda2 file=/livehacking/preseed/ubuntu.seed boot=casper

initrd /livehacking/casper/initrd.lz

And meanwhile LiveHacking CD is too similar to UBUNTU CD ,
This means that how i could direct booting of UBUNTU CD with GRUB4DOS ? :dubbio:

#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 8,784 posts
  • Location:The Outside of the Asylum
  •  
    Italy

Posted 15 September 2011 - 08:42 AM

Do you have an idea of HOW MANY Ubuntu versions are around?

Your question sounds like "how can I fix a car"?
To which the answer is obviously "Since a car is not completely unlike a nuclear submarine, you fix it the same way you would fix a helicopter!" :w00t:

And usually SEARCHING for it is a good idea (I have seen cases of people searching and not finding :( and of people searching and finding :), but very few of people finding without searching :frusty:).

:cheers:
Wonko

#5 mbzadegan

mbzadegan

    Member

  • Members
  • 80 posts
  •  
    Germany

Posted 15 September 2011 - 09:11 AM

While do not speak about version by default is final stable version ! :frusty:
I search about it alot :suda: but most of them want to load ISO with grub4dos and i don't want it .
( i want to boot directly from KERNEL and INITRD of UBUNTU without need to any ISO )

Edited by mbzadegan, 15 September 2011 - 09:14 AM.


#6 steve6375

steve6375

    Platinum Member

  • Developer
  • 3,760 posts
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom

Posted 15 September 2011 - 09:22 AM

Why don't you just look at the syslinux.cfg file and use those entries in grub4dos then (after syntax conversion)?

#7 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 8,784 posts
  • Location:The Outside of the Asylum
  •  
    Italy

Posted 15 September 2011 - 10:47 AM

While do not speak about version by default is final stable version ! :frusty:


Let me understand, you have an Ubuntu before you and it is too much work for you to write Ubuntu 11.04? :dubbio:
And how is everyone to assume that you are not using the 11.10 Beta 1, or even if you are not into Beta's (how woulod anyine else possibly know) you are not doing the "better be safe than sorry" choice and use the LTS 10.04?
And why couldn't it be Ubuntu Server?

Had you simply googled for "Ubuntu 11.04 grub4dos" you may have found (simply):
http://sites.google....utorials/ubuntu

What do you think it will be different (apart removing the .iso mapping and the iso-scan)?

What are these Russian guys seemingly talking about?

http://forum.ubuntu....?topic=150556.0

Let's see if google translate helps:
http://translate.goo...&hl=it&ie=UTF-8

I just noticed how you have no more spoon feeding vouchers left, sorry. :(

:cheers:
Wonko

#8 mbzadegan

mbzadegan

    Member

  • Members
  • 80 posts
  •  
    Germany

Posted 15 September 2011 - 11:14 AM

All of your suggestions need ISO file to do it :( And i could not load ISO files for my limitation . :unsure:
i tested this senario with latest ubuntu link address http://www.ubuntu.co...ubuntu/download ( ubuntu 11.04 ) and livehacking link address http://sourceforge.n...ni.iso/download .
please only help me ( if you can ) without any sikt .

#9 steve6375

steve6375

    Platinum Member

  • Developer
  • 3,760 posts
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom

Posted 15 September 2011 - 12:13 PM

Looking at the cfg files in the livehacking image we have


default live

label live

  menu label ^Boot Live Hacking Mini CD

  kernel /casper/vmlinuz

  append  file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz --

label check

  menu label ^Check disc for defects

  kernel /casper/vmlinuz

  append  boot=casper integrity-check initrd=/casper/initrd.lz quiet splash --

label memtest

  menu label Test ^memory

  kernel /install/mt86plus

label hd

  menu label ^Boot from first hard disk

  localboot 0x80

 


so try...



 

title Boot Live Hacking Mini CD

kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz --

initrd /casper/initrd.lz

 

title Check disc for defects

kernel /casper/vmlinuz boot=casper integrity-check initrd=/casper/initrd.lz quiet splash --

initrd /casper/initrd.lz


HTH (Edited and works!)

#10 mbzadegan

mbzadegan

    Member

  • Members
  • 80 posts
  •  
    Germany

Posted 15 September 2011 - 12:27 PM

dear steve6375 ;

your hint is true if original CD was in the cdrom .
i want to boot ( on my HDD ) with grub4dos and without any CD or ISO .
when i boot with this menu.lst :


title My LiveHacking
root (hd0,1)
find --set-root /livehacking/casper/vmlinuz
kernel /livehacking/casper/vmlinuz file=/livehacking/preseed/ubuntu.seed boot=casper console-setup/variantcode=nodeadkeys
initrd /livehacking/casper/initrd.lz

The message of line 1 in init file /dev/sr0 was error !!
appear that i must remaster init file to point to HDD . ( /dev/sda2 )

#11 steve6375

steve6375

    Platinum Member

  • Developer
  • 3,760 posts
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom

Posted 15 September 2011 - 01:08 PM

See edited menu - I tested this in QEMU and it seems to boot OK (no GUI).

#12 mbzadegan

mbzadegan

    Member

  • Members
  • 80 posts
  •  
    Germany

Posted 15 September 2011 - 02:20 PM

See edited menu - I tested this in QEMU and it seems to boot OK (no GUI).


What's your edited menu ?! :wacko:

#13 steve6375

steve6375

    Platinum Member

  • Developer
  • 3,760 posts
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom

Posted 15 September 2011 - 02:28 PM

Not telling you! But there is a clue in an earlier post!

#14 Njorl

Njorl
  • Members
  • 1 posts
  •  
    United Kingdom

Posted 16 September 2011 - 04:59 PM

I suggest a couple of extra boot parameters for the kernel line:
live-media=/dev/sda2 {change "sda2" as appropriate}
live-media-path=/whatever/casper {change "whatever/casper", as appropriate to locate directory containing filesystem.squashfs}

A useful page (probably, the definitive guide) is:
http://manpages.ubun...ve-getty.7.html

#15 ReTokener

ReTokener

    Member

  • Advanced user
  • 60 posts

Posted 16 September 2011 - 07:07 PM

The code for the menu.lst to start the non-GUI mini-CD is

title Boot Live Hacking Mini CD
kernel /casper/vmlinuz file=/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz --
initrd /casper/initrd.lz

if you copied files and folders to the root (of your systemdrive).

#16 mbzadegan

mbzadegan

    Member

  • Members
  • 80 posts
  •  
    Germany

Posted 17 September 2011 - 04:19 AM

I suggest a couple of extra boot parameters for the kernel line:
live-media=/dev/sda2 {change "sda2" as appropriate}
live-media-path=/whatever/casper {change "whatever/casper", as appropriate to locate directory containing filesystem.squashfs}



The code for the menu.lst to start the non-GUI mini-CD is
title Boot Live Hacking Mini CD
kernel /casper/vmlinuz file=/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz --
initrd /casper/initrd.lz
if you copied files and folders to the root (of your systemdrive).


on Both of them PC Hanged in line :
/init: line 1: Can't open /dev/sr0: No medium found

Edited by mbzadegan, 17 September 2011 - 04:27 AM.


#17 ReTokener

ReTokener

    Member

  • Advanced user
  • 60 posts

Posted 17 September 2011 - 11:39 AM

Hi mbzadegan
Did you copy the cd-content to the root of your systemdrive ?
If they are copied to "/livehacking" it won´t work.
btw.: What OS are you using ?

#18 mbzadegan

mbzadegan

    Member

  • Members
  • 80 posts
  •  
    Germany

Posted 17 September 2011 - 12:36 PM

Woww :clap: , Bravo ReTokener .
My problem solved when i move livehacking folder contents to root . :lol:

#19 ReTokener

ReTokener

    Member

  • Advanced user
  • 60 posts

Posted 17 September 2011 - 02:03 PM

Thanks mbzadegan
but this kudo belongs to steve6375 for his previous post #9.

#20 mbzadegan

mbzadegan

    Member

  • Members
  • 80 posts
  •  
    Germany

Posted 17 September 2011 - 05:30 PM

Thanks mbzadegan
but this kudo belongs to steve6375 for his previous post #9.

Yes , of course . :wub:

Edited by mbzadegan, 17 September 2011 - 05:34 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users