Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 25 Jul 2014, 07:21
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How can I boot an iso with grub4dos?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 5 of 5 Posts_count   Goto page: Previous 1, 2, 3, 4, 5
Author Message
session


Joined: 07 Feb 2011
Posts: 89
Location: Valley of the Sun

PostPosted: Tue 10 Dec 2013, 17:33    Post_subject:  

I wrote:
Using grub4dos, can I boot a Debian-based distribution from the hard drive (extracted from iso or not)...

This will do it, with filesytem.squashfs, initrd.lz, and vmlinuz in the live media path:

Code:
title LMDE extracted
  kernel /frugal-debian/vmlinuz boot=live config live-media-path=/frugal-debian
  initrd /frugal-debian/initrd.lz

...if and only if you also place the hidden .disk folder from the iso to the top level of the hard drive.

_________________
Primary - Intel Celeron 1.80GHz, 579MB RAM, ATI Rage 128 Pro ULTRA TF. Precise Puppy 5.7.1 Retro full install.
Secondary - Pentium 3 533MHz, 385MB RAM, Matrox MGA-G200 AGP. Precise Puppy 5.7.1 Retro frugal install. (IDE HD is 428 MB!)
Back to top
View user's profile Send_private_message 
mcewanw

Joined: 16 Aug 2007
Posts: 2246
Location: New Zealand

PostPosted: Wed 18 Dec 2013, 23:20    Post_subject: frugal install of lubuntu livecd on ntfs hd using grub4dos  

session wrote:

It took trial-and-error, but Ubuntu live-cd variants can be booted with grub4dos similarly:
Code:
title Frugal Ubuntu
  kernel /frugal-ubuntu/vmlinuz boot=casper iso-scan/filename=/frugal-ubuntu/frugal-ubuntu.iso
  initrd /frugal-ubuntu/initrd.lz

...as long as vmlinuz and initrd are extracted from the .iso and correctly pointed to in menu.lst


That worked fine, thanks. I have my lubuntu iso on the third partition of my ntfs formatted hd, so successfully using your formula with:

Code:

title Frugal Lubuntu
  kernel (hd0,2)/frugal-ubuntu/vmlinuz boot=casper iso-scan/filename=/frugal-ubuntu/lubuntu-13.10-desktop-i386.iso
  initrd (hd0,2)/frugal-ubuntu/initrd.lz
  boot


I guess the above will work with wattOS too: http://www.planetwatt.com/

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
mcewanw

Joined: 16 Aug 2007
Posts: 2246
Location: New Zealand

PostPosted: Thu 19 Dec 2013, 07:04    Post_subject: Can't get persistence to work with casper-rw file on hd  

I have a problem with above lubuntu iso booting method though: I can't get persistence to work when casper-rw file is stored on an ntfs formatted hard drive partition. If I create the file casper-rw and place it in /dev/sda3 (the ntfs hard drive partition where I have live lubuntu) it doesn't get detected at boot time. i.e. no persistence even though i have the word "persistent" at the end of the menu.lst kernel line. I've tried storing it in /dev/sda1 (which is also ntfs) but not recognised there either.

I do get persistence if I move the casper-rw file onto a usb drive however... But I don't want that - rather, I want persistence when casper-rw file is on same harddrive partition the lubuntu iso is stored. Apparently, casper-rw isn't being recognised at boot time when I store it on the harddrive partition.

Anyone know how to do get the harddrive stored casper-rw recognised so that persistence will work? Really a question for lubuntu forums I suppose, though it otherwise fits this thread and might be relevant to save files generally.

EDIT: Seems that casper-rw has to be on an ext... or fat partition not ntfs so that it is visible during boot according to my interpretation of:

https://help.ubuntu.com/community/LiveCD/Persistence.

Quote:
The file must be named casper-rw and must be on the root of a partition. This partition can be any type that can be mounted automatically (e.g. vfat or ext3)


That would explain why it worked when I put casper-rw on a usb flash stick...

That is a pity... I want it on the ntfs hard drive...

EDIT: Of course, I could avoid having to copy vmlinuz etc out of the iso by using map commands and so on aka Easy2boot or Isoloader as described here:
http://www.rmprepusb.com/tutorials/72---easyboot---a-grubdos-multiboot-drive-that-is-easy-to-maintain.
http://murga-linux.com/puppy/viewtopic.php?p=682458#682458.
http://www.murga-linux.com/puppy/viewtopic.php?t=67235&search_id=122987820.
Actually, I think a similar partnew/map technique might allow casper-rw to be found on hd but I've still to try this using empty partition table entry. I will report back if I ever manage.

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
gcmartin

Joined: 14 Oct 2005
Posts: 4088
Location: Earth

PostPosted: Fri 20 Dec 2013, 02:01    Post_subject:  

Hope this helps
_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send_private_message 
mcewanw

Joined: 16 Aug 2007
Posts: 2246
Location: New Zealand

PostPosted: Fri 20 Dec 2013, 04:12    Post_subject: getting casper-rw file recognised on ntfs hd  

gcmartin wrote:
Hope this helps


Sorry, I didn't see what that website had to do with iso booting with grub4dos - though I just had a quick glance at it.

I have however elsewhere found the method to use a lubuntu casper-rw file on ntfs, though I haven't tried it yet (too risky till my 2 year old is sleeping; have to use grub4dos partnew command with care because it writes to the partition table). Needs an empty partition table entry to point at the casper-rw file. My netbook has the first three partitions already occupied, all ntfs partitions and Win 7, so I want to make a back up of the boot sector/mbr stuff before trying this:

http://www.rmprepusb.com/tutorials/ubuntu

Quote:

PLEASE NOTE: Many linux versions (including Ubuntu) will not automatically mount a persistent filesystem if it is a file on an NTFS filesystem (i.e. if your casper-rw is file on an NTFS USB drive then it won't work!)

However, there is a way around this.

First create your casper-rw file as explained in Step 5 - you MUST create the Ext2 file as casper-rw as this also sets the volume name of the filesystem to casper-rw.
Next rename the casper-rw file to a suitable name (e.g. Ubuntu1204-rw) - this step is optional but it avoids any other linux you have trying to use casper-rw - you can thus have many linux ISOs that all try to use 'casper-rw' on the same USB boot drive.
Ensure that the fle is contiguous (run RMPrepUSB - Ctrl+F2 on the drive)
Now add an extra line to the beginning of your grub4dos menu as a line just under the title line, as follows:

partnew (hd0,3) 0x0 //ubuntu1204-rw


IMPORTANT: This will wipe the 4th partition entry of your boot disk! Make sure that the 4th partition table is empty (use RMPrepUSB - Drive Info - 0 to check).

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
mcewanw

Joined: 16 Aug 2007
Posts: 2246
Location: New Zealand

PostPosted: Fri 20 Dec 2013, 06:38    Post_subject: Re: frugal install of lubuntu livecd on ntfs hd using grub4dos  

session wrote:

It took trial-and-error, but Ubuntu live-cd variants can be booted with grub4dos similarly:
...
...as long as vmlinuz and initrd are extracted from the .iso and correctly pointed to in menu.lst


The following booted successfully without requiring vmlinuz and initrd.lz being extracted from the iso. From http://www.rmprepusb.com/tutorials/ubuntu (modified for the lubuntu iso I am using):

Code:

title frugal lubuntu method2
find --set-root /frugal-ubuntu/lubuntu-13.10-desktop-i386.iso
map /frugal-ubuntu/lubuntu-13.10-desktop-i386.iso (0xff) || map --mem /frugal-ubuntu/lubuntu-13.10-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz  file=/cdrom/preseed/lubuntu.seed noprompt boot=casper persistent iso-scan/filename=/frugal-ubuntu/lubuntu-13.10-desktop-i386.iso quiet splash --
initrd /casper/initrd.lz

Note, however, that session's method above doesn't require the iso to be stored contiguously on the disk (though it may be best if it is...). This second method, however, uses up a lot of RAM if the iso isn't stored contiguously, though it will also still boot. That's because the map --mem line causes the whole iso to be copied into RAM to make it a contiguous whole should it not be contiguous on the harddrive itself:
Code:

map /frugal-ubuntu/lubuntu-13.10-desktop-i386.iso (0xff) || map --mem /frugal-ubuntu/lubuntu-13.10-desktop-i386.iso (0xff)


Note from the above that on my system I have the lubuntu live-cd iso stored in subdirectory /frugal-ubuntu of the ntfs partition (/dev/sda3) I'm booting lubuntu from. This partition also contains Windows 7, which came with the system. I used bcdedit to add grub4dos to the win7 boot process (as is nicely described in ICPUG's Lin'N'Win website): http://www.icpug.org.uk/national/linnwin/step2-7.htm

I still haven't added the partnew grub4dos lines to allow the casper-rw file to be stored on the ntfs formatted hard-drive. I'm working up to trying that. I'll use wincontig to fix the non-contiguous iso file first: http://wincontig.mdtzone.it/en/

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
mcewanw

Joined: 16 Aug 2007
Posts: 2246
Location: New Zealand

PostPosted: Fri 20 Dec 2013, 09:37    Post_subject:  

SUCCESS! Booting lubuntu live-cd iso stored in subdirectory of ntfs formatted harddrive (hd0,2 in my case, which is /dev/sda3) with persistence using casper-rw ext2 file also stored on same ntfs formatted harddrive.

3am now, so I'll write it up tomorrow.

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
mcewanw

Joined: 16 Aug 2007
Posts: 2246
Location: New Zealand

PostPosted: Fri 20 Dec 2013, 21:07    Post_subject: booting live-cd iso in ntfs hd subdirectory with grub4dos
Sub_title: with persistence working
 

For my own documentation use, I've stored reasonably complete details of how I got persistence working for a casper-rw persistence file stored in a subdirectory on an ntfs formatted hd partition (along with the live-cd iso) in a howto here:

http://www.murga-linux.com/puppy/viewtopic.php?p=745265#745265

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
session


Joined: 07 Feb 2011
Posts: 89
Location: Valley of the Sun

PostPosted: Thu 06 Mar 2014, 07:37    Post_subject: grub4dos and LMDE 201403  

What's up with LMDE 201403? I can't get it to boot the squashfs directly from hdd as I described with earlier versions...
_________________
Primary - Intel Celeron 1.80GHz, 579MB RAM, ATI Rage 128 Pro ULTRA TF. Precise Puppy 5.7.1 Retro full install.
Secondary - Pentium 3 533MHz, 385MB RAM, Matrox MGA-G200 AGP. Precise Puppy 5.7.1 Retro frugal install. (IDE HD is 428 MB!)
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 5 of 5 Posts_count   Goto page: Previous 1, 2, 3, 4, 5
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0842s ][ Queries: 11 (0.0041s) ][ GZIP on ]