Quote:
Originally Posted by alberg
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):
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
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