You are not logged in.

#1 2011-05-01 01:19:02

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

inittab Depreciated? Edits Have No Effect [SOLVED]

Trying to reboot into a shell.

I used to be able to edit  /etc/inittab  to log into a shell.

I edited inittab  settings to enter run level 3, inserted  # appending line,  x:5:respawn:/usr/sbin/gdm -nodaemon

Edited menu.lst to add the option to log into r3

Still boots into gdm and gnome!

#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)    Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

## Only one of the following two lines can be uncommented!
# Boot to console
id:3:initdefault:
# Boot to X11
# id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux

# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 9600 ttyS0 linux

# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 38400 hvc0 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1

# End of file
# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst

# DEVICE NAME CONVERSIONS 
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,1)
#  /dev/sda3       (hd0,2)
#

#  FRAMEBUFFER RESOLUTION SETTINGS
#     +-------------------------------------------------+
#          | 640x480    800x600    1024x768   1280x1024
#      ----+--------------------------------------------
#      256 | 0x301=769  0x303=771  0x305=773   0x307=775
#      32K | 0x310=784  0x313=787  0x316=790   0x319=793
#      64K | 0x311=785  0x314=788  0x317=791   0x31A=794
#      16M | 0x312=786  0x315=789  0x318=792   0x31B=795
#     +-------------------------------------------------+
#  for more details and different resolutions see
#  http://wiki.archlinux.org/index.php/GRUB#Framebuffer_Resolution 

# general configuration:
timeout   10
default   1
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

# (0) Arch Linux 
title  Arch Linux New
root   (hd0,5)
kernel /boot/vmlinuz26 root=/dev/sda6 ro
initrd /boot/kernel26.img

# (1) Arch Linux 
title  Arch Linux Old
root   (hd0,9)
kernel /vmlinuz26 root=/dev/sda11 ro
initrd /kernel26.img

# (0) Arch Linux 
title  Arch Linux New Boot Into Shell
root   (hd0,5)
kernel /boot/vmlinuz26 root=/dev/sda6 r3
initrd /boot/kernel26.img

# (1) Arch Linux 
title  Arch Linux Old Boot Into Shell
root   (hd0,9)
kernel /vmlinuz26 root=/dev/sda11 r3
initrd /kernel26.img

# (2) Arch Linux 
title  Arch Linux Fallback New
root   (hd0,5)
kernel /boot/vmlinuz26 root=/dev/sda6 ro
initrd /boot/kernel26-fallback.img

# (3) Arch Linux 
title  Arch Linux Fallback Old
root   (hd0,9)
kernel /vmlinuz26 root=/dev/sda11 ro
initrd /kernel26-fallback.img

Last edited by jeff story (2011-05-01 04:22:59)


Check out my website for info on the Arch Linux Installer

Offline

#2 2011-05-01 01:42:31

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: inittab Depreciated? Edits Have No Effect [SOLVED]

Do you have gdm in your DAEMONS line in rc.conf? That may be a factor.

Offline

#3 2011-05-01 01:56:54

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: inittab Depreciated? Edits Have No Effect [SOLVED]

kernel /vmlinuz26 root=/dev/sda11

Holy fdisk Batman !!  How many partitions have you?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2011-05-01 04:21:59

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

Re: inittab Depreciated? Edits Have No Effect [SOLVED]

@ skottish

"gdm in your DAEMONS line in rc.con?"   Yes!  Thanks, I  didn't think of that. Problem solved.

It was only in my newer install though. I honestly don't recall if I put it there, or it's by default install since my older install?

Using grub is gonna be my more convenient way to log into a shell from now on!



@ ewaller

My HDD partitions have been modified a few times, and # 2-4 are currently not present...
I have 2 working Arch installs in this HDD. One extended, one swap plus first Arch install has 3 partitions, second install has 4 plus a partition for older package storage.
I've had more cluttered multi distro + multi windows HDD's in the past though. Grub (and me) started getting kinda confused when it had around 15+ partitions....

[jeff@Arch2009p2 ~]$ sudo fdisk -l
Password: 

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000383e7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63  1465144064   732572001    5  Extended
/dev/sda5             126     4096574     2048224+  82  Linux swap / Solaris
/dev/sda6         4096638    47102579    21502971   83  Linux
/dev/sda7        47102643    78847019    15872188+  83  Linux
/dev/sda8        78847083   108535139    14844028+  83  Linux
/dev/sda9       108535203   358586864   125025831   83  Linux
/dev/sda10      358586928   358651124       32098+  83  Linux
/dev/sda11      358651188   379567754    10458283+  83  Linux
/dev/sda12      379567818   994005809   307218996   83  Linux
/dev/sda13      994005873  1465144064   235569096   83  Linux

Check out my website for info on the Arch Linux Installer

Offline

Board footer

Powered by FluxBB