Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Booting Gentoo LiveDVD from Grub4DOS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mbzadegan
n00b
n00b


Joined: 26 Sep 2017
Posts: 13

PostPosted: Tue Sep 26, 2017 12:56 pm    Post subject: Booting Gentoo LiveDVD from Grub4DOS Reply with quote

Hi every body,
I'm Gentoo newbe.
How I can booting Gentoo LiveDVD from the Grub4DOS?
Thanks.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Tue Sep 26, 2017 1:01 pm    Post subject: Reply with quote

Hi!,

Here is a sample showing systemrescuecd : https://gist.github.com/poppen/3161814

If Gentoo Live CD/DVD is not working, you can run any Linux live distribution (I would recommend System Rescue CD, based on Gentoo and more complete than the Gentoo Live DVD)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
mbzadegan
n00b
n00b


Joined: 26 Sep 2017
Posts: 13

PostPosted: Tue Sep 26, 2017 6:32 pm    Post subject: Reply with quote

xaviermiller wrote:
Hi!,

Here is a sample showing systemrescuecd : https://gist.github.com/poppen/3161814

If Gentoo Live CD/DVD is not working, you can run any Linux live distribution (I would recommend System Rescue CD, based on Gentoo and more complete than the Gentoo Live DVD)


Thanks for your guide.
I did your suggestion and Grub4DOS could starting to boot Gentoo.iso but Hanged on this screenshot!
http://uupload.ir/files/4bep_photo5933618025641126499.jpg
How can I resolve this issue :?:
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9678
Location: almost Mile High in the USA

PostPosted: Tue Sep 26, 2017 8:26 pm    Post subject: Reply with quote

It looks like the kernel you're using on that live media does not support the hardware that your boot media drive is connected to. You got as far as you did because BIOS was able to copy enough of the image into ramdisk, but now the kernel took over and got confused.

What hardware are you using (motherboard or at least brand or model of computer), and what boot image are you using (and which version of it?) You should try another boot image as the easiest workaround.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
mbzadegan
n00b
n00b


Joined: 26 Sep 2017
Posts: 13

PostPosted: Tue Sep 26, 2017 9:02 pm    Post subject: Reply with quote

My CPU is intel core i7 and my notebook is DELL Latitude E6410.
I tried livedvd-x86-amd64-32ul-20160704.iso and I booted both of x86 and amd64 in both generic mode and no framebuffer mode but still errored me "No bootable Media Found".
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9678
Location: almost Mile High in the USA

PostPosted: Tue Sep 26, 2017 9:25 pm    Post subject: Reply with quote

strange, this isn't one of the newest machines out there. some things that should be tried:
- another usb port? usb3 ports have historically caused trouble.
- getting a real usb dvd drive is helpful.
- and definitely, another boot disk like the system rescue cd.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
mbzadegan
n00b
n00b


Joined: 26 Sep 2017
Posts: 13

PostPosted: Wed Sep 27, 2017 5:28 am    Post subject: Reply with quote

eccerr0r wrote:
strange, this isn't one of the newest machines out there. some things that should be tried:
- another usb port? usb3 ports have historically caused trouble.
- getting a real usb dvd drive is helpful.
- and definitely, another boot disk like the system rescue cd.


I tried SystemRescueCD.iso on another Desktop with Intel CoreI3 CPU and got these messages:
http://uupload.ir/files/b6ao_photo5933994217531615721.jpg
Also, All of My Desktop USBs are USB2.
Back to top
View user's profile Send private message
mbzadegan
n00b
n00b


Joined: 26 Sep 2017
Posts: 13

PostPosted: Wed Sep 27, 2017 6:38 am    Post subject: Reply with quote

BTW, I run Slitaz and other My Distros by GRUB4DOS truely but Still I could not boot from GRUB4DOS in any Gentoo OS!
Another Question,
Is that issue depend on my Flash USB NTFS file system?
Back to top
View user's profile Send private message
bitcruiser
n00b
n00b


Joined: 27 Sep 2017
Posts: 3

PostPosted: Wed Sep 27, 2017 11:53 am    Post subject: Reply with quote

mbzadegan wrote:
BTW, I run Slitaz and other My Distros by GRUB4DOS truely but Still I could not boot from GRUB4DOS in any Gentoo OS!
Another Question,
Is that issue depend on my Flash USB NTFS file system?


Yes it may or It looks like your SystemRescueCd is bad or it does not recognize your CD-ROM drive. It happened to me before.

You could try SystemRescueImage available at http://mindbytez.com/oss/index.html on a usb flash disk. It never failed me.


Last edited by bitcruiser on Wed Sep 27, 2017 5:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Sep 27, 2017 11:58 am    Post subject: Reply with quote

A properly created bootable USB stick will contain ISO filesystem. Whatever there was before will be gone.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
bitcruiser
n00b
n00b


Joined: 27 Sep 2017
Posts: 3

PostPosted: Wed Sep 27, 2017 12:30 pm    Post subject: Reply with quote

Jaglover wrote:
A properly created bootable USB stick will contain ISO filesystem. Whatever there was before will be gone.


I respectfully disagree.

A USB stick with an ISO file system will not boot, because an ISO has no MBR. ISO will only be booted on a CD-ROM disk.

Therefor if you write the SystemRescueCD directly on a usb stick by e.g. in Linux

Code:
dd if=/path/to/systemrescuecd-x86-5.1.0.iso of=/dev/sd${yourflashdisk}

your USB stick will NOT boot.


But if you do

Code:
dd if=/path/to/SystemRescueImage-x86-5.1.0.img of=/dev/sd${yourflashdisk}

your USB stick WILL boot.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9678
Location: almost Mile High in the USA

PostPosted: Wed Sep 27, 2017 6:21 pm    Post subject: Reply with quote

Actually I found that a lot of MBR firmware will notice an El Torito boot sector on flash sticks and boot that, despite it being "wrong" - and hence we see the partial boots in this thread. However perhaps it is a "bug" that these boot disks do not recognize iso9660 as a valid filesystem on "hard disk" devices such as flash sticks and not try to mount them as such - and then try to detect the root image after mounting the iso9660 like a normal cdrom.

But yes, if you can find a flash stick image, yes, use those and not iso9660 images, for the general case where most MBR BIOS expect MBR boot sectors on flash sticks and hard drives.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
mbzadegan
n00b
n00b


Joined: 26 Sep 2017
Posts: 13

PostPosted: Wed Sep 27, 2017 6:47 pm    Post subject: Reply with quote

Unfortunately, I must be use NTFS or FAT32 file system because my memstick flash USB is general purpose and use to file transfer in Windows or BSD environments.
The condition of file system is vital for me and this condition force me to use Grub4DOS.
Welcome to Any other suggestions...
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9678
Location: almost Mile High in the USA

PostPosted: Wed Sep 27, 2017 7:56 pm    Post subject: Reply with quote

Oh, I see now...

Unfortunately you'll need to step into the deep end of the pool to get this to work...

I don't know if these live images can find the boot media, mount them, and then loopback mount the image inside, and then grab the root image inside of them. Automatically finding the file image that grub4dos used would be quite challenging (it would have to be hard coded inside the iso/img image which is not standard practice) - so this, at least as of today, doubt it's supported by these images. Maybe the image can take a parameter with the filename, that would also work so it leaves it to the user to know how the boot media is set up.

I have never attempted this but by the above, it is possible, just that you may need to do each step manually... or if we're lucky there is that file parameter somewhere. Might have to download the image and sneak a peek...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Sep 27, 2017 8:49 pm    Post subject: Reply with quote

ISO image certainly boots from USB after treatment with isohybrid (comes with syslinux). I see now this is not the goal.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
mbzadegan
n00b
n00b


Joined: 26 Sep 2017
Posts: 13

PostPosted: Wed Sep 27, 2017 9:06 pm    Post subject: Reply with quote

OK, Thanks all.
Does all of the Gentoo base live images have this issue with Grub4DOS?
I tried SystemRescueCD and still it could not boot with Grub4DOS correctly.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9678
Location: almost Mile High in the USA

PostPosted: Wed Sep 27, 2017 10:42 pm    Post subject: Reply with quote

Which distros work?
Did you have to do anything special to Slitaz to get it to work?
I would have thought it depends quite a bit of how the distribution initramfs is written, whether they take doing this into account ahead of time whether or not this will work.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
bitcruiser
n00b
n00b


Joined: 27 Sep 2017
Posts: 3

PostPosted: Fri Sep 29, 2017 9:49 am    Post subject: Reply with quote

Jaglover wrote:
ISO image certainly boots from USB after treatment with isohybrid (comes with syslinux). I see now this is not the goal.


If you treat an ISO file with the program "isohybrid", it is not really an ISO file any more, but a hybrid.

An MBR is not part of the file system standard ISO 9660.
Back to top
View user's profile Send private message
mbzadegan
n00b
n00b


Joined: 26 Sep 2017
Posts: 13

PostPosted: Fri Sep 29, 2017 10:33 am    Post subject: Reply with quote

xaviermiller wrote:
(I would recommend System Rescue CD, based on Gentoo and more complete than the Gentoo Live DVD)


Now, I tried it on FAT32 (Another Flash USB memstick) and still I could not boot SystemRescueCD by Grub4DOS!
Did Anyone can boot SystemRescueCD by Grub4DOS without any issue?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9678
Location: almost Mile High in the USA

PostPosted: Fri Sep 29, 2017 5:12 pm    Post subject: Reply with quote

I saw the anecdote

"For booting SystemRescueCD, you need to put 'sysrcd.dat' file in the iso to root of the drive."

on that first page that was suggested, was this followed? Note that sysrcd.dat is pretty much the contents of the systemrescue CD (the squashfs root, so basically it will increase flash usage from ~500MB to ~900MB)... which would also solve the problem as then the initramfs of systemrescue cd would no longer need to loop mount the image. I suspect that this trick should work with the livedvd too but the flash waste would get even more ridiculous...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
mbzadegan
n00b
n00b


Joined: 26 Sep 2017
Posts: 13

PostPosted: Fri Sep 29, 2017 10:36 pm    Post subject: Reply with quote

eccerr0r wrote:
I saw the anecdote

"For booting SystemRescueCD, you need to put 'sysrcd.dat' file in the iso to root of the drive."

on that first page that was suggested, was this followed? Note that sysrcd.dat is pretty much the contents of the systemrescue CD (the squashfs root, so basically it will increase flash usage from ~500MB to ~900MB)... which would also solve the problem as then the initramfs of systemrescue cd would no longer need to loop mount the image. I suspect that this trick should work with the livedvd too but the flash waste would get even more ridiculous...


Thanks eccerr0r!
The SystemRescueCD could boot correctly with anecdote suggestion and SystemRescueCD could load everything without any Error. But for Gentoo LiveDVD I could not find sysrcd.dat in its ISO file and it could not use the SystemRescueCD last sysrcd.dat file. How could I resolve my issue for Gentoo LiveDVD?
Thanks in advance.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9678
Location: almost Mile High in the USA

PostPosted: Sat Sep 30, 2017 12:39 am    Post subject: Reply with quote

Now I haven't tried this but a guess would to simply copy out the biggest file in the livedvd whatever it's named. I don't have a recent livedvd handy but the old one, my guess would be "image.squashfs" -- but this is only a guess, and this is poorly named as it may conflict with other live images that use the same name.

Again this is only a guess, and is huge bloat. But it's probably the easiest way to get it to work without going through searching for the image and loop mounting.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
mbzadegan
n00b
n00b


Joined: 26 Sep 2017
Posts: 13

PostPosted: Mon Oct 02, 2017 7:41 am    Post subject: Reply with quote

eccerr0r wrote:
Now I haven't tried this but a guess would to simply copy out the biggest file in the livedvd whatever it's named. I don't have a recent livedvd handy but the old one, my guess would be "image.squashfs" -- but this is only a guess, and this is poorly named as it may conflict with other live images that use the same name.

Again this is only a guess, and is huge bloat. But it's probably the easiest way to get it to work without going through searching for the image and loop mounting.


I copied image.squashfs on the root of my flash USB but my issue did not resolve.
Thanks for your Hints.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sun Oct 08, 2017 12:54 pm    Post subject: Reply with quote

mbzadegan wrote:
Unfortunately, I must be use NTFS or FAT32 file system because my memstick flash USB is general purpose and use to file transfer in Windows or BSD environments.
The condition of file system is vital for me and this condition force me to use Grub4DOS.
Welcome to Any other suggestions...
Buy another stick, ffs. ;-)
Back to top
View user's profile Send private message
mbzadegan
n00b
n00b


Joined: 26 Sep 2017
Posts: 13

PostPosted: Mon Oct 09, 2017 12:49 pm    Post subject: Reply with quote

At the Final My problem was Solved!
http://reboot.pro/topic/21594-boot-in-fat32/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum