LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 07-12-2016, 04:13 AM   #1
alberg
Member
 
Registered: Jun 2016
Distribution: Arch, Slackware
Posts: 47

Rep: Reputation: Disabled
Slackware doesn't boot after upgrade to 14.2


After the clean new installation of 14.2, the boot sequence begins OK, successfully finds USB devices, including the USB disk with the root partition, and aborts with the message:

Quote:
mount: can't find /mnt in /etc/fstab
ERROR: no /sbin/init found on rootdev (or not mounted)
After that, in the shell I run 'mount' (which produces some reports) and 'exit':

Quote:
/# mount /dev/sdg3 /mnt
EXT4-fs (sdg3): couldn't mount as ext3 due to feature incompatibilities.
EXT4-fs (sdg3): mounted filesystem with ordered data mode. Opts (null).
/# exit
And boot continues and finishes with the login prompt normally.

The initrd was generated via /usr/share/mkinitrd/mkinitrd_command_generator.sh, with the command:

Quote:
mkinitrd -c -k 4.4.14 -f ext4 -r /dev/sdg3 -m usb-storage:ehci-hcd:ehci-pci:xhci-pcihci-pci:xhci-hcd:uhci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:jbd2:mbcache:ext4 -u -o /boot/initrd.gz
I tried to change the parameter "-r /dev/sdg3" to "-r UUID=111222333..." with the UUID of the root partition, but it produced the same error.

Slackware 14.1 from the very same partition and with initrd generated with the same parameters booted OK.

What could be the cause of this issue? Does that message during mount about "feature incompatibilities" tells something about the problem?
 
Old 07-12-2016, 05:30 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,070

Rep: Reputation: Disabled
Quote:
Originally Posted by alberg View Post
What could be the cause of this issue?
Something has changed, I don't really know what, but see this thread.

Quote:
Does that message during mount about "feature incompatibilities" tells something about the problem?
No, this is just the ext file system driver reporting that it tried several variants (ext2, ext3 or ext4) until it found the good one. This is harmless.

Last edited by Didier Spaier; 07-12-2016 at 05:32 AM.
 
Old 07-12-2016, 07:19 AM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Can you post the contents of your /etc/fstab and /etc/lilo.conf?
 
Old 07-12-2016, 08:01 AM   #4
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Quote:
Originally Posted by alberg View Post
Code:
mount: can't find /mnt in /etc/fstab
/boot/initrd-tree/init near line 302 has:
Code:
mount -o ro -t $ROOTFS $ROOTDEV /mnt
So, when $ROOTDEV is empty the command is (options removed):
Code:
mount /mnt
In that form mount tries to find /mnt in /etc/fstab and reports about error.

/etc/initrd-tree/init sets ROOTDEV here:
Code:
74:ROOTDEV=$(cat /rootdev)
--
 95 # Parse command line
 96 for ARG in $(cat /proc/cmdline); do
 97   case $ARG in
116-    root=/dev/*)
117:      ROOTDEV=$(echo $ARG | cut -f2 -d=)
118-    ;;
119-    root=LABEL=*)
120:      ROOTDEV=$(echo $ARG | cut -f2- -d=)
121-    ;;
122-    root=UUID=*)
123:      ROOTDEV=$(echo $ARG | cut -f2- -d=)
124-    ;;
--
226-        /sbin/cryptsetup ${LUKSKEY} luksOpen ${LUKSDEV} ${CRYPTDEV} </dev/tty0 >/dev/tty0 2>&1
227:        if [ "$ROOTDEV" = "$LUKSDEV" -o "$ROOTDEV" = "$CRYPTDEV" ] ; then
228:          ROOTDEV="/dev/mapper/$CRYPTDEV"
229-        fi
--
257-        /sbin/cryptsetup ${LUKSKEY} luksOpen ${LUKSDEV} ${CRYPTDEV} </dev/tty0 >/dev/tty0 2>&1
258:        if [ "$ROOTDEV" = "$LUKSDEV" -o "$ROOTDEV" = "$CRYPTDEV" ] ; then
259:          ROOTDEV="/dev/mapper/$CRYPTDEV"
260-        fi
--
273-  # Find root device if a label or UUID was given:
274:  if echo $ROOTDEV | grep -q "LABEL=" || \
275:     echo $ROOTDEV | grep -q "UUID=" ; then
276:    ROOTDEV=$(findfs $ROOTDEV)
277-  fi
--
302:  mount -o ro -t $ROOTFS $ROOTDEV /mnt
Quote:
Originally Posted by alberg View Post
Code:
/# mount /dev/sdg3 /mnt
/# exit
At this point is intresting:
Code:
/# cat /proc/cmdline
/# cat /rootdev
/# blkid
/# findfs UUID=111222333...
External USB may needs rootdelay= option if USB disk doesn't initialized at time of
ROOTDEV=$(findfs $ROOTDEV)
and already initialized when "/#" is displayed.


UPD: Do you use mkinitrd from Slackware, not from Arch?
The very similar thread (in Russian): http://www.cyberforum.ru/slackware-z...ad1770628.html

Last edited by bormant; 07-12-2016 at 08:33 AM.
 
1 members found this post helpful.
Old 07-12-2016, 11:19 AM   #5
alberg
Member
 
Registered: Jun 2016
Distribution: Arch, Slackware
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bormant View Post

External USB may needs rootdelay= option if USB disk doesn't initialized at time of
ROOTDEV=$(findfs $ROOTDEV)
and already initialized when "/#" is displayed.
Adding "-w 5" seems solved the problem. (I guess this quirk of USB drives is mentioned in the installation guide, but I simply missed it.) Many thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
svgalib doesn't work after kernel upgrade (2.4.33.3 to 2.6.17.13, slackware 11)) ErV Slackware 4 03-21-2007 03:31 PM
Suse 10.1 doesn't boot after BIOS upgrade JPH593 SUSE / openSUSE 2 03-21-2007 03:03 PM
Slackware 10.2 doesn't boot anymore bmxer_br Slackware 5 06-21-2006 01:48 AM
BIOS upgrade, now Windows doesn't boot. Jetway 867AS APB_4 Linux - Hardware 3 02-10-2006 10:40 AM
Slackware boot disc doesn't boot Motorspin Linux - Newbie 7 08-19-2003 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration