Discussion:
Debian/Hurd: Console Timeout Error
Charlie Sale
2018-04-08 14:46:33 UTC
Permalink
Hello Hurd.

I believe that I commented on this in another thread, but I figured
I should put this into a new thread because it is its own topic and
it might apply to someone else.

I am trying to run Debian/Hurd on qemu, specifically qemu-system-i386.
The command that I am running it with is:
| qemu-system-i386 \
| -net user,hostfwd=tcp:127.0.0.1:8888-:22 -net nic \
| -drive file=debian-hurd-20171101.img,cache=writeback -m 1G

I get two major issues. The foremost being that he console times
out. I get the error:
| /bin/console: Could not recieve return value from daemon process:
| Connection Timeout
whenever the console begins to boot up. This is a big issue because I
cannot interact with the system. I have tried connecting via ssh (I
start the system with port forwarding), but the system is not configured
to allow connection without a password (the root user does not have a
password, so trying to login with a blank password does not work).

The other major issues is that fsck fails during the boot. I don't know
if this is as important as the console failure, but I thought I would
point it out.

I hope that someone has a remedy.

Cheers!
Charlie
--
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFpKrgwBCADaPosQdy9rTpDmGp7y+m7QCW3w3AGtPgoBRJVwuXyOnRp/Q8Xg
jMaQF17GmRgy54+eZJJV5vQNrXAvTo7hX5lAjNTu0EawPE53zQZ7CFGT8YEjlJ8j
PYh5Tp02ckQxZQOZqyIQS2w2CqCZYhSeq2l50pNA2Rutxd2an1DBzdH/1zBnY5qo
r+8N5MgNBcvjgaWiT8kAefHHlD+ssWygg1yVUzxHbOoLWRi24o0mKn6a24fP5EHr
uZXfsoC1Vrhb8RjyftXw0DPFavx6Zi7VIHv68MB/aBVEtMHisCyHlfnqFTMcgKWh
hV5ZC5OR7ELNhNZ82+BoTVH5oA5bD5Hi9tklABEBAAG0J0NoYXJsaWUgU2FsZSA8
c29mdHdhcmVzYWxlMDFAZ21haWwuY29tPokBOAQTAQIAIgUCWkquDAIbAwYLCQgH
AwIGFQgCCQoLBBYCAwECHgECF4AACgkQjFElWoJ7azJvjgf/TtI2/F7xPRUzPaTi
opGbkPXgZMDrRCXK58NQMmUHXmLAwMx2MbfKOhu0hXvZw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K-----
Svante Signell
2018-04-08 15:27:06 UTC
Permalink
Post by Charlie Sale
The other major issues is that fsck fails during the boot. I don't
know if this is as important as the console failure, but I thought I
would point it out.
Hi Charlie,

You should check your image from your Linux host:
NOTE: Check the offset for your / partition
fdisk -l debian-hurd-20171101.img
2048*512 = 1048576
su
/sbin/losetup -o 1048576 /dev/loop0 debian-hurd-20171101.img
e2fsck -y /dev/loop0
losetup -d /dev/loop0
exit

After that I think your image will boot fine.
Charlie Sale
2018-04-08 18:33:45 UTC
Permalink
I tried doing that, but I got some errors during the process. Here is what
I did:

1. $ fdisk -l debian-hurd*.img
*output*:
Device Boot Start End Sectors Size Id Type
debian-hurd-20171101.img1 2048 1953791 1951744 953M 82 Linux swap
/ Solaris
debian-hurd-20171101.img2 1955838 10239999 8284162 4G 5 Extended
debian-hurd-20171101.img5 1955840 10239999 8284160 4G 83 Linux

2. # losetup -o 1955838 /dev/loop0 debian-hurd-20171101.img
Which worked fine.

3. e2fsck -y /dev/loop0

*output*:
e2fsck 1.43.5 (04-Aug-2017)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/loop0

The superblock could not be read or does not describe a valid
ext2/ext3/ext4
filesystem. If the device is valid and it really contains an
ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>

I tried doing both of the suggested remedy commands, but neither worked.
They just
returned the same output.

Because these commands failed, nothing changed in booting my Debian.

Thanks for trying to help. Any more suggestions?

Thanks!
Charlie
Post by Svante Signell
Post by Charlie Sale
The other major issues is that fsck fails during the boot. I don't
know if this is as important as the console failure, but I thought I
would point it out.
Hi Charlie,
NOTE: Check the offset for your / partition
fdisk -l debian-hurd-20171101.img
2048*512 = 1048576
su
/sbin/losetup -o 1048576 /dev/loop0 debian-hurd-20171101.img
e2fsck -y /dev/loop0
losetup -d /dev/loop0
exit
After that I think your image will boot fine.
Joshua Branson
2018-04-08 18:59:22 UTC
Permalink
Maybe try downloading a new qemu image? Sometimes this happens to me,
and I just give up and try using a new qemu image...
Post by Charlie Sale
1. $ fdisk -l debian-hurd*.img
Device Boot Start End Sectors Size Id Type
debian-hurd-20171101.img1 2048 1953791 1951744 953M 82 Linux swap / Solaris
debian-hurd-20171101.img2 1955838 10239999 8284162 4G 5 Extended
debian-hurd-20171101.img5 1955840 10239999 8284160 4G 83 Linux
2. # losetup -o 1955838 /dev/loop0 debian-hurd-20171101.img
Which worked fine.
3. e2fsck -y /dev/loop0
e2fsck 1.43.5 (04-Aug-2017)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/loop0
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
I tried doing both of the suggested remedy commands, but neither worked. They just
returned the same output.
Because these commands failed, nothing changed in booting my Debian.
Thanks for trying to help. Any more suggestions?
Thanks!
Charlie
Post by Charlie Sale
The other major issues is that fsck fails during the boot. I don't
know if this is as important as the console failure, but I thought I
would point it out.
Hi Charlie,
NOTE: Check the offset for your / partition
fdisk -l debian-hurd-20171101.img
2048*512 = 1048576
su
/sbin/losetup -o 1048576 /dev/loop0 debian-hurd-20171101.img
e2fsck -y /dev/loop0
losetup -d /dev/loop0
exit
After that I think your image will boot fine.
Svante Signell
2018-04-08 19:08:36 UTC
Permalink
Post by Charlie Sale
I tried doing that, but I got some errors during the process. Here is
1. $ fdisk -l debian-hurd*.img
Device                    Boot   Start      End Sectors  Size Id
Type 
debian-hurd-20171101.img1         2048  1953791 1951744  953M 82
Linux swap / Solaris 
debian-hurd-20171101.img2      1955838 10239999 8284162    4G  5
Extended 
debian-hurd-20171101.img5      1955840 10239999 8284160    4G 83
Linux
2. # losetup -o 1955838 /dev/loop0 debian-hurd-20171101.img
Which worked fine.
I think you need to use -o 1955838*512 as offset. However, take a look
at kpartx. With that tool you get better control. And you really need
to find out where / is mounted. Why do you have Solaris and Linux
partitions in that image?
Samuel Thibault
2018-04-11 22:40:07 UTC
Permalink
Post by Svante Signell
Post by Charlie Sale
Device                    Boot   Start      End Sectors  Size Id
debian-hurd-20171101.img2      1955838 10239999 8284162    4G  5
Extended 
debian-hurd-20171101.img5      1955840 10239999 8284160    4G 83
Linux
2. # losetup -o 1955838 /dev/loop0 debian-hurd-20171101.img
Which worked fine.
I think you need to use -o 1955838*512 as offset.
Actually, rather 1955840*512 since it's the ext2fs volume you want to
mount, not the extended partition.

Samuel

Samuel Thibault
2018-04-10 21:43:43 UTC
Permalink
Hello,
Post by Charlie Sale
I am trying to run Debian/Hurd on qemu, specifically qemu-system-i386.
Which version of qemu is this exactly?

Samuel
Charlie Sale
2018-04-10 22:18:37 UTC
Permalink
Alright. A quick update:

So I created a disk from scratch. I use that, and the console works fine. I
can type on it and everything. Yay.

However, I cannot login. It says that the root password is empty. So ill do
something like this:

User: root
Password: \n
login: Invalid password

Or I'll use a space
User: root
Password: _\n
login: Invalid Password

Or, I'll type in "empty"
User: root
Password: empty\n
login Invalid Password

And also, to answer your question, I am running qemu version 2.10.1

Any ideas on how to fix? Thanks!

Charlie
Post by Samuel Thibault
Hello,
Post by Charlie Sale
I am trying to run Debian/Hurd on qemu, specifically qemu-system-i386.
Which version of qemu is this exactly?
Samuel
Samuel Thibault
2018-04-10 22:30:47 UTC
Permalink
So I created a disk from scratch. I use that, and the console works fine. I can
type on it and everything. Yay.
However, I cannot login. It says that the root password is empty.
How did you create the disk exactly?

Samuel
Charlie Sale
2018-04-10 22:33:47 UTC
Permalink
I followed the directions from the qemu images sections. Basically, I
created a new image with qemu-img. Then, I ran qemu with that as the disk,
and I used a net installer in the CD-ROM. I then followed installation
instructions. I installed onto the right disk.

Does this answer your question.

Charlie
Post by Charlie Sale
So I created a disk from scratch. I use that, and the console works
fine. I can
Post by Charlie Sale
type on it and everything. Yay.
However, I cannot login. It says that the root password is empty.
How did you create the disk exactly?
Samuel
Samuel Thibault
2018-04-10 22:40:08 UTC
Permalink
I followed the directions from the qemu images sections. Basically, I created a
new image with qemu-img. Then, I ran qemu with that as the disk, and I used a
net installer in the CD-ROM. I then followed installation instructions. I
installed onto the right disk.
Ok, but then you did type a root password during the installation
process, didn't you?
(if not, then as described on the question screen root won't be allowed
to log in directly, only the normal user will, and sudo is needed to
become root)

Samuel
Joshua Branson
2018-04-11 11:49:45 UTC
Permalink
Maybe I'll being really silly here, but isn't root password empty mean
you just press RET?

User: root
Password: <RET>
So I created a disk from scratch. I use that, and the console works fine. I can type on it and everything. Yay.
User: root
Password: \n
login: Invalid password
Or I'll use a space
User: root
Password: _\n
login: Invalid Password
Or, I'll type in "empty"
User: root
Password: empty\n
login Invalid Password
And also, to answer your question, I am running qemu version 2.10.1
Any ideas on how to fix? Thanks!
Charlie
Hello,
Post by Charlie Sale
I am trying to run Debian/Hurd on qemu, specifically qemu-system-i386.
Which version of qemu is this exactly?
Samuel
Samuel Thibault
2018-04-11 11:57:33 UTC
Permalink
Post by Joshua Branson
Maybe I'll being really silly here, but isn't root password empty mean
you just press RET?
Actually no, it happens that an empty password leads to no password
prompt.

Nothing silly, just something to know :)

Samuel
Joshua Branson
2018-04-11 12:08:08 UTC
Permalink
Oh, good to know! haha!
Loading...