install debian xfce from iso

Help with issues regarding installation of Debian

install debian xfce from iso

Postby francois.e » 2020-10-27 13:51

I am trying to install debian xfce from iso. I have looked at the following thread and other linux sources:
https://www.linuxbabe.com/debian/boot-d ... rive-grub2

Here is my grub2 syntax:
Code: Select all
menuentry "debian-live-10.6.0-amd64-xfce.iso" {
   insmod ext2
        set root=(hd1,3)
        set isofile="debian-live-10.6.0-amd64-xfce.iso"
        search --no-floppy --file --set=root $isofile from=$isofile
        loopback loop $isofile     
        (loop)linux  /d-i/vmlinuz
        (loop)initrd /d-i/initrd.gz
     /
}


I get a message asking to load a cd-rom which I have no intent to do as debian-live-10.6.0-amd64-xfce.iso on my hdd should be enough? Comments or solutions would be greatly appreciated.

Thanks.
Last edited by francois.e on 2020-10-30 00:05, edited 2 times in total.
francois.e
 
Posts: 27
Joined: 2009-03-06 22:03

Re: install debian xfce from iso

Postby Bulkley » 2020-10-27 14:46

That looks like the hard way. Why not use Debian's install media? Go here.
Bulkley
 
Posts: 6016
Joined: 2006-02-11 18:35

Re: install debian xfce from iso

Postby sgosnell » 2020-10-27 15:18

That tutorial seems to be addressing installing Debian to a USB drive, not to the internal drive. If that's what you want, fine, but to install to the internal drive, the way Bulkley linked is the way to go. Burn the .iso to a USB drive or a DVD, and boot from it. If you have some specific requirements, we don't know about them.
Take my advice, I'm not using it.
sgosnell
 
Posts: 906
Joined: 2011-03-14 01:49

Re: install debian xfce from iso

Postby Deb-fan » 2020-10-27 16:07

Are of course reasons for this type of thing, ie: Someone doesn't have a usb or whatever and yes, gnu/Linux being pure awesomeness is capable of doing it. Figured it out once, don't remember the how's of it so OP you're on your own. Well at least you'll have to ask Mrs-Mr internet as I'm 100% sure it can be done. Adapt the stuff for Ubuntu or Linux Mint, though d-i = Debian installer and casper(it's ubiquity now) or whatever buntu based are using are different animals I think. Good luck. :)

Ps, this thing is cool and useful though. Being able to skip the step of even making conventional install media has obvious merit. Am curious is there a reason you're trying to do this OP or just a want to kind of thing ?
Most powerful FREE tech-support tool on the planet * HERE. *
Deb-fan
 
Posts: 968
Joined: 2012-08-14 12:27

Re: install debian xfce from iso

Postby francois.e » 2020-10-27 19:14

I really want to install from hdd and not from usb. I have a second linux box in case of difficulties in the process. All my important data is backed up on external media.

Though I have only 25 posts, I have been on linux since 2005, working mainly with a slackware derivative calle porteus.

Is there someone able to tell me what is wrong with my grub2 syntax.

Thanks so much.
francois.e
 
Posts: 27
Joined: 2009-03-06 22:03

Re: install debian xfce from iso

Postby sgosnell » 2020-10-27 21:02

Assuming the disk designation line is correct, you may need the full path of the .isofile. I'm not sure when you're getting the "insert DVD" error. In the initial boot process, after grub executes, after the installer starts, or when.
Take my advice, I'm not using it.
sgosnell
 
Posts: 906
Joined: 2011-03-14 01:49

Re: install debian xfce from iso

Postby p.H » 2020-10-27 21:32

francois.e wrote:Is there someone able to tell me what is wrong with my grub2 syntax.

I suspect that the debian-installer initrd.gz embedded in the ISO image that you are loading is of the "cdrom" type and is not able to detect and mount an ISO image, so you need to load an initrd.gz of the "hd-media" type instead, available on Debian mirrors.
p.H
 
Posts: 1521
Joined: 2017-09-17 07:12

Re: install debian xfce from iso

Postby sgosnell » 2020-10-27 22:47

The liveDVD .iso is supposed to be a hybrid version for installation on either optical media or regular drives. At least that's what the download site says, and they certainly work when burned to flash drives.
Take my advice, I'm not using it.
sgosnell
 
Posts: 906
Joined: 2011-03-14 01:49

Re: install debian xfce from iso

Postby Bulkley » 2020-10-28 01:24

Just fof curiosity I downloaded debian-live-10.6.0-amd64-xfce.iso.torrent from here. I ran it as a VM. Debian Xfce live loaded. I then installed it. Time taken less than half an hour. It works.
Bulkley
 
Posts: 6016
Joined: 2006-02-11 18:35

Re: install debian xfce from iso

Postby Deb-fan » 2020-10-28 19:56

Lots of interesting stuff guys. :)

OP ... quiet type eh ?

Ummmm still did think of junk to add, no idea what's wrong with your grub entry but yeah, doesn't look right regardless. Check out this https://forums.bunsenlabs.org/viewtopic.php?id=6294 has an example of a working Bunsenlabs grub entry, which is based on Debian stable itself. Also am sure there's other possible useful junk stated on the topic in general. Pretty sure mentioned digging through the iso's to find out what's, where and that needs to be used to find a working entry. Also fairly sure mentioned a person avail themselves of existing tools example menu entries and the grub.cfg's they share ... I mean in ways a usb drive is like whatever other type block device(s.) Still use that multiboot thumb drive, still a bunch of iso's havent figured out the mystic incantations to get to work yet.

Also clarification, I got a Debian iso to boot from hdd, never completed an install from it. Remember this thing can be a real pita and very frustrating. Someone just has to keep at it, stay persistent and eventually will probably unlock the magic words for the right entry to boot whichever iso's. Good luck. :)

Ps, also wanted to point out things like PXE installing for whoever. Sounds like OP has more than one pc onhand. So again .. unless it's just a hey I want to do this, like almost always in gnu/Linux, more than one option to attain techno-bliss. :P
Most powerful FREE tech-support tool on the planet * HERE. *
Deb-fan
 
Posts: 968
Joined: 2012-08-14 12:27

Re: install debian xfce from iso

Postby milomak » 2020-10-29 18:26

Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10
Laptop: Lenovo ideapad Y700-15ISK [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 2073
Joined: 2009-06-09 22:20

Re: install debian xfce from iso

Postby francois.e » 2020-10-29 23:37

I am very grateful that this thread stimulates much interest. Trying to reboot a few times from grub command line, I got the additional information that a net install disk would be better. Thus it seems the syntax was almost good. I have added:
from=$isofile

I am actually working on using a net install iso as proposed by Buckley:
debian-10.6.0-amd64-netinst.iso

Here is th grub2 syntax for the net install iso which locates its vmlinuz and initrd.gz in a different file structure:
Code: Select all
menuentry "debian-live-10.6.0-amd64-xfce.iso" {
        insmod ext2
        set root=(hd1,3)
        set isofile="debian-live-10.6.0-amd64-xfce.iso"
        search --no-floppy --file --set=root $isofile from=$isofile
        loopback loop $isofile       (loop)linux /install.amd/vmlinuz
        (loop)initrd /install.amd/initrd.gz
}



Thanks.
francois.e
 
Posts: 27
Joined: 2009-03-06 22:03

Re: install debian xfce from iso

Postby Deb-fan » 2020-10-30 01:25

^ Cool, thanks for sharing what you found out. :)

Also may as well add some more random junk on this topic. Are plenty of situations where a person can't do the conventional install method, system doesn't have a dvd drive(or has a broken drive), someone doesn't have dvd's or a usb onhand but still wants to install a Nix OS on some hardware. Another oddball route outside of PXE(network install) to consider, using an Android phone can work. Researched it, know it's totally possible, haven't done it as yet. That's still on the 2-do list though.
Most powerful FREE tech-support tool on the planet * HERE. *
Deb-fan
 
Posts: 968
Joined: 2012-08-14 12:27

Re: install debian xfce from iso

Postby p.H » 2020-10-30 12:38

sgosnell wrote:The liveDVD .iso is supposed to be a hybrid version for installation on either optical media or regular drives.

"Hybrid" does not mean it is intended to run from an image file. It only means it can be written and run from either optical disc or flash drive.

Deb-fan wrote:junk

What's the point of adding junk ?

francois.e wrote:debian-10.6.0-amd64-netinst.iso
Here is th grub2 syntax for the net install iso which locates its vmlinuz and initrd.gz in a different file structure

Several mistakes.
1) ISO image filename is wrong.
2) Adding "from=$isofile" to the "search" command is wrong. See https://www.gnu.org/software/grub/manua ... tml#search for the correct syntax.
3) The "loopback" command syntax is wrong. The end since "(loop)" has nothing to do there. See See https://www.gnu.org/software/grub/manua ... l#loopback
4) The "initrd" command syntax is wrong. See See https://www.gnu.org/software/grub/manua ... tml#initrd
5) The initrd.gz included in the installation ISO image is of type "cdrom" can use only an optical disc or a flash/hard drive, not an ISO image file. As I wrote in my previous reply, you must use the initrd.gz of type "hd-media" available on Debian mirrors. See the installation manual for details.
p.H
 
Posts: 1521
Joined: 2017-09-17 07:12

Re: install debian xfce from iso

Postby milomak » 2020-11-12 21:02

so i gave this a go. downloaded the cinnamon live iso and renamed it debian.iso. placed it in /boot/iso

then created this in /etc/grub.d/40_custom
Code: Select all
menuentry "Debian Live 10.6.0 (Cinnamon)" {
    set isofile="debian.iso"
    loopback aloop (hd0,2)/boot/iso/$isofile
    linux  (aloop)/live/vmlinuz-4.19.0-11-amd64 boot=live findiso=/boot/iso/$isofile live-media-path=/live components
    initrd (aloop)/live/initrd.img-4.19.0-11-amd64
}


obviously you would have to change the name, location and hd(0,2)

to find out what to reference for vmlinuz and initrd, you can mount the iso and see what the files in live/ are

oh and if you are using grub 2.04, you will have to boot in legacy mode (uefi mode won't work)
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10
Laptop: Lenovo ideapad Y700-15ISK [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 2073
Joined: 2009-06-09 22:20

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 13 guests

fashionable