Can't install debian from iso on hard drive

Help with issues regarding installation of Debian

Can't install debian from iso on hard drive

Postby jpearey » 2018-03-03 15:02

The debian installation guide claims this is possible, but it's just not working. I followed the instructions and added the following code to /etc/grub.d/40_custom:

Code: Select all
menuentry "Debian 9.3.0 Install ISO" {
    insmod part_msdos
    insmod ext2
    set root="(hd0,msdos2)"
    set isofile="/boot/iso/debian-9.3.0-64.iso"
    linux /boot/iso/vmlinuz findiso=$isofile priority=low vga=788 ---
    # following line works, but cant mount iso image using it
    #initrd /boot/iso/initrd.gz
    # following line gives kernel panic - unable to mount root!!
    initrd /boot/iso/boot.img.gz
}


I then use the update-grub command to add it to the grub config.

It boots from the iso image but then gives me a kernel panic and unable to mount root error!

Searching for a solution is proving very difficult as I get too many irrelevant results.
jpearey
 
Posts: 10
Joined: 2018-03-03 14:18

Re: Can't install debian from iso on hard drive

Postby acewiza » 2018-03-03 15:27

Why not put the .iso on optical media?
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.
User avatar
acewiza
 
Posts: 358
Joined: 2013-05-28 12:38
Location: Out West

Re: Can't install debian from iso on hard drive

Postby Head_on_a_Stick » 2018-03-03 15:33

Try:
Code: Select all
menuentry "Debian 9.3.0 Install ISO" {
    set root="(hd0,msdos2)"
    set isofile="/boot/iso/debian-9.3.0-64.iso"
    loopback loop "${root}/${isofile}"
    linux (loop)/install/vmlinuz priority=low vga=788 fromiso="${root}/${isofile}"
    initrd (loop)/install/initrd.gz
}

(Untested)

EDIT: the linked instructions actually advise extracting vmlinuz & initrd.img from the ISO but my method might work.
"Il semble que la perfection soit atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retrancher."
— Antoine de Saint Exupéry, Terre des Hommes (1939).
User avatar
Head_on_a_Stick
 
Posts: 7545
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Can't install debian from iso on hard drive

Postby jpearey » 2018-03-03 16:03

acewiza wrote:Why not put the .iso on optical media?


I don't have an optical drive. Most recent laptops don't come with one. People don't really use dvds/cds any more.
jpearey
 
Posts: 10
Joined: 2018-03-03 14:18

Re: Can't install debian from iso on hard drive

Postby jpearey » 2018-03-03 16:06

Head_on_a_Stick wrote:Try:
Code: Select all
menuentry "Debian 9.3.0 Install ISO" {
    set root="(hd0,msdos2)"
    set isofile="/boot/iso/debian-9.3.0-64.iso"
    loopback loop "${root}/${isofile}"
    linux (loop)/install/vmlinuz priority=low vga=788 fromiso="${root}/${isofile}"
    initrd (loop)/install/initrd.gz
}

(Untested)

EDIT: the linked instructions actually advise extracting vmlinuz & initrd.img from the ISO but my method might work.


The problem with this is that the initrd.gz ramdisk on the iso is so limited that you can't mount an ext4 partition. That's why the debian instructions say to use hd-media/boot.img.gz (read my in-code comment).
jpearey
 
Posts: 10
Joined: 2018-03-03 14:18

Re: Can't install debian from iso on hard drive

Postby GarryRicketson » 2018-03-03 16:10

Postby jpearey » People don't really use dvds/cds any more.


I don't know about that, Which people ? Many of us still do use them.
I still use them all the time, and I have a usb portable optical drive, simply plug it into the usb, and use the optical drive, works great . I bought it especially for the purpose of making installations on laptops that do not have a optical drive, or the one they have is broken.
User avatar
GarryRicketson
 
Posts: 4803
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Can't install debian from iso on hard drive

Postby jpearey » 2018-03-03 16:28

GarryRicketson wrote:
Postby jpearey » People don't really use dvds/cds any more.


I don't know about that, Which people ? Many of us still do use them.
I still use them all the time, and I have a usb portable optical drive, simply plug it into the usb, and use the optical drive, works great . I bought it especially for the purpose of making installations on laptops that do not have a optical drive, or the one they have is broken.


Yes, I'm sure there are people who still use them. Just as there are probably people who still use floppy disks and video cassettes. Most people do not though. It's 2018, laptops haven't been sold with optical drives (something you seem to acknowledge) for quite some time now. Most PC games and software don't come on optical media any more. I did not intend to start a debate on whether dvds are mostly dead. I suggest you start a separate thread...
jpearey
 
Posts: 10
Joined: 2018-03-03 14:18

Re: Can't install debian from iso on hard drive

Postby GarryRicketson » 2018-03-03 16:32

Postby jpearey » People don't really use dvds/cds any more.


Well, your the one that brought it up, and
by jpearey » It's 2018,

Thanks for telling me, I didn't realize that.
User avatar
GarryRicketson
 
Posts: 4803
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Can't install debian from iso on hard drive

Postby Head_on_a_Stick » 2018-03-03 16:33

Where did you get vmlinuz from?

I can only find linux on the mirrors:

http://cdn-fastly.deb.debian.org/debian ... ler/amd64/

Are you using the initrd.gz from that link?

@Garry, that is off-topic.
"Il semble que la perfection soit atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retrancher."
— Antoine de Saint Exupéry, Terre des Hommes (1939).
User avatar
Head_on_a_Stick
 
Posts: 7545
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Can't install debian from iso on hard drive

Postby jpearey » 2018-03-03 16:44

Head_on_a_Stick wrote:Where did you get vmlinuz from?

I can only find linux on the mirrors:

http://cdn-fastly.deb.debian.org/debian ... ler/amd64/

Are you using the initrd.gz from that link?


I got the files from http://cdn-fastly.deb.debian.org/debian ... /hd-media/

The link you posted is to the netinstall section, which is different from the main, full debian installation.
jpearey
 
Posts: 10
Joined: 2018-03-03 14:18

Re: Can't install debian from iso on hard drive

Postby jpearey » 2018-03-03 16:46

GarryRicketson wrote:
Well, your the one that brought it up, and
by jpearey » It's 2018,

Thanks for telling me, I didn't realize that.


Maybe go troll somewhere else?
jpearey
 
Posts: 10
Joined: 2018-03-03 14:18

Re: Can't install debian from iso on hard drive

Postby Head_on_a_Stick » 2018-03-03 18:16

jpearey wrote:The link you posted is to the netinstall section, which is different from the main, full debian installation.

*sighs* oh yes, sorry, I was distracted.

Try this:
Code: Select all
menuentry "Debian 9.3.0 Install ISO" {
    insmod part_msdos
    insmod ext2
    set root="(hd0,msdos2)"
    set isofile="/boot/iso/debian-9.3.0-64.iso"
    linux /boot/iso/vmlinuz findiso="${root}/${isofile}" priority=low vga=788 ---
    initrd /boot/iso/initrd.gz
}

EDIT: still untested :mrgreen:
"Il semble que la perfection soit atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retrancher."
— Antoine de Saint Exupéry, Terre des Hommes (1939).
User avatar
Head_on_a_Stick
 
Posts: 7545
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Can't install debian from iso on hard drive

Postby lostfarmer » 2018-03-03 22:23

[code] menuentry "Graphical Debian Installer" {
insmod iso9660
linux (hd0,gpt11)/deb-hdd/vmlinuz append ${loopback}
initrd (hd0,gpt11)/deb-hdd/initrd.gz
}
[/code]

(hd0,gpt11)/deb-hdd --my location for (vmlinuz/initrd) ,yours will be different.

Some reason vmlinuz/initrd will not mount my ext4 partitions so I put the debian.iso on a 3g ext2 partition.

Downloaded the vmlinuz/initrd from http://http.us.debian.org/debian/dists/ ... media/gtk/

Use it to install debian-live-9.2.0-amd64-cinnamon+nonfree.iso

Note: when I Preview this post the CODE tags are not working, so not know when I Submit.

added: the new vmlinuz.initd downloaded from site above will search all partitions for any ***.iso file and try to use it, you do not tell it where to look in the grub.cfg . It does find my Mint.iso.
lostfarmer
 
Posts: 19
Joined: 2016-05-07 01:13
Location: Idaho

Re: Can't install debian from iso on hard drive

Postby andre@home » 2018-03-03 23:10

I think the usb mode of installation is the most simple, not only in 2018 already quite some years ago.
1 link within 2 second s including typing origins from 2010 so 8 years ago as an example how to a bootalbe iso on an usb stick
https://www.pendrivelinux.com/put-mandr ... e-windows/

So 8 years ago ... ? In computers is quite long ago... so it is not a recent 2018 option...
So come on it is 2018.... well if you now would call that trolling....knowing that the usb boot option for Linux is older than 8 yrs.... :oops:
andre@home
 
Posts: 282
Joined: 2011-10-02 08:00

Re: Can't install debian from iso on hard drive

Postby p.H » 2018-03-04 08:43

jpearey wrote:It boots from the iso image

No it doesn't. It just boots the Linux image /boot/iso/vmlinuz.
jpearey wrote:but then gives me a kernel panic and unable to mount root error!

As expected. The file /boot/iso/boot.img.gz declared in the "initrd" line is not an initramfs image. It is a compressed disk image.
You must use the initrd.gz from hd-media. Also, it may have limited support for filesystems, but I am not sure about ext4.

IMO it is a real shame that the initramfs embedded in Debian installer ISO images still cannot use ISO files.
p.H
 
Posts: 394
Joined: 2017-09-17 07:12

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

fashionable