[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hangs at boot



On Thu 01 Dec 2022 at 13:22:11 (+0100), jd wrote:
> On 2022-12-01 04:14, David Wright wrote:
> > On Wed 30 Nov 2022 at 19:38:05 (-0500), Greg Wooledge wrote:

> > > Have you considered the possibility it's *not* hung, but is in fact
> > > booted and working?
> > > 
> > > Have you tried pressing Enter a few times to see if a new login prompt
> > > gets printed?
> > 
> > If pressing Enter doesn't work, it might be that the "main" VC is
> > broken; perhaps try switching to another VC with Alt-→ and seeing
> > if a Login: prompt appears there.
> 
> Pressing enter doesn't do anything, but I can switch VC. I get a login
> prompt on every VC but the first one. The network is up to, I get an
> ip-address and I can ping the internet. Neither sddm or kde starts
> though, nor does my home partition get mounted. In fact it doesn't
> even show up in /etc/fstab and I definitely configured it to get
> mounted on nvme0n1p1 during installation.

Presumably you logged in as root? Is there a /home directory at all?
If there is, does it contain anything, like a directory with two or
three dotfiles in it?

What are the contents of /etc/fstab?

Although /var/log/installer/partman contains the general layout of the
disk partitions (right near the end), it doesn't reflect the final
screen that you see in the d-i's partitioner. Do you have a record
of the latter? It might look something like this:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ This is an overview of your currently configured partitions and mount   │
  │ points. Select a partition to modify its settings (file system, mount   │
  │ point, etc.), a free space to create partitions, or a device to         │
  │ initialize its partition table.                                         │
  │                                                                         │
  │         Guided partitioning                                             │
  │         Configure software RAID                                         │
  │         Configure the Logical Volume Manager                            │
  │         Configure encrypted volumes                                     │
  │         Configure iSCSI volumes                                         │
  │                                                                         │
  │         SCSI1 (0,0,0) (sda) - 500.1 GB ATA WDC WD5000ABCD-0             │
  │         >     #1  primary   30.9 GB  B  F  ext4    /                    │
  │         >     #2  primary   31.1 GB        ext4                         │
  │         >     #3  primary  434.1 GB     K  ext4    /home                │
  │         >     #4  primary    4.0 GB        swap                         │
  │         SCSI5 (0,0,0) (sdc) - 2.0 GB Generic Flash Disk                 │
  │                                                                         │
  │         Undo changes to partitions                                      │
  │         Finish partitioning and write changes to disk   ← selected      │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘

(In the case of this example, /home was being inherited from a previous
installation in the 2nd partition, hence the K(eep) rather than F(ormat).)

Close to the end of /var/log/installer/syslog, there should be a
section like:

  $ grep -B1 -A10 -h 'Adding new group' /var/log/installer/syslog 
  Apr 17 01:42:21 user-setup: Adding user `auser' ...
  Apr 17 01:42:21 user-setup: Adding new group `auser' (1000) ...
  Apr 16 20:42:21 groupadd[29019]: group added to /etc/group: name=auser, GID=1000
  Apr 16 20:42:21 groupadd[29019]: group added to /etc/gshadow: name=auser
  Apr 16 20:42:21 groupadd[29019]: new group: name=auser, GID=1000
  Apr 17 01:42:21 user-setup: Adding new user `auser' (1000) with group `auser' ...
  Apr 16 20:42:21 useradd[29025]: new user: name=auser, UID=1000, GID=1000, home=/home/auser, shell=/bin/bash, from=none
  Apr 17 01:42:21 user-setup: Creating home directory `/home/auser' ...
  Apr 17 01:42:21 user-setup: Copying files from `/etc/skel' ...
  Apr 16 20:42:21 usermod[29034]: change user 'auser' password
  Apr 16 20:42:21 chfn[29041]: changed user 'auser' information
  Apr 16 20:42:21 chpasswd[29050]: pam_unix(chpasswd:chauthtok): password changed for auser
  $ 

If you don't have that, it may be that the installation didn't
complete correctly. Although you type the username and password near
the start of the installation, the d-i doesn't actually write it
on the disk until moments before you're asked to remove the
installation media.

Cheers,
David.

Reply to: