1 (edited by mikeZq 2008-02-04 19:21:06)

Topic: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

0.3.4-11 Live CD:  2 issues: Init 34 & Eject?

I thought I'd post this to see if anyone also has these problems:

(1)  No “eject & reboot"  option – problems resulting
The new -11 has no “eject and reboot"  option; is that correct?
When I try the option to “Shutdown,"  it freezes at:
INIT: Sending processes to KILL signal!
etc etc
Remounting remaining filesystem read only.

--and that's it! -- I have to do a hard re-set to reboot the PC with the CD in the tray--
(I have concluded to use -10 in the future, but wonder why -11 went “backwards"  in terms of improvements.)


(2)  Damage to Kubuntu 7.10?
Perhaps related to (1) above.
When I finally got the Live CD removed and then re-booted, I was unable to boot into my main Kubuntu 7.10 OS.   I got:
INIT 34 Can't open /scripts/functions
Kernel Panic—not syncing—Attempted to Kill INIT!

--and it froze right there--

Is there an easy way to fix that kernel panic; or perhaps just re-install Kubuntu?
Didn't really hit anything on google per se, and I could not locate /scripts/functions.

(BTW, I had no problems with the previous -10 version; in fact, I thought it was great and did all sorts of work with it.  I'm not any sort of Linux expert; just a normal Kubuntu user & GRUB how-to writer of sorts)

2

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

I remember that a similar issue (freeze on shutdown) occured in an older version and was solved later.

About Kubuntu boot up:
What operations did you do before closing gparted?

Sometimes, after such problems, the solution is to unplug the system from the power cable and peripherals, wait a few minutes and retry.

*** It is highly recommended to backup any important files before doing resize/move operations. ***

3

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

That's just it -- I wasn't doing any partition work at all.  I was just exploring the features – opening and looking at vim, testdisk, partimage, the terminal (fdisk -lu, grub), windows.txt – just observing – no partition or disk work at all.

There was no reboot & eject, so I chose shutdown.
It froze (at the INIT message I posted above).
I did a hard re-set of the PC, so it re-booted.
I pressed F2 to enter BIOS setup (Intel D915GAVL).
Then I removed the CD at that point (I didn't see how else to do it, though I could enter GRUB and do halt, but then would have to manually eject the CD with paper clip (???)).
Then continued the re-boot.
Selected from GRUB my usual, main Kubuntu 7.10.
Then got that error I posted (“Init 34: can't open /scripts/functions

4

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

Sounds like something went wrong with the initrd.img-* of your kernel.  Try booting with a live-CD, chroot into your Kubuntu partition, and run: update-initramfs -u -v (use sudo if you aren't root).

Also, check your disk with smartmontools to make sure it's not dying...

5

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

class413:
The complete power down did not do the trick—but thanks for the idea.

The exact things I did (during the GParted session) were as follows:
copied the windows.txt file to a flash drive using cp at the terminal; fdisk -lu; mount sdb2 (where this Kubuntu 7.10 is located) and some basic cd and ls (no other “real"  work done); grub, geometry (hd<Tab completion>, find /boot/grub/stage1, cat,...  That's it!  Nothing invasive, nothing changed.

JanC:  I will try what you say next, today.

Many thanks for the feedback.  I realize it sounds like I messed with something internal to sdb2 (Kubuntu 7.10), but I didn't.  I have seen a similar situation using persistent Live K/Ubuntu flash drives, and it seems to occur when the “eject"  is not clean; where things are not properly finished or unmounted before ejecting the device.  Of course, that can mess up whatever is on the removable media, but I saw a couple instances where it also messed up the booting into a hard disk installed OS, as I have here.

Strange that there is no “eject & reboot"  option on this -11 partition editor, isn't it?

Thanks, again, and I'll report back.

6

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

Unfortunately, no-go.  (The update-initramfs looks like a handy tool to have, and I've filed it for future use  smile  ).
Also, hard drive is OK.

I still get the same message:
/init:  34 Can't open /scripts/functions
Kernel Panic—not syncing—Attempted to Kill INIT!

I can re-install, it's not difficult, but I'm curious about such things for future use.
Interestingly, I recently dd'd my "experimental" Kubuntu root partition for backup, but didn't manage yet to dd my working root for backup (it was on the to-do list)!  And so it goes, huh?  (I recently wrote a how-to on using dd to backup root to your /home.  Do as I say, not as I do ... !).

I'll think on this for another day or so, then re-install (AND dd that root!).

Many thanks thus far.

7

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

I just used the livecd 0.3.4-11 in allmost all boot configurations. You are right, there is no eject option in the shutdown menu. I think the emergency eject action wouldn't necessary, as we could eject the CD during reboot.

*** It is highly recommended to backup any important files before doing resize/move operations. ***

8

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

Solved (?) I hope

Going on the spirit of your suggestion JanC, and having nothing to lose (my /home is always on a separate partition), I did the following:

(with root privileges)

Open /boot of sdb2 (where the broken Kubuntu 7.10 is located).
Rename initrd-img-2.6.22-14-generic.bak as  initrd-img-2.6.22-14-generic.
Reboot twice to test it.  So far, it works fine.
Then I copied that same initrd file onto Desktop, renamed it initrd-img-2.6.22-14-generic.bak to make it my new backup copy, and copied the new .bak file back into /boot.
Not sure how Linux experts would feel about this sort of messing around, but it seems to work.

I'll report back if there's more to this issue.
A google suggests that such init/ issues with /scripts/functions comes up in various ways.

Many thanks, again.

9

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

class413, for some reason, I didn't notice your post when I posted the solution.
Yes, I agree, normally you can re-boot, enter BIOS setup, remove the CD, and continue to boot.  But that time, something went wrong when I tried that.  As I say, similar issues have come up in another setting--ejecting Live flash drives.  And I did have the hang when I tried to use Shutdown from the GParted menu.  Have you tried just plain Shutdown on -11?

10

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

It seems like something is (was) missing from your "initrd-img" (which is in fact an initramfs image and not an initrd image wink ).

If it wasn't fixed bij de update-initramfs, that sounds like something doesn't get copied into the image, and the next kernel-upgrade (which runs update-initramfs) might break things again.

Did you get any warnings or errors during 'update-initramfs'?  Did you remove any packages that are a dependency of one of the ubuntu-* meta-packages or edit related configuration files?  You also might want to re-install initramfs packages and similar in case that went wrong somehow...

11

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

BTW: the official GParted Live-CD isn't maintained anymore, so don't expect any updates for it anymore (see the message announcing that elsewhere in this forum and on the GParted site).

12

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

“Did you get any warnings or errors during 'update-initramfs'?  Did you remove any packages that are a dependency of one of the ubuntu-* meta-packages or edit related configuration files?  You also might want to re-install initramfs packages and similar in case that went wrong somehow...

13

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

JanC:

Just an fyi:  Everything is working fine.  I ran your command again, for the heck of it: 
From a known good Kubuntu installation on sdb7, I ran your command on the partition in question sdb2
(after cd /media/sdb2):

mike@mike-desktop:/media/sdb2$ sudo update-initramfs -u -v
[sudo] password for mike:
Keeping /boot/initrd.img-2.6.22-14-generic.dpkg-bak
update-initramfs: Generating /boot/initrd.img-2.6.22-14-generic
-- adding lots of modules etc etc many many line of output --
-- many lines of output, adding modules, copying, etc. --
-- at the end with:
--  Calling hook console_tools --
Calling hook console_setup
Building cpio /boot/initrd.img-2.6.22-14-generic initramfs
Removing current backup /boot/initrd.img-2.6.22-14-generic.dpkg-bak
mike@mike-desktop:/media/sdb2$

That's it; no weird messages.
Re-boot to test it.  No problems.

I don't know what my point is, but somehow felt it wouldn't hurt to run that again.


Thinking back to the original problem, I'm wondering if anyone else here has had problems using the "Shutdown" option on -11.  Whatever happened here, it seems to be caused by the freezing when doing that, then the hard re-boot, (then I entered BIOS setup and removed the Live CD).

Just an fyi.

Thanks, again.

14

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

GParted itself will still be available and actual development of it is going to start again.  Just yesterday there was a release of GParted that includes several bugfixes...

The Ubuntu live-CD also contains GParted, as well as many other live-CDs do (e.g. SysRecCD).  It's probably better to let them do their job, so that we as the GParted project can concentrate on making GParted better.  :-)

15

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

JanC – going back to your post #33, you were right.  The kernel update did break it – kernel panic.

This time, instead of doing post #8, I was very careful to follow your original directions, step-by-step – from another partition to chroot into the broken Kubuntu and execute the update-initramfs command.  That fixed it, and probably will ensure that I'll survive the next kernel update.

fyi on some feedback,
thanks again  smile

Mike

16

Re: 0.3.4-11 Live CD: 2 issues: Init 34 & Eject? [SOLVED]

You're welcome  smile