Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #208496 > unrolled thread

Is it possible to install Debian in such a case.

Started byAn Liu <sourceonly@gmail.com>
First post2019-05-10 10:50 +0200
Last post2019-05-13 00:20 +0200
Articles 20 on this page of 56 — 12 participants

Back to article view | Back to linux.debian.user


Contents

  Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 10:50 +0200
    Re: Is it possible to install Debian in such a case. Jonas Smedegaard <jonas@jones.dk> - 2019-05-10 11:00 +0200
      Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 11:10 +0200
        Re: Is it possible to install Debian in such a case. Brian <ad44@cityscape.co.uk> - 2019-05-10 11:30 +0200
          Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 11:50 +0200
        Re: Is it possible to install Debian in such a case. Joe <joe@jretrading.com> - 2019-05-10 11:40 +0200
          Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 12:00 +0200
            Re: Is it possible to install Debian in such a case. Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-10 14:20 +0200
              Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 16:20 +0200
            Re: Is it possible to install Debian in such a case. Curt <curty@free.fr> - 2019-05-10 15:30 +0200
        Re: Is it possible to install Debian in such a case. Jonas Smedegaard <jonas@jones.dk> - 2019-05-10 11:50 +0200
          Re: Is it possible to install Debian in such a case. <tomas@tuxteam.de> - 2019-05-10 12:10 +0200
            Tinker team (Was: Is it possible to install Debian in such a case.) Jonas Smedegaard <jonas@jones.dk> - 2019-05-11 01:10 +0200
              Re: Tinker team (Was: Is it possible to install Debian in such a  case.) <tomas@tuxteam.de> - 2019-05-11 09:10 +0200
                Re: Tinker team (Was: Is it possible to install Debian in such a  case.) <tomas@tuxteam.de> - 2019-05-11 10:00 +0200
                Re: Tinker team (Was: Is it possible to install Debian in such a case.) Jonas Smedegaard <jonas@jones.dk> - 2019-05-11 10:00 +0200
          Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 12:10 +0200
    Re: Is it possible to install Debian in such a case. Richard Owlett <rowlett@cloud85.net> - 2019-05-10 12:40 +0200
      Re: Is it possible to install Debian in such a case. <tomas@tuxteam.de> - 2019-05-10 13:00 +0200
        Re: Is it possible to install Debian in such a case. Richard Owlett <rowlett@cloud85.net> - 2019-05-10 13:40 +0200
          Re: Is it possible to install Debian in such a case. <tomas@tuxteam.de> - 2019-05-10 13:50 +0200
            Re: Is it possible to install Debian in such a case. David Wright <deblis@lionunicorn.co.uk> - 2019-05-10 16:00 +0200
              Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 16:20 +0200
                Re: Is it possible to install Debian in such a case. Richard Owlett <rowlett@cloud85.net> - 2019-05-10 16:30 +0200
                  Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 16:40 +0200
                    Re: Is it possible to install Debian in such a case. Richard Owlett <rowlett@cloud85.net> - 2019-05-10 17:00 +0200
                      Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 17:10 +0200
                        Re: Is it possible to install Debian in such a case. Richard Owlett <rowlett@cloud85.net> - 2019-05-10 17:30 +0200
                          Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 18:00 +0200
                            Re: Is it possible to install Debian in such a case. Brian <ad44@cityscape.co.uk> - 2019-05-10 20:10 +0200
              Re: Is it possible to install Debian in such a case. Brian <ad44@cityscape.co.uk> - 2019-05-10 17:40 +0200
                Re: Is it possible to install Debian in such a case. Felix Miata <mrmazda@earthlink.net> - 2019-05-10 18:10 +0200
                  Re: Is it possible to install Debian in such a case. David Wright <deblis@lionunicorn.co.uk> - 2019-05-10 20:40 +0200
                    Re: Is it possible to install Debian in such a case. Felix Miata <mrmazda@earthlink.net> - 2019-05-10 22:20 +0200
                      Re: Is it possible to install Debian in such a case. David Wright <deblis@lionunicorn.co.uk> - 2019-05-21 16:50 +0200
    Re: Is it possible to install Debian in such a case. Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-05-10 14:50 +0200
      Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 16:30 +0200
        Re: Is it possible to install Debian in such a case. Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-05-11 08:30 +0200
          Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-11 14:00 +0200
            Re: Is it possible to install Debian in such a case. Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-05-11 15:00 +0200
            Re: Is it possible to install Debian in such a case. Brian <ad44@cityscape.co.uk> - 2019-05-11 15:20 +0200
              Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-11 22:30 +0200
                Re: Is it possible to install Debian in such a case. Brian <ad44@cityscape.co.uk> - 2019-05-12 13:00 +0200
    Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 17:00 +0200
      Re: Is it possible to install Debian in such a case. Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-10 17:10 +0200
        Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 17:20 +0200
        Re: Is it possible to install Debian in such a case. Brian <ad44@cityscape.co.uk> - 2019-05-10 17:30 +0200
          Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-10 17:40 +0200
          Re: Is it possible to install Debian in such a case. David Wright <deblis@lionunicorn.co.uk> - 2019-05-10 20:30 +0200
            Re: Is it possible to install Debian in such a case. Brian <ad44@cityscape.co.uk> - 2019-05-11 17:50 +0200
              Re: Is it possible to install Debian in such a case. Gene Heskett <gheskett@shentel.net> - 2019-05-11 19:30 +0200
                Re: Is it possible to install Debian in such a case. Joe <joe@jretrading.com> - 2019-05-11 19:50 +0200
                  Re: Is it possible to install Debian in such a case. Gene Heskett <gheskett@shentel.net> - 2019-05-11 20:30 +0200
                Re: Is it possible to install Debian in such a case. Brian <ad44@cityscape.co.uk> - 2019-05-11 21:50 +0200
                  Re: Is it possible to install Debian in such a case. Joe <joe@jretrading.com> - 2019-05-11 23:10 +0200
    Re: Is it possible to install Debian in such a case. An Liu <sourceonly@gmail.com> - 2019-05-13 00:20 +0200

Page 2 of 3 — ← Prev page 1 [2] 3  Next page →


#208510

From<tomas@tuxteam.de>
Date2019-05-10 13:50 +0200
Message-ID<xWcch-2pq-9@gated-at.bofh.it>
In reply to#208509

[Multipart message — attachments visible in raw view] — view raw

On Fri, May 10, 2019 at 06:31:22AM -0500, Richard Owlett wrote:

[...]
> That's one of a number of possible guesses of OP's intent.

Yep :-)

> I've asked questions others have thought vague though I thought were
> quite explicit. People read through lenses of their personal
> experience and assumptions.
>
> >>    A. machine's hard-drive.
> >>    B. a second USB drive. [be careful to place grub on correct drive]
> 
> That was cautionary, primarily to future newbies who might need an
> explicit statement of what is obvious to the experienced.

Yes. I understood it as "the OP wants to understand the boot (and the
corresponding installation) process".

Cheers
-- t

[toc] | [prev] | [next] | [standalone]


#208515

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2019-05-10 16:00 +0200
Message-ID<xWee5-3Ck-1@gated-at.bofh.it>
In reply to#208510
On Fri 10 May 2019 at 13:44:03 (+0200), tomas@tuxteam.de wrote:
> On Fri, May 10, 2019 at 06:31:22AM -0500, Richard Owlett wrote:
> 
> [...]
> > That's one of a number of possible guesses of OP's intent.
> 
> Yep :-)
> 
> > I've asked questions others have thought vague though I thought were
> > quite explicit. People read through lenses of their personal
> > experience and assumptions.
> >
> > >>    A. machine's hard-drive.
> > >>    B. a second USB drive. [be careful to place grub on correct drive]
> > 
> > That was cautionary, primarily to future newbies who might need an
> > explicit statement of what is obvious to the experienced.
> 
> Yes. I understood it as "the OP wants to understand the boot (and the
> corresponding installation) process".

What worries me about this thread is that the OP (who doesn't seem to
know how the various parts of the d-i are meant to work together) has
just last week posted a recipe claiming to install Debian using only
vmlinuz and initrd¹, and a method of copying a Windows installation
.iso image to a USB stick involving "rm"ing something, though never
specifying exactly what is removed. I also have no idea what
"destroy kvm prepend nothing happens" means².

¹
https://lists.debian.org/debian-user/2019/05/msg00032.html

²
https://lists.debian.org/debian-user/2019/05/msg00103.html

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#208516

FromAn Liu <sourceonly@gmail.com>
Date2019-05-10 16:20 +0200
Message-ID<xWexr-3ZX-3@gated-at.bofh.it>
In reply to#208515
> What worries me about this thread is that the OP (who doesn't seem to
> know how the various parts of the d-i are meant to work together) has

I don't know what's d-i mean (short for ?)

> just last week posted a recipe claiming to install Debian using only
> vmlinuz and initrd¹,
no, you need iso file as well.
> and a method of copying a Windows installation
> .iso image to a USB stick involving "rm"ing something, though never
> specifying exactly what is removed.
if you use  cp debian.iso /dev/sdb, or dd,
the file on the USB stick would be erased. if you take my way, it just
mixed the orignal one
with the install media.
>  I also have no idea what
> "destroy kvm prepend nothing happens" means².

I'm sorry to have you worried.
To create a UEFI bootable windows install media is nothing related
with this post

If you don't buy a copy of Windows, you would probably need to destroy
the windows
installation, As soon as we finished create install media from
windows, you definitely
should delete your installation in the grace period.



> https://lists.debian.org/debian-user/2019/05/msg00032.html
>
> ²
> https://lists.debian.org/debian-user/2019/05/msg00103.html
>
> Cheers,
> David.
>


-- 
Liu An

[toc] | [prev] | [next] | [standalone]


#208519

FromRichard Owlett <rowlett@cloud85.net>
Date2019-05-10 16:30 +0200
Message-ID<xWeH7-475-3@gated-at.bofh.it>
In reply to#208516
On 05/10/2019 09:10 AM, An Liu wrote:
>> What worries me about this thread is that the OP (who doesn't seem to
>> know how the various parts of the d-i are meant to work together) has
> 
> I don't know what's d-i mean (short for ?)
> 
>> just last week posted a recipe claiming to install Debian using only
>> vmlinuz and initrd¹,
> no, you need iso file as well.
>> and a method of copying a Windows installation
>> .iso image to a USB stick involving "rm"ing something, though never
>> specifying exactly what is removed.
> if you use  cp debian.iso /dev/sdb, or dd,
> the file on the USB stick would be erased. if you take my way, it just
> mixed the orignal one
> with the install media.
>>   I also have no idea what
>> "destroy kvm prepend nothing happens" means².
> 
> I'm sorry to have you worried.
> To create a UEFI bootable windows install media is nothing related
> with this post
> 
> If you don't buy a copy of Windows, you would probably need to destroy
> the windows
> installation, As soon as we finished create install media from
> windows, you definitely
> should delete your installation in the grace period.
> 

https://www.debian.org/releases/stable/amd64/ch03s05.html.en

Chapter title: Before Installing Debian GNU/Linux
Section Title: Pre-Partitioning for Multi-Boot Systems

[toc] | [prev] | [next] | [standalone]


#208521

FromAn Liu <sourceonly@gmail.com>
Date2019-05-10 16:40 +0200
Message-ID<xWeQN-4c4-5@gated-at.bofh.it>
In reply to#208519
Hi, Richard

Thank you for you information,

> https://www.debian.org/releases/stable/amd64/ch03s05.html.en
>
> Chapter title: Before Installing Debian GNU/Linux
> Section Title: Pre-Partitioning for Multi-Boot Systems

Still doesn't get you point. What i mentioned is the USB stick which would turn
into install media. nothing relate to re-partition.

-- 
Liu An

[toc] | [prev] | [next] | [standalone]


#208523

FromRichard Owlett <rowlett@cloud85.net>
Date2019-05-10 17:00 +0200
Message-ID<xWfaa-4iO-3@gated-at.bofh.it>
In reply to#208521
On 05/10/2019 09:34 AM, An Liu wrote:
> Hi, Richard
> 
> Thank you for you information,
> 
>> https://www.debian.org/releases/stable/amd64/ch03s05.html.en
>>
>> Chapter title: Before Installing Debian GNU/Linux
>> Section Title: Pre-Partitioning for Multi-Boot Systems
> 
> Still doesn't get you point.

Multi-Boot allows Linux and *any other* OS to reside on the same medium.


> What i mentioned is the USB stick which would turn
> into install media. nothing relate to re-partition.
> 

Read/browse, all of https://www.debian.org/releases/stable/amd64/ .

[toc] | [prev] | [next] | [standalone]


#208526

FromAn Liu <sourceonly@gmail.com>
Date2019-05-10 17:10 +0200
Message-ID<xWfjP-4Bt-1@gated-at.bofh.it>
In reply to#208523
> Multi-Boot allows Linux and *any other* OS to reside on the same medium.
sure,  and what's next? i have 5 OS on my PC,
The order of installation is not quite the problem, as i USE UEFI

I said i was just talking about install media, not install target.
Though I have a HD could work as install-media for
SLES/RHEL/CentOS/Windows7/Window10,
I still don't get you point.


-- 
Liu An

[toc] | [prev] | [next] | [standalone]


#208528

FromRichard Owlett <rowlett@cloud85.net>
Date2019-05-10 17:30 +0200
Message-ID<xWfDb-4HN-1@gated-at.bofh.it>
In reply to#208526
On 05/10/2019 10:04 AM, An Liu wrote:
>> Multi-Boot allows Linux and *any other* OS to reside on the same medium.
> sure,  and what's next? i have 5 OS on my PC,
> The order of installation is not quite the problem, as i USE UEFI
> 
> I said i was just talking about install media, not install target.
> Though I have a HD could work as install-media for
> SLES/RHEL/CentOS/Windows7/Window10,
> I still don't get you point.

I am beginning to suspect a language, not technology, issue.
The majority here are native English speakers.
See https://lists.debian.org/completeindex.html for other languages.

[toc] | [prev] | [next] | [standalone]


#208537

FromAn Liu <sourceonly@gmail.com>
Date2019-05-10 18:00 +0200
Message-ID<xWg6e-4RL-7@gated-at.bofh.it>
In reply to#208528
appreciate your opinion, more than technical point of view
--
Liu An

[toc] | [prev] | [next] | [standalone]


#208540

FromBrian <ad44@cityscape.co.uk>
Date2019-05-10 20:10 +0200
Message-ID<xWi81-6kn-1@gated-at.bofh.it>
In reply to#208537
On Fri 10 May 2019 at 09:55:06 -0600, An Liu wrote:

> appreciate your opinion, more than technical point of view

:)

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#208532

FromBrian <ad44@cityscape.co.uk>
Date2019-05-10 17:40 +0200
Message-ID<xWfMR-4KR-5@gated-at.bofh.it>
In reply to#208515
On Fri 10 May 2019 at 08:49:25 -0500, David Wright wrote:

> On Fri 10 May 2019 at 13:44:03 (+0200), tomas@tuxteam.de wrote:
> > On Fri, May 10, 2019 at 06:31:22AM -0500, Richard Owlett wrote:
> > 
> > [...]
> > > That's one of a number of possible guesses of OP's intent.
> > 
> > Yep :-)
> > 
> > > I've asked questions others have thought vague though I thought were
> > > quite explicit. People read through lenses of their personal
> > > experience and assumptions.
> > >
> > > >>    A. machine's hard-drive.
> > > >>    B. a second USB drive. [be careful to place grub on correct drive]
> > > 
> > > That was cautionary, primarily to future newbies who might need an
> > > explicit statement of what is obvious to the experienced.
> > 
> > Yes. I understood it as "the OP wants to understand the boot (and the
> > corresponding installation) process".
> 
> What worries me about this thread is that the OP (who doesn't seem to
> know how the various parts of the d-i are meant to work together) has
> just last week posted a recipe claiming to install Debian using only
> vmlinuz and initrd¹, ......

That's a claim which can be sustantiated.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#208538

FromFelix Miata <mrmazda@earthlink.net>
Date2019-05-10 18:10 +0200
Message-ID<xWgfT-5bg-3@gated-at.bofh.it>
In reply to#208532
Brian composed on 2019-05-10 16:32 (UTC+0100):

> On Fri 10 May 2019 at 08:49:25 -0500, David Wright wrote:

>> What worries me about this thread is that the OP (who doesn't seem to
>> know how the various parts of the d-i are meant to work together) has
>> just last week posted a recipe claiming to install Debian using only
>> vmlinuz and initrd¹, ......

> That's a claim which can be sustantiated. 

Sounds like what I virtually always do, install from network, beginning with fetching
<http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz>
and
<http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux>
and placing them where Grub can find and load them. Nothing gets downloaded that
isn't needed. No need for any iso file.
-- 
Evolution as taught in public schools is religion, not science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/

[toc] | [prev] | [next] | [standalone]


#208543

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2019-05-10 20:40 +0200
Message-ID<xWiB3-6uh-3@gated-at.bofh.it>
In reply to#208538
On Fri 10 May 2019 at 12:06:05 (-0400), Felix Miata wrote:
> Brian composed on 2019-05-10 16:32 (UTC+0100):
> 
> > On Fri 10 May 2019 at 08:49:25 -0500, David Wright wrote:
> 
> >> What worries me about this thread is that the OP (who doesn't seem to
> >> know how the various parts of the d-i are meant to work together) has
> >> just last week posted a recipe claiming to install Debian using only
> >> vmlinuz and initrd¹, ......
> 
> > That's a claim which can be sustantiated. 
> 
> Sounds like

"Sounds like" doesn't cut it. Sorry.

> what I virtually always do, install from network, beginning with fetching
> <http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz>
> and
> <http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux>
> and placing them where Grub can find and load them.

So I'm looking for the page that has those instructions. Do you know
where it is?

It would list the requirements, what to put where, and where in the
d-i process you arrive after booting.
(d-i ≡ debian-installer, for the OP.)

> Nothing gets downloaded that
> isn't needed. No need for any iso file.

OK. The OP appears to disagree.

https://lists.debian.org/debian-user/2019/05/msg00518.html

This is why "sounds like" doesn't cut it. I (and other people coming
to the Debian web pages and wikis) don't want to be led up the garden
path by instructions in random postings expressed in unclear language
(that's not a criticism; I'm sure I have not a word of the OP's
native language.)

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#208546

FromFelix Miata <mrmazda@earthlink.net>
Date2019-05-10 22:20 +0200
Message-ID<xWk9Q-7xn-5@gated-at.bofh.it>
In reply to#208543
David Wright composed on 2019-05-10 13:32 (UTC-0500):

> On Fri 10 May 2019 at 12:06:05 (-0400), Felix Miata wrote:

>> what I virtually always do, install from network, beginning with fetching
>> <http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz>
>> and
>> <http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux>
>> and placing them where Grub can find and load them.

> So I'm looking for the page that has those instructions. Do you know
> where it is?                                                             

It's not all on https://wiki.debian.org/Grub which only has the standard Grub2
boilerplate, to get from A to B one must first divert to C and then D. :-p There
is a small piece of it hidden in its first FAQ (/etc/grub.d/40_custom).

> It would list the requirements, what to put where, and where in the
> d-i process you arrive after booting.
> (d-i ≡ debian-installer, for the OP.)                                          

Try putting this in custom.cfg in a bootable stick directory containing grub.cfg:

menuentry "Install Debian via HTTP" {
	search --no-floppy --label --set=root <USBSTICKLABEL>
	linux	/boot/linux
	initrd	/boot/initrd.gz
}

Once that's done, the stick booted, and the selection made, the d-i app takes over
by asking the exact same questions as if having booted from the NET iso.

No USB stick (or OM, or PXE) is needed for linux and initrd.gz if the target
system already has a loadable Grub (any bootloader really, syslinux, rEFInd,
others) installed anywhere, which is the standard installation method in my routine.

Of course, this much detail shouldn't be needed by those who have more than a
passing familiarity with using Grub. When I see "we" instead of "I" in an OP, as
for this thread, I assume "we" means more than one person, a group, which ought to
possess more than a passing familiarity using Grub, hence my keeping my reply short.
-- 
Evolution as taught in public schools is religion, not science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/

[toc] | [prev] | [next] | [standalone]


#208953

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2019-05-21 16:50 +0200
Message-ID<y0efv-7eb-7@gated-at.bofh.it>
In reply to#208546
On Fri 10 May 2019 at 16:18:51 (-0400), Felix Miata wrote:
> David Wright composed on 2019-05-10 13:32 (UTC-0500):
> > On Fri 10 May 2019 at 12:06:05 (-0400), Felix Miata wrote:
> 
> >> what I virtually always do, install from network, beginning with fetching
> >> <http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz>
> >> and
> >> <http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux>
> >> and placing them where Grub can find and load them.
> 
> > So I'm looking for the page that has those instructions. Do you know
> > where it is?                                                             
> 
> It's not all on https://wiki.debian.org/Grub which only has the standard Grub2
> boilerplate, to get from A to B one must first divert to C and then D. :-p There
> is a small piece of it hidden in its first FAQ (/etc/grub.d/40_custom).
> 
> > It would list the requirements, what to put where, and where in the
> > d-i process you arrive after booting.
> > (d-i ≡ debian-installer, for the OP.)                                          
> 
> Try putting this in custom.cfg in a bootable stick directory containing grub.cfg:
> 
> menuentry "Install Debian via HTTP" {
> 	search --no-floppy --label --set=root <USBSTICKLABEL>
> 	linux	/boot/linux
> 	initrd	/boot/initrd.gz
> }
> 
> Once that's done, the stick booted, and the selection made, the d-i app takes over
> by asking the exact same questions as if having booted from the NET iso.
> 
> No USB stick (or OM, or PXE) is needed for linux and initrd.gz if the target
> system already has a loadable Grub (any bootloader really, syslinux, rEFInd,
> others) installed anywhere, which is the standard installation method in my routine.

That's pretty much what I needed to get this sorted out. In my case,
using the hard disk itself, the USBSTICKLABEL is just the LABEL that's
used for the existing system itself, and I copied the files above
straight into /boot, along with all my normal kernels.

As this was new territory, I tried it out on a spare laptop. Checking
the files against the SHA256SUMS, I noticed a lot of different linux
kernels and initrd.gz files which I assume could do a similar job in
slightly different ways. I'm not sure where this is documented.

With your files, I indeed booted straight into the d-i, presumably in
the non-graphical expert version which suited me fully. One or two
wrinkles were:
. I don't know if one could get the remote install over ssh working,
. the firmware is needed on a stick, like in days of yore (or using
  "pure" Debian netinst),
. it appears important to remove the said stick at the earliest
  opportunity else the new system may be installed on the laptop's
  hard drive but with a kernel name of /dev/sdb, which is no good
  when you come to reboot into it.

I don't want to trust overwriting the MBR's boot code, so I said no
the question. I think it then asked for the device anyway, whereupon
I backed out of that screen and then selected 'Continue without
boot loader'. I think that meant that grub wasn't configured at all,
so /boot/grub/unicode.pf2 is the only file in that directory.

Before answering the clock/UTC question, I ran
/target/usr/bin/swaplabel and put back the LABEL on my swap
partition so that the original system would find it as normal.
AFAICT the new installation finds swap by its generated UUID and
my original uses LABEL, so both systems are happy.

After the installation, I used the "Classic Chroot Sequence" to test
the bootability of the new system:

# mount /dev/sda2 /mnt
# mount -o bind /proc /mnt/proc
# mount -o bind /sys /mnt/sys
# mount -o bind /dev /mnt/dev
# chroot /mnt grub-mkconfig > /boot/grub/grub.cfg
# chroot /mnt grub-install /dev/sda

before redoing the last two commands in the old system to restore
the status quo.

> Of course, this much detail shouldn't be needed by those who have more than a
> passing familiarity with using Grub.

Whether this technique is possible is something that depends on
details of booting details like how a kernel finds its root
filesystem, whether it has the wherewithal to read it, what's inside
the initrd.gz files (with their new format) etc, apart from details
of grub.

And I find recipes for grub can be very confusing, with Grub1, Grub2,
grub-pc, and those strange hybrid packages that claimed to be Grub2
but were numbered as version 1. Looking back at past postings here,
one rarely knows precisely which versions of what were being used.

> When I see "we" instead of "I" in an OP, as
> for this thread, I assume "we" means more than one person, a group, which ought to
> possess more than a passing familiarity using Grub, hence my keeping my reply short.

I think expressions like "What I have …" and "What we want …" are just
polite expressions. To me (relatively old), the latter means that the
writer is not wanting to do an unusual or idiosyncratic task (like
"nuke" resolv.conf, castrate NetworkManager!), but one that would
likely be useful for others in a similar situation. So please feel
free to be expansive.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#208512

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2019-05-10 14:50 +0200
Message-ID<xWd8m-2ZX-5@gated-at.bofh.it>
In reply to#208496
Le 10/05/2019 à 10:48, An Liu a écrit :
> 
> What I Have.
> a USB stick with
> 1.  a portable GRUB (either UEFI or legacy)
> 2.  a install ISO, such as debian-9.9.0-amd64-DVD-1.iso (mayb would e
> a LiveCD make life easier?)
> 
> What we want.Have Debian installed (could assume that we could do
> whatever we could, such as re-partitation the whole harddisk)

Do you want to put the Debian installer on the USB stick and be able to 
install a Debian system from it into another location, or install a 
Debian system on the USB stick ?

> The work around is to boot with  vmliunz and initrd.gz from
> http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/hd-media/
> the cost is very small as these two file size total is less than 20M

Downloading vmlinuz is not required. You can get it from the ISO image.

> I wonder if there is a way to finish install only in GRUB, without
> initrd involved

The initrd.gz included in Debian installer ISO images cannot read files 
from an ISO image, only from a plain drive or partition. This is why you 
need an initrd.gz for hd-media. Note that there may also be restrictions 
about the supported filesystem types containing the ISO image.

Things may be different with Debian live images.

[toc] | [prev] | [next] | [standalone]


#208518

FromAn Liu <sourceonly@gmail.com>
Date2019-05-10 16:30 +0200
Message-ID<xWeH7-475-1@gated-at.bofh.it>
In reply to#208512
Hi, Pascal,

> Downloading vmlinuz is not required. You can get it from the ISO image.
yes.

> > I wonder if there is a way to finish install only in GRUB, without
> > initrd involved

maybe more precisely, without initrd.gz from hd-media involved,  but
could use initrd.gz from the
ISO file we have.



> The initrd.gz included in Debian installer ISO images cannot read files
> from an ISO image, only from a plain drive or partition. This is why you
> need an initrd.gz for hd-media. Note that there may also be restrictions
> about the supported filesystem types containing the ISO image.
yes, that's why i ask this question.

The initrd.gz from iso can't locate iso file, but i can. how can let
the install process know
where the iso file is.

The initrd.gz from hd-media can locate iso file by iso-scan, but it
would scan all dev
over. it takes a while. it does works as automation work, but if i
could tell the iso file location,
why not?  (hd-media + iso is my preferred way to install debian,
though, i always have a bootable USB
along with me)



-- 
Liu An

[toc] | [prev] | [next] | [standalone]


#208555

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2019-05-11 08:30 +0200
Message-ID<xWtG9-5gC-1@gated-at.bofh.it>
In reply to#208518
Le 10/05/2019 à 16:24, An Liu a écrit :
> 
>> The initrd.gz included in Debian installer ISO images cannot read files
>> from an ISO image, only from a plain drive or partition. This is why you
>> need an initrd.gz for hd-media. Note that there may also be restrictions
>> about the supported filesystem types containing the ISO image.
> yes, that's why i ask this question.
> 
> The initrd.gz from iso can't locate iso file, but i can. how can let
> the install process know where the iso file is.

IIRC and although it did not change with Buster, the initrd.gz in 
installation images does not include the loop module either. So it is 
not able be able to mount an ISO image.

[toc] | [prev] | [next] | [standalone]


#208565

FromAn Liu <sourceonly@gmail.com>
Date2019-05-11 14:00 +0200
Message-ID<xWyPw-8jp-3@gated-at.bofh.it>
In reply to#208555
Hi, Pascal
> IIRC and although it did not change with Buster, the initrd.gz in
> installation images does not include the loop module either. So it is
> not able be able to mount an ISO image.

Yes, you are right,  neither could i mount ext4 partitions within busybox
But it is able to mount vfat partition, maybe it's for UEFI?

Tested with debian-9.9.0-amd64-netinst.iso

Thank you for the information



-- 
Liu An

[toc] | [prev] | [next] | [standalone]


#208568

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2019-05-11 15:00 +0200
Message-ID<xWzLz-sh-1@gated-at.bofh.it>
In reply to#208565
Le 11/05/2019 à 13:51, An Liu a écrit :
> 
> Yes, you are right,  neither could i mount ext4 partitions within busybox
> But it is able to mount vfat partition, maybe it's for UEFI?

No, it is not meant for UEFI. It is meant for USB sticks which are (were 
?) most often formatted with FAT. This is also one of the reasons why 
the first DVD ISO image size is less than 4 GB which is the maximum file 
size on FAT (the other one being that it can fit on a 4 GB stick).

[toc] | [prev] | [next] | [standalone]


Page 2 of 3 — ← Prev page 1 [2] 3  Next page →

Back to top | Article view | linux.debian.user


csiph-web