Author Topic: [Solved] Mylivecd - worked yesterday, broken today  (Read 1814 times)

Offline Hallvor

  • Sr. Member
  • ****
  • Posts: 304
[Solved] Mylivecd - worked yesterday, broken today
« on: March 07, 2011, 09:28:41 AM »
I made a little remaster yesterday, and it all worked quite well. When I tried it again from the same install, it just didn't work. I made sure I have enough diskspace, and I have draklive-install on my hard drive.

Code: [Select]
[hallvor@localhost ~]$ su
Password:
[root@localhost hallvor]# umount -a
umount: /: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
[root@localhost hallvor]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              29G  2.4G   25G   9% /
[root@localhost hallvor]# mylivecd test.iso
bash: mylivecd: command not found
[root@localhost hallvor]#


If I run locate mylivecd, I get this:

Code: [Select]
[root@localhost hallvor]# locate mylivecd
/usr/sbin/mylivecd
/usr/share/mylivecd
/usr/share/mylivecd/gfxboot.cfg
/usr/share/mylivecd/halt.local
/usr/share/mylivecd/linuxrc
/usr/share/mylivecd/rc.sysinit

I did then try to run mylivecd directly from its path, but failed:

Code: [Select]
[root@localhost hallvor]# /usr/sbin/mylivecd --verbose  test.iso
mylivecd, version 0.9.3, http://pclinuxos.com/
Copyright (C) 2010, Texstar <texstar at gmail.com>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

Disabling Services not needed on the LiveCD

running: /sbin/chkconfig --list
running: chkconfig --del atd
program not found: chkconfig
running: /sbin/chkconfig --list
running: chkconfig --del crond
program not found: chkconfig
running: /sbin/chkconfig --list
running: chkconfig --del syslog
program not found: chkconfig
running: /sbin/chkconfig --list
running: chkconfig --del kheader
program not found: chkconfig
running: /sbin/chkconfig --list
running: chkconfig --del xinetd
program not found: chkconfig


Creating initrd:                                   [ 92.31% 00:00:09/00:00:09]DIE(depmod -a --basedir /tmp/mylivecd.4146/initrd.dir  2.6.33.7-pclos6.bfs) ...
FATAL: Execution of '(depmod -a --basedir /tmp/mylivecd.4146/initrd.dir  2.6.33.7-pclos6.bfs) 2>/dev/null' failed

Any ideas?
« Last Edit: March 07, 2011, 12:44:56 PM by Hallvor »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Mylivecd - worked yesterday, broken today
« Reply #1 on: March 07, 2011, 09:33:37 AM »
Try a reinstall of mylivecd.

Offline Hallvor

  • Sr. Member
  • ****
  • Posts: 304
Re: Mylivecd - worked yesterday, broken today
« Reply #2 on: March 07, 2011, 09:39:10 AM »
Try a reinstall of mylivecd.


I still get the same error.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Mylivecd - worked yesterday, broken today
« Reply #3 on: March 07, 2011, 09:49:50 AM »
Try this:
Run mkinitrd
Code: [Select]
mkinitrd -f /boot/initrd-kernel version-pclos?.bfs.img kernel version-pclos?.bfs

Replace "kernel version" with your correct kernel numbers. Replace "?" with the correct number. If you are using something other than the bfs kernel, you'll want to change that, too.

Run bleachbit and bleachbit root. Try again.

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Mylivecd - worked yesterday, broken today
« Reply #4 on: March 07, 2011, 09:53:54 AM »
Quote
# umount -a

Hi,

Do you have a separate /usr partition ?
Can you show us what are the mounted partitions before the umount ?

AS

Offline Hallvor

  • Sr. Member
  • ****
  • Posts: 304
Re: Mylivecd - worked yesterday, broken today
« Reply #5 on: March 07, 2011, 10:59:11 AM »
Try this:
Run mkinitrd
Code: [Select]
mkinitrd -f /boot/initrd-kernel version-pclos?.bfs.img kernel version-pclos?.bfs

Replace "kernel version" with your correct kernel numbers. Replace "?" with the correct number. If you are using something other than the bfs kernel, you'll want to change that, too.

Run bleachbit and bleachbit root. Try again.


Maybe there is something wrong with my syntax:

Code: [Select]
[root@localhost hallvor]# uname -r
2.6.33.7-pclos6.bfs
[root@localhost hallvor]# mkinitrd -f/boot/initrd-kernel version-pclos2.6.33.7-pclos6.bfs.img kernel version-pclos2.6.33.7-pclos6.bfs
bash: mkinitrd: command not found
[root@localhost hallvor]#


as: I only have one partition mounted (in Virtualbox):

Code: [Select]
[root@localhost hallvor]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              29G  2.5G   25G  10% /
[root@localhost hallvor]#

« Last Edit: March 07, 2011, 11:01:08 AM by Hallvor »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Mylivecd - worked yesterday, broken today
« Reply #6 on: March 07, 2011, 11:06:17 AM »
Yep, there is something wrong with your command. There should be a space after -f. And you were supposed to replace "kernel version" not add to it. You have:
Code: [Select]
mkinitrd -f/boot/initrd-kernel version-pclos2.6.33.7-pclos6.bfs.img kernel version-pclos2.6.33.7-pclos6.bfs
It should be:
Code: [Select]
mkinitrd -f /boot/initrd-pclos2.6.33.7-pclos6.bfs.img pclos2.6.33.7-pclos6.bfs

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Mylivecd - worked yesterday, broken today
« Reply #7 on: March 07, 2011, 11:14:27 AM »
Quote
bash: mylivecd: command not found

Quote
[root@localhost hallvor]# locate mylivecd
/usr/sbin/mylivecd

to me sound like a path problem. try which mylivecd it will search the command following env PATH

AS

Offline Hallvor

  • Sr. Member
  • ****
  • Posts: 304
Re: Mylivecd - worked yesterday, broken today
« Reply #8 on: March 07, 2011, 11:31:05 AM »
Yep, there is something wrong with your command. There should be a space after -f. And you were supposed to replace "kernel version" not add to it. You have:
Code: [Select]
mkinitrd -f/boot/initrd-kernel version-pclos2.6.33.7-pclos6.bfs.img kernel version-pclos2.6.33.7-pclos6.bfs
It should be:
Code: [Select]
mkinitrd -f /boot/initrd-pclos2.6.33.7-pclos6.bfs.img pclos2.6.33.7-pclos6.bfs

Thanks, but no luck...  :(

Code: [Select]
[root@localhost hallvor]# mkinitrd -f /boot/initrd-pclos2.6.33.7-pclos6.bfs.img pclos2.6.33.7-pclos6.bfs
bash: mkinitrd: command not found
[root@localhost hallvor]# locate mkinitrd
/etc/sysconfig/mkinitrd
/sbin/mkinitrd
/usr/share/man/man8/mkinitrd.8.bz2
[root@localhost hallvor]# /sbin/mkinitrd -f /boot/initrd-pclos2.6.33.7-pclos6.bfs.img pclos2.6.33.7-pclos6.bfs
No modules available for kernel "pclos2.6.33.7-pclos6.bfs".
[root@localhost hallvor]#


Code: [Select]
[root@localhost hallvor]# which mylivecd
which: no mylivecd in (/bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib/qt4/bin:/home/guest/bin)
[root@localhost hallvor]#

.... and there seems to be a path problem.

« Last Edit: March 07, 2011, 11:33:24 AM by Hallvor »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Mylivecd - worked yesterday, broken today
« Reply #9 on: March 07, 2011, 11:37:12 AM »
Yep. A path problem is what it seems to be. Check your .bash_profile file.


Offline Hallvor

  • Sr. Member
  • ****
  • Posts: 304
Re: Mylivecd - worked yesterday, broken today
« Reply #10 on: March 07, 2011, 11:44:16 AM »
Yep. A path problem is what it seems to be. Check your .bash_profile file.




Code: [Select]
[root@localhost /]# cd /root
[root@localhost ~]# cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
[root@localhost ~]#

I don't understand any of the above..

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Mylivecd - worked yesterday, broken today
« Reply #11 on: March 07, 2011, 11:57:59 AM »
try
echo $PATH

Offline Hallvor

  • Sr. Member
  • ****
  • Posts: 304
Re: Mylivecd - worked yesterday, broken today
« Reply #12 on: March 07, 2011, 12:04:22 PM »
try
echo $PATH

Code: [Select]
[root@localhost ~]# echo $PATH
/bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib/qt4/bin:/home/hallvor/bin
[root@localhost ~]#

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Mylivecd - worked yesterday, broken today
« Reply #13 on: March 07, 2011, 12:12:02 PM »
Definitely there is no /usr/sbin in your env PATH.

which PCLinuxOS flavour are you using ?

can you try the following command: grep sbin /etc/profile.d/* /root/.bashrc

AS

Offline Hallvor

  • Sr. Member
  • ****
  • Posts: 304
Re: Mylivecd - worked yesterday, broken today
« Reply #14 on: March 07, 2011, 12:14:54 PM »
I am using the LXDE version.

Code: [Select]
[root@localhost ~]# grep sbin /etc/profile.d/* /root/.bashrc
/etc/profile.d/10lang.csh:    set consoletype=`/sbin/consoletype stdout`
/etc/profile.d/10lang.csh:       if { /sbin/consoletype fg } then
/etc/profile.d/10lang.csh:                              if { /sbin/consoletype fg } then
/etc/profile.d/10lang.sh:      consoletype=$(/sbin/consoletype stdout)
/etc/profile.d/10lang.sh: if [ -x /bin/unicode_start ] && /sbin/consoletype fg ; then
/etc/profile.d/10lang.sh: [ -x /bin/unicode_stop ] && /sbin/consoletype fg && /bin/unicode_stop
[root@localhost ~]#