On Mon, 19 Aug 2024 at 11:19, Richard Owlett <[email protected]> wrote:
At boot time, what determines which physical partition gets mounted as a
specific directory ( /, /home, swap, and so forth )?
Please reference documentation as reading it will remind me of how and
why I chose specific options.
man 5 fstab
https://debian-handbook.info/browse/stable/sect.config-misc.html#sect.fstab-mount-points
THANK YOU
On 08/19/2024 07:02 AM, David wrote:
On Mon, 19 Aug 2024 at 11:19, Richard Owlett <[email protected]>
wrote:
At boot time, what determines which physical partition gets
mounted as a specific directory ( /, /home, swap, and so forth )?
Please reference documentation as reading it will remind me of how
and why I chose specific options.
man 5 fstab
"fstab" was one of the keywords I'd forgotten.
https://debian-handbook.info/browse/stable/sect.config-misc.html#sect.fstab-mount-points
Browsing that link suggests it will prompt me to ask needed questions.
It's not the document I was visualizing. I was expecting something
that I would have been reading when new to Linux.
On Mon, 19 Aug 2024 08:44:39 -0500
Richard Owlett <[email protected]> wrote:
THANK YOU
On 08/19/2024 07:02 AM, David wrote:
On Mon, 19 Aug 2024 at 11:19, Richard Owlett <[email protected]>
wrote:
At boot time, what determines which physical partition gets
mounted as a specific directory ( /, /home, swap, and so forth )?
Please reference documentation as reading it will remind me of how
and why I chose specific options.
man 5 fstab
"fstab" was one of the keywords I'd forgotten.
https://debian-handbook.info/browse/stable/sect.config-misc.html#sect.fstab-mount-points
Browsing that link suggests it will prompt me to ask needed questions.
It's not the document I was visualizing. I was expecting something
that I would have been reading when new to Linux.
Then what you want is not documentation but tutorials. You want
documentation when you know something you need to do but not the exact details of how. Many man pages are rather short on examples, which
tutorials will provide.
Try Google with:
linux directory mounting on boot tutorial
This will turn up a lot of similar but not identical sites, varying
from a bald list of instructions to do a particular thing, to an
explanation of fundamentals. Some won't mean much to you, ignore them
and move on.
The first step is probably to look at /etc/fstab on a working system
and see what you can understand of it, and what you don't understand.
That's certainly where partitions are named, along with filesystem directories and the mapping between them. The documentation is where
you find what the mounting parameters mean and do. Apart from fstab
itself, you'll need the man pages for the mount commands for whatever filesystem types are named in fstab e.g. mount.cifs, as many parameters
are specific to the filesystem type.
I'm over 80 and doing first "from scratch" install since Squeeze ;}
Hardware is Lenovo R61 ThinkPad (64 bit).
I multi boot [Grub will have at least three options]:
1. minimalist installation - primarily command line usage
2. 64 bit Debian with maximum features
3. 32 bit Debian - couple of applications require a 32 bit OS
4. other installs with strong project dependencies
Today's question
At boot time, what determines which physical partition gets mounted as a specific directory ( /, /home, swap, and so forth )?
I'm over 80 and doing first "from scratch" install since Squeeze ;}
Hardware is Lenovo R61 ThinkPad (64 bit).
I multi boot [Grub will have at least three options]:
1. minimalist installation - primarily command line usage
2. 64 bit Debian with maximum features
3. 32 bit Debian - couple of applications require a 32 bit OS
4. other installs with strong project dependencies
Today's question
At boot time, what determines which physical partition gets mounted as a specific directory ( /, /home, swap, and so forth )?
Please reference documentation as reading it will remind me of how and why I chose specific options.
TIA
P.S. - re-reading https://www.debian.org/releases/stable/amd64/ ;}!
On 8/19/24 05:19, Richard Owlett wrote:
I'm over 80 and doing first "from scratch" install since Squeeze ;} Hardware is Lenovo R61 ThinkPad (64 bit).
I multi boot [Grub will have at least three options]:
1. minimalist installation - primarily command line usage
2. 64 bit Debian with maximum features
3. 32 bit Debian - couple of applications require a 32 bit OS
4. other installs with strong project dependencies
Today's question
At boot time, what determines which physical partition gets mounted as a specific directory ( /, /home, swap, and so forth )?
In most cases, mount actions are as described in /etc/fstab of the image being booted.
I'm over 80 and doing first "from scratch" install since Squeeze ;}
Hardware is Lenovo R61 ThinkPad (64 bit).
I multi boot [Grub will have at least three options]:
1. minimalist installation - primarily command line usage
2. 64 bit Debian with maximum features
3. 32 bit Debian - couple of applications require a 32 bit OS
4. other installs with strong project dependencies
Today's question
At boot time, what determines which physical partition gets mounted as a specific directory ( /, /home, swap, and so forth )?
Please reference documentation as reading it will remind me of how and
why I chose specific options.
TIA
P.S. - re-reading https://www.debian.org/releases/stable/amd64/ ;}!
On Mon 19 Aug 2024 at 16:23:31 (-0600), Tom Dial wrote:0
On 8/19/24 05:19, Richard Owlett wrote:
I'm over 80 and doing first "from scratch" install since Squeeze ;}
Hardware is Lenovo R61 ThinkPad (64 bit).
I multi boot [Grub will have at least three options]:
1. minimalist installation - primarily command line usage
2. 64 bit Debian with maximum features
3. 32 bit Debian - couple of applications require a 32 bit OS
4. other installs with strong project dependencies
Today's question
At boot time, what determines which physical partition gets mounted as a specific directory ( /, /home, swap, and so forth )?
In most cases, mount actions are as described in /etc/fstab of the image being booted.
AFAICT the /etc/fstab in the boot images of all my Debian systems
is empty. It's only when the root filesystem gets mounted that a
non-empty /etc/fstab becomes available.
OTOH a netinst installer's image does have a populated /etc/fstab,
but only with:
devpts /dev/pts devpts defaults 0 0
tmpfs /run tmpfs nosuid,size=10%,mode=755 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
Cheers,
David.
On 8/19/24 04:19, Richard Owlett wrote:
I'm over 80 and doing first "from scratch" install since Squeeze ;}
Hardware is Lenovo R61 ThinkPad (64 bit).
I multi boot [Grub will have at least three options]:
1. minimalist installation - primarily command line usage
2. 64 bit Debian with maximum features
3. 32 bit Debian - couple of applications require a 32 bit OS
4. other installs with strong project dependencies
Today's question
At boot time, what determines which physical partition gets mounted as
a specific directory ( /, /home, swap, and so forth )?
Please reference documentation as reading it will remind me of how and
why I chose specific options.
TIA
P.S. - re-reading https://www.debian.org/releases/stable/amd64/ ;}!
I tried multi-boot back in the day (e.g. BIOS/MBR) -- it was not for me.
My solution was to buy multiple disks and put one OS on each. You
could do this -- the disk drive in the Lenovo R61 ThinkPad is externally accessible:
https://www.ifixit.com/Guide/Lenovo+ThinkPad+R61i+Hard+Drive+Replacement/118125 >
AIUI UEFI/GPT were designed to support multi-boot, but one-disk-per-OS
is KISS -- each installer can have its way with the entire disk, and the installed OS just works (if it supports your hardware).
That said, the fundamental problem with either approach is that no
matter which OS you are running, you want something in another OS that
is not running. Back in the day, I bought additional computers. Today, there are several high quality hypervisors to choose from.
A key consideration is where to put your data, so that it is accessible
from whichever OS you happen to be running. Solutions include a file server, a NAS, and another drive with a lowest-common-denominator file
system (e.g. FAT32, ExFAT, or NTFS).
Hi,
I'm afraid I have not got the kind of answer you request for your
actual question but…
On Mon, Aug 19, 2024 at 06:19:26AM -0500, Richard Owlett wrote:
I'm over 80 and doing first "from scratch" install since Squeeze ;}
Hardware is Lenovo R61 ThinkPad (64 bit).
I multi boot [Grub will have at least three options]:
1. minimalist installation - primarily command line usage
2. 64 bit Debian with maximum features
3. 32 bit Debian - couple of applications require a 32 bit OS
All 32-bit x86 software runs on a 64-bit kernel no problem¹ on
Debian, so it's unlikely you actually need to dedicate a whole
install to a 32-bit kernel, which also as previously mentioned has a
single digit of years of remaining lifetime in Debian.
4. other installs with strong project dependencies
Dependencies can indeed get out of hand sometimes.
I don't know how much you are up for a learning experience but
virtual machines or containers can often be a good way to
compartmentalise projects and their dependencies without needing to
do whole separate installs.
So you see, I think your use case can be handled with only one
Debian install, using containers or VMs for the projects with a lot
of dependencies. But I appreciate it's a lot to get stuck into.
Today's question
At boot time, what determines which physical partition gets mounted as a
specific directory ( /, /home, swap, and so forth )?
You asked for pointers to complete documentation on this and I can't
do that which is why I said this wasn't going to be an answer to
your actual question.
A summary however is that:
The grub entry provides an initramfs and a device for use as root.
The initramfs provides a temporary root filesystem containing all of
the tools necessary to mount the actual root device as root.
It then mounts root (which must also contain /etc). If root did not
also contain /usr then that is also mounted at this point.
The real init from the root filesystem (systemd) then takes
over, looks at /etc/fstab and mounts everything² in there at the
places it says.
So, there are multiple things going on here as regards what gets
mounted where. The bootloader entry decides which device / will be
on (you can test this by changing / in the fstab — whatever is in
the bootloader entry will prevail). The initramfs can mount things
outside of the direction of fstab but tyoically doesn't. Then the
init system from the real root filesystem reads /etc/fstab.
Finally there can be systemd .mount units outside of fstab, but
again that is not typical and you'd know if you added those.
Thanks,
Andy
¹ By which I mean if it runs on a 32-bit kernel it will work on a
64-bit kernel as well unless they went out of their way to ensure
it won't work.
² Some things in /etc/fstab can be set to "noauto" to prevent them
being automatically mounted at boot time.
On 08/19/2024 02:51 PM, Andy Smith wrote:
Hi,
I'm afraid I have not got the kind of answer you request for your
actual question but…
On Mon, Aug 19, 2024 at 06:19:26AM -0500, Richard Owlett wrote:
I'm over 80 and doing first "from scratch" install since Squeeze ;} Hardware is Lenovo R61 ThinkPad (64 bit).
I multi boot [Grub will have at least three options]:
1. minimalist installation - primarily command line usage
2. 64 bit Debian with maximum features
3. 32 bit Debian - couple of applications require a 32 bit OS
All 32-bit x86 software runs on a 64-bit kernel no problem¹ on
Debian, so it's unlikely you actually need to dedicate a whole
install to a 32-bit kernel, which also as previously mentioned has a
single digit of years of remaining lifetime in Debian.
I don't see anything on https://wiki.debian.org/LTS that implies shorter lifetime for i386 than anything else.
4. other installs with strong project dependencies
Dependencies can indeed get out of hand sometimes.
I wasn't speaking of "software dependencies". For different projects I want different "working environments".
I don't know how much you are up for a learning experience but
virtual machines or containers can often be a good way to
compartmentalise projects and their dependencies without needing to
do whole separate installs.
I looked into VMs long ago. For my style - no advantages worth the effort.
Finally there can be systemd .mount units outside of fstab, but
again that is not typical and you'd know if you added those.
Thanks,
Andy
On Tue, Aug 20, 2024 at 03:44:03AM -0500, Richard Owlett wrote:
On 08/19/2024 02:51 PM, Andy Smith wrote:
Hi,
I'm afraid I have not got the kind of answer you request for your
actual question but…
Hi Richard,
A first question: is this your main computer?
The R61 is from 2007 or so - so more than 15 years old.
It has a 160GB spinning disk, if I'm reading the specs correctly, and 1GB of memory.
There will be non i386 installer medium for Trixie when released thoughOn Mon, Aug 19, 2024 at 06:19:26AM -0500, Richard Owlett wrote:
I'm over 80 and doing first "from scratch" install since Squeeze ;}
Hardware is Lenovo R61 ThinkPad (64 bit).
I multi boot [Grub will have at least three options]:
1. minimalist installation - primarily command line usage
2. 64 bit Debian with maximum features
3. 32 bit Debian - couple of applications require a 32 bit OS
All 32-bit x86 software runs on a 64-bit kernel no problem¹ on
Debian, so it's unlikely you actually need to dedicate a whole
install to a 32-bit kernel, which also as previously mentioned has a
single digit of years of remaining lifetime in Debian.
I don't see anything on https://wiki.debian.org/LTS that implies shorter
lifetime for i386 than anything else.
i386 will be retained as a release architecture.
There are already
packages which cannot be built within i386 limitations so the architecture
is mostly built using amd64. Some packages for i386 will not now build
even on amd64 because of compiler changes. i386 is dead but won't lie down :)
4. other installs with strong project dependencies
Dependencies can indeed get out of hand sometimes.
I wasn't speaking of "software dependencies". For different projects I want >> different "working environments".
A single install with all directories in one partition using LVM would be most straightforward. In 160GB and booting using MBR/legacy, you may
run out of disk physical partitions anyway.
Install with GUI for general use. Switch to a full screen VT for
command line use, maybe?
I don't know how much you are up for a learning experience but
virtual machines or containers can often be a good way to
compartmentalise projects and their dependencies without needing to
do whole separate installs.
Absolutely agreed: the problem is the 1GB memory
<snip>
I looked into VMs long ago. For my style - no advantages worth the effort. >>
Finally there can be systemd .mount units outside of fstab, but
again that is not typical and you'd know if you added those.
Thanks,
Andy
Richard,
You are going to be *significantly* limited by hardware here with the
size and memory requirements of modern Debian. Make life simpler:
install a desktop environment with lower memory requirements like XFCE
and try and minimise diverse requirements.
*DO* read the release notes. If you want to make significant customisations, I'd suggest a text only install, maybe using the expert install option.
All the very best, as ever,
Andy
([email protected])
On 08/20/2024 04:30 AM, Andrew M.A. Cater wrote:
[snip]
There will be non i386 installer medium for Trixie when released though
i386 will be retained as a release architecture.
Can you point me to the details. I have two i386 I wish to use as long
as possible.
Debian 13 will continue to support 32 bit x86 processors, howeverhttps://en.wikipedia.org/wiki/Debian_version_history
the lower limit is now i686.
5.1.13. Baseline for 32-bit PC is now i686¶
Debian's support for 32-bit PC (known as the Debian architecture i386)
now no longer covers any i586 processor. The new minimum requirement
is i686. This means that the i386 architecture now requires the "long NOP" (NOPL)
instruction, while bullseye still supported some i586 processors without
that instruction (e.g. the "AMD Geode").
5.1.13. Baseline for 32-bit PC is now i686¶
Debian's support for 32-bit PC (known as the Debian architecture
i386) now no longer covers any i586 processor. The new minimum
requirement is i686. This means that the i386 architecture now
requires the "long NOP" (NOPL) instruction, while bullseye still
supported some i586 processors without that instruction (e.g. the
"AMD Geode").
On 08/20/2024 05:45 AM, Richard Owlett wrote:
On 08/20/2024 04:30 AM, Andrew M.A. Cater wrote:
[snip]
There will be non i386 installer medium for Trixie when released though i386 will be retained as a release architecture.
Can you point me to the details. I have two i386 I wish to use as long
as possible.
I don't know if this is what Andrew was referring to, but I just found:
Debian 13 will continue to support 32 bit x86 processors, howeverhttps://en.wikipedia.org/wiki/Debian_version_history
the lower limit is now i686.
which refers to
"Debian Trixie release notes" https://www.debian.org/releases/trixie/release-notes/issues.en.html#i386-is-i686
which states (in part)
5.1.13. Baseline for 32-bit PC is now i686�
Debian's support for 32-bit PC (known as the Debian architecture i386)
now no longer covers any i586 processor. The new minimum requirement
is i686. This means that the i386 architecture now requires the "long NOP" (NOPL)
instruction, while bullseye still supported some i586 processors without that instruction (e.g. the "AMD Geode").
[snip]
On 08/19/2024 02:51 PM, Andy Smith wrote:
[32-bit x86] as previously mentioned has a single digit of years
of remaining lifetime in Debian.
I don't see anything on https://wiki.debian.org/LTS that implies shorter lifetime for i386 than anything else.
Then there is the fact that the LTS team can and does mark packages
as unsupportable for the lifetime of LTS when they need to, so just
because LTS team exists doesn't mean they can get around to
supporting 32-bit x86 installer/kernel. I would not be at all
surprised if they gave up on it before the end of bookworm LTS.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 146:12:26 |
| Calls: | 12,089 |
| Calls today: | 2 |
| Files: | 15,000 |
| Messages: | 6,517,501 |