Author Topic: plymouth message after changing hdd to other machine  (Read 931 times)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
plymouth message after changing hdd to other machine
« on: June 06, 2010, 04:39:42 PM »
Hi,
The HDD was on a Dell as slave and is now on another Dell (same brand and model) as master. The output yells at me:
Quote
While installing package plymouth-0.8.3-1pclos2010:

sh: -c: line 0: syntax error near unexpected token `hd0,6'
sh: -c: line 0: `/bin/zcat (hd0,6)/boot/initrd.img 2> /dev/null | /bin/cpio -t &> /dev/null'
can't open (hd0,6)/boot/initrd.img: No such file or directory
/usr/share/bootsplash/scripts/make-boot-splash-raw: line 49: (hd0,6)/boot/initrd.img: No such file or directory
sh: -c: line 0: syntax error near unexpected token `hd0,6'
sh: -c: line 0: `/bin/zcat (hd0,6)/boot/initrd-2.6.33.5-pclos1.bfs.img 2> /dev/null | /bin/cpio -t &> /dev/null'
can't open (hd0,6)/boot/initrd-2.6.33.5-pclos1.bfs.img: No such file or directory
/usr/share/bootsplash/scripts/make-boot-splash-raw: line 49: (hd0,6)/boot/initrd-2.6.33.5-pclos1.bfs.img: No such file or directory

I suppose I will reinstall the kernel, then the plymouth package. ???

What else could I do ?


melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15846
  • LXDE! Coffee, Bacon and Cheesecake!
Re: plymouth message after changing hdd to other machine
« Reply #1 on: June 09, 2010, 07:02:58 AM »
Melodie,
Renstalling the kernel shouldn't be necessary. Just reboot.
After that, open the plymouth themes directory and run switch-themes. If the error has persisted, it will show up in the output. If there is no output, you're fine.

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3985
Re: plymouth message after changing hdd to other machine
« Reply #2 on: June 09, 2010, 07:09:45 AM »
Sorry, Neal. I think my previous post (now deleted) misled you into thinking melodie's problem was the same as mine. She has actually moved her install and rebooted in the process, and plymouth complained because the drive had actually moved from slave to master, so her problem was probably permanent. Three days later she has probably already reinstalled the packages.

Once I realised there was another post and that it was not a problem in my case I removed my irrelevant contribution.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: plymouth message after changing hdd to other machine
« Reply #3 on: June 09, 2010, 09:32:32 AM »
Yes, and also it was taking a whole additional minute to boot : it was seeking for it's partition and for the swap partition as well. (then timout then boot). Strange that it needs to look at that, while booting, and not very convenient. Couldn't that be done differently ? The distro is SO stable that you won't move it ! ;D

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15846
  • LXDE! Coffee, Bacon and Cheesecake!
Re: plymouth message after changing hdd to other machine
« Reply #4 on: June 09, 2010, 09:37:32 AM »
kjpetrie,
I see.

Melodie,
Couldn't you edit fstab and menu.list?

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3985
Re: plymouth message after changing hdd to other machine
« Reply #5 on: June 09, 2010, 11:21:07 AM »
It looks for the swap partition to see whether it needs to resume after a suspend to disc.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: plymouth message after changing hdd to other machine
« Reply #6 on: June 09, 2010, 12:02:37 PM »
It looks for the swap partition to see whether it needs to resume after a suspend to disc.


Yes : it was looking at the wrong / and swap partitions though : the namings that it had when it was slave on the other machine. ;-)

Neal : I thought it was in the initrd : isn't it in the initrd ? When I changed for a new kernel, it didn't search at the wrong place afterwards.

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline John Bee

  • Full Member
  • ***
  • Posts: 184
Re: plymouth message after changing hdd to other machine
« Reply #7 on: June 09, 2010, 01:26:42 PM »
Yes : it was looking at the wrong / and swap partitions though : the namings that it had when it was slave on the other machine. ;-)

Neal : I thought it was in the initrd : isn't it in the initrd ? When I changed for a new kernel, it didn't search at the wrong place afterwards.


Hi Melodie;

 Please see the following thread for some insite into this long wait at boot waiting for drives to show up.

Waiting for device sda6 to appear (timeout 1min)" notice after cloning HDD
http://www.pclinuxos.com/forum/index.php/topic,74051.0.html

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15846
  • LXDE! Coffee, Bacon and Cheesecake!
Re: plymouth message after changing hdd to other machine
« Reply #8 on: June 09, 2010, 01:39:23 PM »
It looks for the swap partition to see whether it needs to resume after a suspend to disc.


Yes : it was looking at the wrong / and swap partitions though : the namings that it had when it was slave on the other machine. ;-)

Neal : I thought it was in the initrd : isn't it in the initrd ? When I changed for a new kernel, it didn't search at the wrong place afterwards.

Yes, you should 'redo' initrd, too. Should have said, shouldn't I? :( :(

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: plymouth message after changing hdd to other machine
« Reply #9 on: June 09, 2010, 02:35:43 PM »
It looks for the swap partition to see whether it needs to resume after a suspend to disc.


Yes : it was looking at the wrong / and swap partitions though : the namings that it had when it was slave on the other machine. ;-)

Neal : I thought it was in the initrd : isn't it in the initrd ? When I changed for a new kernel, it didn't search at the wrong place afterwards.

Yes, you should 'redo' initrd, too. Should have said, shouldn't I? :( :(

Re-install the kernel, or install one seemed to me the easy solution to get a new initrd. Then at one try, I realised that if I was purely reinstalling the same kernel, this wild unteamed system would not redo the initrd (the problem after reboot was still the same). Only the install of a new kernel did the trick...

What is the command line to redo an initrd ? "mkinitrd -g -k ?something?"
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15846
  • LXDE! Coffee, Bacon and Cheesecake!
Re: plymouth message after changing hdd to other machine
« Reply #10 on: June 09, 2010, 02:43:06 PM »
I believe that would be
Code: [Select]
mkinitrd -v -f initrd-<kernel version>.img
You may want to check on that just to be sure.

Offline John Bee

  • Full Member
  • ***
  • Posts: 184
Re: plymouth message after changing hdd to other machine
« Reply #11 on: June 09, 2010, 04:38:48 PM »
What is the command line to redo an initrd ? "mkinitrd -g -k ?something?"

Hi Melodie;

An example (the -f tells mkinitrd to replace the existing initrd.img file)

mkinitrd -f /boot/initrd-2.6.33.4-pclos1.pae.img 2.6.33.4-pclos1.pae

replace with whatever kernel you want to update.

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11563
  • ----IOFLU----
Re: plymouth message after changing hdd to other machine
« Reply #12 on: June 09, 2010, 08:22:42 PM »
melodie:

If you cd to /boot then do mv initrd-2.6.33.4-pclos1.pae.img initrd-2.6.33.4-pclos1.pae.img-old before reinstalling the same kernel, it should then make the initrd for the kernel also. If you've already installed a new kernel, you could uninstall the old one through Synaptic, then do a fresh install of the older kernel, to get the initrd image for sure.
Old-Polack

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



Lest we forget...

Online pags

  • Hero Member
  • *****
  • Posts: 2516
  • Keep it clean.
Re: plymouth message after changing hdd to other machine
« Reply #13 on: June 10, 2010, 10:53:37 AM »
What is the command line to redo an initrd ? "mkinitrd -g -k ?something?"

Hi Melodie;

An example (the -f tells mkinitrd to replace the existing initrd.img file)

mkinitrd -f /boot/initrd-2.6.33.4-pclos1.pae.img 2.6.33.4-pclos1.pae

replace with whatever kernel you want to update.

Code: [Select]
mkinitrd -f /boot/initrd-`uname -r`.img `uname -r`That should take care of handling the appropriate kernel

old-polack has a point, also.
melodie:

If you cd to /boot then do mv initrd-2.6.33.4-pclos1.pae.img initrd-2.6.33.4-pclos1.pae.img-old before reinstalling the same kernel, it should then make the initrd for the kernel also. If you've already installed a new kernel, you could uninstall the old one through Synaptic, then do a fresh install of the older kernel, to get the initrd image for sure.

Copy (or move) your current initrd (if for no other reason than to have a fall back that can be restored from the LiveCD, should something go amiss)

Offline John Bee

  • Full Member
  • ***
  • Posts: 184
Re: plymouth message after changing hdd to other machine
« Reply #14 on: June 10, 2010, 11:13:43 AM »
Code: [Select]
mkinitrd -f /boot/initrd-`uname -r`.img `uname -r`
That should take care of handling the appropriate kernel

Most elegant and functional.

This one goes into my Important Stuff.txt file.

Thanks.  :)