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


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

installing debian 10 without a cd and without usb but could use ethernet

Started byDan Hitt <dan.hitt@gmail.com>
First post2021-01-21 05:40 +0100
Last post2021-01-28 17:10 +0100
Articles 5 on this page of 25 — 8 participants

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


Contents

  installing debian 10 without a cd and without usb but could use ethernet Dan Hitt <dan.hitt@gmail.com> - 2021-01-21 05:40 +0100
    Re: installing debian 10 without a cd and without usb but could use  ethernet Felix Miata <mrmazda@earthlink.net> - 2021-01-21 06:10 +0100
    Re: installing debian 10 without a cd and without usb but could use  ethernet David Wright <deblis@lionunicorn.co.uk> - 2021-01-21 07:00 +0100
    Re: installing debian 10 without a cd and without usb but could use  ethernet Brian <ad44@cityscape.co.uk> - 2021-01-21 12:40 +0100
      Re: installing debian 10 without a cd and without usb but could use ethernet Dan Hitt <dan.hitt@gmail.com> - 2021-01-21 18:40 +0100
        Re: installing debian 10 without a cd and without usb but could use  ethernet Dan Ritter <dsr@randomstring.org> - 2021-01-21 19:10 +0100
          Re: installing debian 10 without a cd and without usb but could use ethernet Dan Hitt <dan.hitt@gmail.com> - 2021-01-21 20:10 +0100
            Re: installing debian 10 without a cd and without usb but could use  ethernet Dan Ritter <dsr@randomstring.org> - 2021-01-21 20:30 +0100
            Re: installing debian 10 without a cd and without usb but could use  ethernet Brian <ad44@cityscape.co.uk> - 2021-01-21 21:50 +0100
              Re: installing debian 10 without a cd and without usb but could use  ethernet Erwan David <erwan@rail.eu.org> - 2021-01-21 22:00 +0100
                Re: installing debian 10 without a cd and without usb but could use ethernet Dan Hitt <dan.hitt@gmail.com> - 2021-01-21 22:30 +0100
              Re: installing debian 10 without a cd and without usb but could use  ethernet Erwan David <erwan@rail.eu.org> - 2021-01-21 22:00 +0100
            Re: installing debian 10 without a cd and without usb but could use  ethernet David Wright <deblis@lionunicorn.co.uk> - 2021-01-22 01:30 +0100
        Re: installing debian 10 without a cd and without usb but could use  ethernet Brian <ad44@cityscape.co.uk> - 2021-01-21 21:30 +0100
          Re: installing debian 10 without a cd and without usb but could use ethernet Dan Hitt <dan.hitt@gmail.com> - 2021-01-21 22:10 +0100
            Re: installing debian 10 without a cd and without usb but could use  ethernet Dan Ritter <dsr@randomstring.org> - 2021-01-21 22:20 +0100
            Re: installing debian 10 without a cd and without usb but could use  ethernet Felix Miata <mrmazda@earthlink.net> - 2021-01-21 22:40 +0100
            Re: installing debian 10 without a cd and without usb but could use  ethernet Brian <ad44@cityscape.co.uk> - 2021-01-22 00:30 +0100
              Re: installing debian 10 without a cd and without usb but could use  ethernet Brian <ad44@cityscape.co.uk> - 2021-01-22 01:30 +0100
      Re: installing debian 10 without a cd and without usb but could use  ethernet Felix Miata <mrmazda@earthlink.net> - 2021-01-21 22:30 +0100
        Re: installing debian 10 without a cd and without usb but could use  ethernet Brian <ad44@cityscape.co.uk> - 2021-01-22 00:20 +0100
    Re: installing debian 10 without a cd and without usb but could use  ethernet Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-21 20:10 +0100
    Re: installing debian 10 without a cd and without usb but could use  ethernet Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-21 20:30 +0100
    Re: installing debian 10 without a cd and without usb but could use  ethernet David Christensen <dpchrist@holgerdanske.com> - 2021-01-22 00:50 +0100
    Re: installing debian 10 without a cd and without usb but could use  ethernet David Wright <deblis@lionunicorn.co.uk> - 2021-01-28 17:10 +0100

Page 2 of 2 — ← Prev page 1 [2]


#230952 — Re: installing debian 10 without a cd and without usb but could use ethernet

FromBrian <ad44@cityscape.co.uk>
Date2021-01-22 00:20 +0100
SubjectRe: installing debian 10 without a cd and without usb but could use ethernet
Message-ID<BzRp8-2ae-5@gated-at.bofh.it>
In reply to#230949
On Thu 21 Jan 2021 at 16:20:10 -0500, Felix Miata wrote:

> Brian composed on 2021-01-21 11:33 (UTC):
> 
> > David Wright's advice to use the hd-media kernel and initrd is your way
> > forward. The simplest GRUB stanza possible is
> 
> >    menuentry 'Debian 10' {
> >    linux /boot/vmlinuz
> >    initrd /boot/initrd.gz
> >    }
> 
> I'm having trouble thinking of how this could work. Grub needs a way to know where
> to find the correct partition/filesystem. My 2021-01-21 00:06 (UTC-0500) response
> included one example:
> 
> 	search --no-floppy --label --set=root p03res
> 
> It remains for the reader to determine the simplest possible example.
> https://www.gnu.org/software/grub/manual/grub/grub.html

In the absence of being told the disk and partition, GRUB will use
(hd0,msdos1). The OP did not specify more than one disk and partition.

-- 
Brian.

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


#230934 — Re: installing debian 10 without a cd and without usb but could use ethernet

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2021-01-21 20:10 +0100
SubjectRe: installing debian 10 without a cd and without usb but could use ethernet
Message-ID<BzNvb-8nq-17@gated-at.bofh.it>
In reply to#230911

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

On Mi, 20 ian 21, 20:31:53, Dan Hitt wrote:
> 
> Or perhaps there's some other way to approach the problem?  For example,
> i've already created a partition to hold the debian system i want to put on
> the machine.  Is there some way of hand-populating it?

Yes, either debootstrap (used also by the Debian Installer) or 
mmdebstrap can create a "blank" Debian installation.

Please mind that it will need additional configuration in order to make 
it work, including but not limited to creating users, setting up your 
fstab (in case you more partitions), etc. that are normally done by the
installer.

> I do have a running
> debian 10 system on another machine, and i suppose i could tar it up and
> unpack it into the new partition on the mint machine.

Cloning another installation presents its own challenges, as you might 
end with stuff duplicated that should be unique for each system (unless 
you really know what you are doing).

It's probably easier to just let debootstrap/mmdebstrap take care of the 
bulk installation and use the other Debian installation only as a source 
of configuration files.

> But i'm not sure if
> there's something outside the filesystem but inside the partition which is
> necessary for it to be bootable.

It depends.

With GRUB on traditional BIOS (non-UEFI) systems there are several 
approaches possible, depending on which (if any) is your "primary" 
system (i.e. the one that provides/controls the boot loader).

More details are needed here to provide useful recommendations.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

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


#230937 — Re: installing debian 10 without a cd and without usb but could use ethernet

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2021-01-21 20:30 +0100
SubjectRe: installing debian 10 without a cd and without usb but could use ethernet
Message-ID<BzNOx-8tg-1@gated-at.bofh.it>
In reply to#230911

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

On Mi, 20 ian 21, 20:31:53, Dan Hitt wrote:
> I have a machine that currently has linux mint 16.04 on it.
> 
> I would like to install debian 10 on it, but the installer really wants
> access to a cd drive, and one just isn't available.

Any kind of medium that can be used by your motherboard to boot should 
work (e.g. a spare SATA drive), same as you would be using a USB stick 
(including loosing all data when copying the .iso to it).

If using the 'mini.iso' in the 'netboot' category you can even install 
to the same drive (the other images don't allow repartitioning of the 
drive (partition?) they are on).

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

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


#230954 — Re: installing debian 10 without a cd and without usb but could use ethernet

FromDavid Christensen <dpchrist@holgerdanske.com>
Date2021-01-22 00:50 +0100
SubjectRe: installing debian 10 without a cd and without usb but could use ethernet
Message-ID<BzRS9-2je-3@gated-at.bofh.it>
In reply to#230911
On 2021-01-20 20:31, Dan Hitt wrote:
> I have a machine that currently has linux mint 16.04 on it.
> 
> I would like to install debian 10 on it, but the installer really 
> wants access to a cd drive, and one just isn't available.
> 
> However, the linux mint 16.04 system does have grub2 on it.
> 
> So it is possible for me to boot from an iso image stored in the 
> filesystem just like a regular file.  It's just a matter of writing
> a menu entry in /etc/grub/40_custom.
> 
> I know this works because i've booted into a live cd image of linux 
> mint 20.1 (using the filesystem, not a cdrom), and started an 
> installation process.  I backed out of it, because i would like to 
> install debian 10, not just a later version of mint.
> 
> When i do the same thing with debian, it starts off ok, doing some 
> simple things like setting the language and the keyboard layout, but 
> then it complains that it cannot find a cd rom.  This is true with 
> both the netinst image, as well as with a jigdo xfce image which i 
> think should have everything necessary and not need a cd rom.  For 
> reference, my debian menu entry is
> 
> menuentry "debian-10-iso" { set 
> isofile="/USER/iso/debian-10.7.0-amd64-xfce-CD-1.iso" loopback loop 
> (hd0,gptNN)$isofile linux (loop)/install.amd/vmlinuz boot=install.amd
> iso-scan/filename=$isofile noprompt noeject initrd 
> (loop)/install.amd/initrd.gz }
> 
> Here, USER is the user name in whose account the iso image is, and 
> gptNN stands for the particular partition where home is mounted for 
> the user USER.
> 
> So my first question is whether there's a better iso image i can
> use, or if i can fix this up by giving more arguments to the linux 
> invocation line or something else in the menu entry.
> 
> The second question is whether there's a way, from grub (grub2, 
> actually), of dropping down to the bios.  I imagine this is quite 
> impossible, but if i'm wrong, please let me know.  The reason i
> would like to do this is that it is very hard for me to interrupt the
> boot process fast enough to get to the bios, and i've only managed to
> do it once or twice after many tries. If i were in the bios, i might
> be able to figure out if it could boot from usb, and i could set the 
> boot order to do this, and make a bootable usb version of netinst 
> (perhaps).
> 
> Or perhaps there's some other way to approach the problem?  For 
> example, i've already created a partition to hold the debian system
> i want to put on the machine.  Is there some way of hand-populating
> it? I do have a running debian 10 system on another machine, and i 
> suppose i could tar it up and unpack it into the new partition on
> the mint machine.  But i'm not sure if there's something outside the 
> filesystem but inside the partition which is necessary for it to be 
> bootable.
> 
> Thanks in advance for any advice!


On 2021-01-21 13:06, Dan Hitt wrote:
> I didn't mean to imply that linux mint 16.04 was the only OS on the 
> machine, or that there was only one partition.
> 
> There are 30 partitions, although not all of them have an OS on
> them; i have a partition for users so that when i update the box with
> a new OS, i can have access to all the previous user accounts.
> That's what i> intend to do this time as well.
> 
> I haven't put a new OS on the box in the last 5 years, but i would 
> like to update it to debian 10 now; my general procedure in such 
> cases is to add a new partition for the OS, but not discard what i 
> have already installed. The only disadvantage to this is that 
> operations that scan the entire disk looking for OSes take longer.
> 
> The challenges i face this time are that the CD is not available, so 
> that everything has to be done through the hd.  Further, i only have 
> access to the bios with great difficulty.   If i could get into the 
> bios, i could change the boot order, and possibly boot from usb. 
> However, it is very difficult to interrupt the boot process 
> successfully (by pressing F2), because it is so fast.  (I could 
> conceivably even get a usb
> 
> But the hd is big, and i can make more partitions as needed and 
> populate them as desired.


On 2021-01-21 13:20, Dan Hitt wrote:
> he problem with pxeboot, is that i would have to get into the bios to
> change the boot order.  The bios does have an option for pxe boot, 
> but i cannot reliably get into the bios: after many tries i was only 
> able to get into it a couple of times.
> 
> So if i had a way to reliably force my way into the bios, it would
> be very valuable, whether for pxe boot or just anything else.


Providing more information will allow readers to provide better answers:

- The make and model of the computer.  If homebrew, the make and model 
of the chassis and motherboard.  Please provide URL's.

- How many drive bays the chassis has.

- Makes and models of drives in the computer, and which bay each is in. 
  Please provide URL's.

- How many and type of drive interfaces on the motherboard and/or 
HBA(s), and which drive is connected to which interface.

- The purpose of each drive, what it contains (e.g. partitioning scheme, 
slices/ partitions, LVM, dm, ZFS, LUKS, filesystems, etc.), and which 
one you want to put Debian on.

- The *.iso filename of the Debian Installer you want to install from.


David

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


#231233 — Re: installing debian 10 without a cd and without usb but could use ethernet

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2021-01-28 17:10 +0100
SubjectRe: installing debian 10 without a cd and without usb but could use ethernet
Message-ID<BCi1P-3FA-1@gated-at.bofh.it>
In reply to#230911
On Wed 20 Jan 2021 at 20:31:53 (-0800), Dan Hitt wrote:
> […]
> The second question is whether there's a way, from grub (grub2, actually),
> of dropping down to the bios.  I imagine this is quite impossible, but if
> i'm wrong, please let me know.  The reason i would like to do this is that
> it is very hard for me to interrupt the boot process fast enough to get to
> the bios, and i've only managed to do it once or twice after many tries.
> If i were in the bios, i might be able to figure out if it could boot from
> usb, and i could set the boot order to do this, and make a bootable usb
> version of netinst (perhaps).

I think this question got overlooked earlier.

If by "bios" you mean BIOS/CMOS/UEFI, then there might be. I have
noticed that my AiO Dell has the following paragraph inserted
into grub.cfg:

  ### BEGIN /etc/grub.d/30_uefi-firmware ###
  menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
          fwsetup
  }
  ### END /etc/grub.d/30_uefi-firmware ###

This is all new to me as the Dell is my first PC that I boot through
EFI. (My other EFI-capable PC still boots linux via BIOS because
Windows was pre-installed with EFI.)

The effect of selecting this grub entry is exactly the same as
pressing F2 durimg POST and before the grub menu pops up.
I suppose the mechanism might be contained in the grub module:

root root 2216 Jul 30 18:18 /boot/grub/x86_64-efi/efifwsetup.mod

Cheers,
David.

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

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


csiph-web