Author Topic: Killed my install, will not boot  (Read 1275 times)

Offline steveblezy

  • Full Member
  • ***
  • Posts: 189
Killed my install, will not boot
« on: September 21, 2011, 07:54:42 PM »
I tried it install a set of drivers for a 3d mouse. no luck in the process. From there, the computer would not turn off. After 3 hours, I had to resort to a hard poweroff and will not reboot. I get the following message

inittab[2]: duplicate id field "3d"

inittab[3]: duplicate id field "3d"

inittab[4]: duplicate id field "3d"

runlevel" _

At the runlevel, I cannot enter anything on the keyboard (any attempt is like hitting the enterkey).

Any ideas how to fix this or do I just re-install again? I have access to a live cd to explore the directories.

Sorry if I do not have the exact console output as I am going by memory as I am switching between operating systems to type this.

Steve

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12655
Re: Killed my install, will not boot
« Reply #1 on: September 21, 2011, 07:56:35 PM »
You can try to boot the LiveCD then copy the /etc/inittab file to the /etc folder on the hard drive partition that you have Linux installed on.


Thanks to everyone who donates. You keep the servers running.
Follow me on Twitter for the latest development info.

Offline steveblezy

  • Full Member
  • ***
  • Posts: 189
Re: Killed my install, will not boot
« Reply #2 on: September 22, 2011, 04:59:15 AM »
Tried that last night. Copyed the inittab tab from the live cd to the HD. It booted 'further' but halted with more errors. Will have to take a picture and post the results. I was hoping that something like that would work. The contents of the inittab that I copied was.

#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by PCLinuxOS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

# System initialization.
# si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly. 
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

# Single user mode
~~:S:wait:/bin/sh

Will post with the results on the console when it comes to the problem.

Steve

Offline steveblezy

  • Full Member
  • ***
  • Posts: 189
Re: Killed my install, will not boot
« Reply #3 on: September 22, 2011, 05:29:25 AM »
ok, the boot process ended when I was asked for a loggin and password. The error in the console was

no directory /home/steve
gpg agent[911]:cant create directory '/home/steve/.gmpg (it think, fuzzy picture)':no such file or directory
gpg agent[911]:cant create directory 'tmp/gpg-Eh0BD':
Read only file system-bash-4.18

looking onto the partition that has my home, it is still there will all of the data.

Looking on the root partition, the Home folder is empty.

Steve

Offline and then..

  • Sr. Member
  • ****
  • Posts: 463
Re: Killed my install, will not boot
« Reply #4 on: September 22, 2011, 06:37:46 AM »
steveblezy ,
You may do well to fsck your HDD partitions from a liveCD session first....
then,,, after you boot from HDD, can you logon to a root user session?
Cages
« Last Edit: September 22, 2011, 06:41:22 AM by darkages »

Offline steveblezy

  • Full Member
  • ***
  • Posts: 189
Re: Killed my install, will not boot
« Reply #5 on: September 22, 2011, 04:27:40 PM »
Sounds like a plan. I just got home. Do you do this through the terminal?

Steve

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Killed my install, will not boot
« Reply #6 on: September 22, 2011, 07:06:10 PM »
Sounds like a plan. I just got home. Do you do this through the terminal?

Steve

Yes. As root;

[root@localhost ~]# fsck -fy /dev/<whatever>                         <Enter>

Replace <whatever> with the actual partition designation for the partition you wish to check.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline steveblezy

  • Full Member
  • ***
  • Posts: 189
Re: Killed my install, will not boot
« Reply #7 on: September 23, 2011, 04:25:50 PM »
ok, here is what I got from the fsck on the root partition

[guest@localhost guest]$ su
Password:
[root@localhost ~]# fsck -fy /dev/sda5
fsck from util-linux-ng 2.18
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda5: 243139/2097024 files (3.7% non-contiguous), 2027148/8445854 blocks
[root@localhost ~]#

So, there is a problem there. Now what do I do?

I will check my home partition next

Steve

Offline steveblezy

  • Full Member
  • ***
  • Posts: 189
Re: Killed my install, will not boot
« Reply #8 on: September 23, 2011, 04:31:41 PM »
ok, here is the 'home' directory

[root@localhost ~]#  fsck -fy /dev/sda7
fsck from util-linux-ng 2.18
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda7: 168809/10764288 files (9.9% non-contiguous), 14341471/43042304 blocks
[root@localhost ~]#

Looks like the hard poweroff did some damage

Steve

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Killed my install, will not boot
« Reply #9 on: September 23, 2011, 05:00:07 PM »
ok, here is the 'home' directory

[root@localhost ~]#  fsck -fy /dev/sda7
fsck from util-linux-ng 2.18
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda7: 168809/10764288 files (9.9% non-contiguous), 14341471/43042304 blocks
[root@localhost ~]#

Looks like the hard poweroff did some damage

Steve

Why would you say that? Some of your files are a bit fragmented but that's not an error, and not anywhere near as detrimental to a Linux filesystem as it is to a Windows filesystem.

Try to boot to the installed system again, and post your results.

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline steveblezy

  • Full Member
  • ***
  • Posts: 189
Re: Killed my install, will not boot
« Reply #10 on: September 23, 2011, 05:27:54 PM »
Tried to boot, same result

no directory /home/steve
gpg agent[911]:cant create directory '/home/steve/.gmpg (it think, fuzzy picture)':no such file or directory
gpg agent[911]:cant create directory 'tmp/gpg-Eh0BD':
Read only file system-bash-4.18

Steve

Offline steveblezy

  • Full Member
  • ***
  • Posts: 189
Re: Killed my install, will not boot
« Reply #11 on: September 23, 2011, 05:36:51 PM »
I tried booting into the root account and got a similar message. Can't remember what it said exactly as I am switching between opererating systems.

Steve

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Killed my install, will not boot
« Reply #12 on: September 23, 2011, 05:44:13 PM »
Tried to boot, same result

no directory /home/steve
gpg agent[911]:cant create directory '/home/steve/.gmpg (it think, fuzzy picture)':no such file or directory
gpg agent[911]:cant create directory 'tmp/gpg-Eh0BD':
Read only file system-bash-4.18

Steve

If you can see your steve directory, and all its contents, from the liveCD, and not on the booted installed system, it would indicate that the partition is not mounting as it should on the /home directory.

Log in as root, open a terminal and enter the command;

[root@localhost ~]# mount                       <Enter>

This will give a list of all the currently mounted partitions, and where they are mounted.

It will look something like this;

[root@fatman ~]# mount
/dev/sda9 on / type ext4 (rw,noatime)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/sda13 on /share1 type ext4 (rw,nosuid,nodev,noatime)
/dev/sda12 on /movies2 type ext3 (rw,nosuid,nodev,noatime)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda5 on /home/polack/Documents type ext3 (rw,nosuid,nodev,noatime,user=polack)
/dev/sdb5 on /home/polack/Documents2 type ext3 (rw,nosuid,nodev,noatime,user=polack)
/dev/sdb9 on /movies type ext3 (rw,nosuid,nodev,noatime)
/dev/sdb6 on /share9 type ext3 (rw,nosuid,nodev,noatime)
/dev/fd0 on /mnt/floppy type ext2 (rw,nosuid,nodev,user=polack)
/dev/sda8 on /mnt/here type ext4 (rw)
/dev/sdb11 on /zstorage00 type ext3 (rw,nosuid,nodev,noatime,user=polack)
/dev/sdb10 on /zbackup type ext3 (rw,nosuid,nodev,noatime,user=polack)

Post your results.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline steveblezy

  • Full Member
  • ***
  • Posts: 189
Re: Killed my install, will not boot
« Reply #13 on: September 23, 2011, 06:08:23 PM »
ok. Lets see what I have.

I logged in as root. Opened terminal. Here is the result

[root@localhost root]# mount
/dev/root on / type rootfs (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
[root@localhost root]#


Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Killed my install, will not boot
« Reply #14 on: September 23, 2011, 06:25:59 PM »
ok. Lets see what I have.

I logged in as root. Opened terminal. Here is the result

[root@localhost root]# mount
/dev/root on / type rootfs (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
[root@localhost root]#



There is no entry for a partition mounted on /home.

You need to check your /etc/fstab against the output of the blkid command. Odds are the UUID of the partition is different in /etc/fstab than what shows with blkid.

Also, what's mounted on / should be a proper partition designation, not /dev/root. That designation is for use by the liveCD only.

Post the contents of your installed /etc/fstab, as well as the blkid results.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...