Reached target Rescue Mode - solved (partially)

Felix Miata mrmazda at earthlink.net
Mon Jul 2 14:56:08 UTC 2012


On 2012/07/02 08:27 (GMT+0100) Frank Murphy composed:

> Felix Miata wrote:

>>  It finally occurred to me to try mount, and / was not mounted. Fixed
>>  typo made it work. I don't understand how the same typo could have
>>  happened so many times, unless they weren't all the same. :-p

> The one thing you didn't answer in the "solved" is how you accomplished
> the mount /.

Actually it's very complicated by needing to work around 
https://bugzilla.redhat.com/show_bug.cgi?id=808970. The whole ordeal was 
precipitated by the need to see if 
https://bugs.freedesktop.org/show_bug.cgi?id=51640 needed to be filed (which 
it was), after which I replied to thread with problem "solved". Actually it's 
only partly solved.

The first tries were to sda13, which was then rsync'd to sda12 and fstab & 
grub cmdline modified accordingly for use. After those failed the first tries 
I tried using sda13 without the move to sda12, but still was getting Rescue 
Mode. It was only after switching to installing F17 instead of Rawhide, and 
fixing the cmdline typo, that I was able to reach multiuser and do things 
instead of needing to chroot in from a different installation to get anything 
accomplished. I then upgraded F17 to Rawhide in order to reach the initial 
goal (bug 51640).

So now the installation indirectly (rsync sda13 to sda12) from Rawhide still 
has the problem:

...
Freeing unused kernel memory: 2048k freed
Write protecting the kernel text: 6244k
Write protecting the kernel read-only data: 2312k
MX-protecting the kernel data: 6044k
systemd[1]: system 185 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX 
+IMA +SYSVINIT +LIBCRYPTSETUP; fedora)
Welcome to Fedora 18 (Rawhide) dracut-028-1.fc18 (Initramfs)!
systemd[1]: No hostname configured.
systemd[1]: Set hostname to <localhost>.
systemd[1]: Initializing machine ID from random generator.
systemd[1]: Failed to load default target: No such file or directory
systemd[1]: Trying to load rescue target...
Starting Rescue Shell
Started Rescue Shell
Listening on udev Kernel Socket.
Listening on udev Control Socket.
Listening on Journal Socket.
Starting Setup Virtual Console...
Starting udev Kernel Device Manager...
Starting Journal Service...
udevd[57]: starting version 185
Started Journal Service.
setfont (56) used greates stack depth: 6216 bytes left
systemd-journald[60]: Fixed max_use=99.8M max_size=12.4M min_size=64.0K 
keep_free=49.9M
systemd-journald[60]: Vacuuming...
systemd-journald[60]: Flushing /proc/kmsg...
Starting udev Coldplug all devices...
Reached target Swap.
Reached target Local File Systems.
Started udev Kernel Device Manager.
Started Setup Virtual Console.
Reached target System Initialization.
Reached target Rescue Mode.
systemd-cgroups (63) used greatest stack depth: 6200 bytes left
systemd-cgroups (86) used greatest stack depth: 5988 bytes left
ata_id (89) used greatest stack depth: 5800 bytes left
systemd-udevd (78) used greatest stack depth: 5752 bytes left ([21.3.....])
kworker/u:0 (5) used greatest stack depth: 5708 bytes left ([307.3.....])

# cat /proc/cmdline
root=/dev/sda12 rd.luks=0 rd.md=0 rd.dm=0 LANG=en_US.UTF-8 
SYSFONT=latarcyrheb-sun16 KEYTABLE=us noresume selinux=0 splash=verbose 
noipv6 vga=794 video=1152x864 at 60 3

# mount | grep sda

# mount -t ext3 -o noatime /dev/sda12 /
EXT4-fs (sda12): mounting ext3 file system using the ext4 subsystem
EXT4-fs (sda12): mounted filesystem with ordered data mode. Opts: (null)

# mount | grep sda
/dev/sda12 on / type ext3 (rw,noatime,data=ordered)

# systemctl isolate multi-user.target
Failed to issue method call: Operation refused, unit may not be isolated.

# ifconfig -a
sh: ifconfig: command not found

# ifup
sh: ifup: command not found

# systemctl
UNIT	LOAD	ACTIVE	SUB	JOB DESCRIPTION
-.mount	loaded	active	mounted	/
systemd-ask-password-console.path	loaded active waiting	Dispatch Password 
Requests to Consold Directory Watch
rescue.service	loaded	active	running	Rescue Shell
systemd-journald.service	loaded	active	running	Journal Service
systemd-udev-trigger.service	loaded	active	exited	udev Coldplug all Devices
systemd-udev.service	loaded	active	running	udev Kernel Device Manager
systemd-vconsole-setup.service	loaded	active	exited	Setup Virtual Console
systemd-journald.socket	loaded	active	running	Journal Socket
systemd-udev-control.socket	loaded	active	listening	udev Control Socket
systemd-udev-kernel.socket	loaded	active	running	udev Kernel Socket
local-fs.target	loaded	active	active	Local File Systems
rescue.target	loaded	active	active	Rescue Mode
swap.target	loaded	active	active	Swap
sysinit.target	loaded	active	active	System Initialization
LOAD	= Reflects whether hte unit definition was properly loaded
ACTIVE	= The high-level unit activation state, i.e. generalization of SUB.
SUB	= The low-level unit activation state, valudes depen on unit type.
JOB	= Pending job for the unit
14 units listed. Pass --all to see inactive units too.

# systemctl --all
...
plymouth-start.service	error	inactive	dead	plymouth-start.service
...
syslog.service	error	inactive	dead	syslog.service
...
systemd-readahead-collect.service	error	inactive	dead 
systemd-readahead-collect.service
systemd-readahead-replay.service	error inactive dead 
systemd-readahead-replay.service
...
35 units listed

# systemctl start network.service
Failed to issue method call: Unit network.service failed to load: No such 
file or directory. See system logs and 'systemctl status netowrk.service' for 
details

# systemctl status network.service
network.service
	Loaded: error (Reason: No such file or directory)
	Active: inactive (dead)

# ls -l /etc/systemd/system
ls: cannot access /etc/systemd/system: No such file or directory

# ls -l /root
total 0

What to do?
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

  Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/


More information about the test mailing list