Welcome! Log In Create A New Profile

Advanced

Debian Installscript fails with Rescue System

Posted by dragonfly505 
dragonfly505
Debian Installscript fails with Rescue System
September 17, 2010 12:35PM
Hello,

I have successful installed the Rescue System and now I wanted to install debian on my faster usb-stick but I am getting this error :

rescue:/tmp# ./dockstar.debian-squeeze.sh


!!!!!!  DANGER DANGER DANGER DANGER DANGER DANGER  !!!!!!

This script will replace the bootloader on /dev/mtd0.

If you lose power while the bootloader is being flashed,
your device could be left in an unusable state.


This script will configure your Dockstar to boot Debian Squeeze
from a USB device.  Before running this script, you should have
used fdisk to create the following partitions:

/dev/sda1 (Linux ext2, at least 400MB)
/dev/sda2 (Linux swap, recommended 256MB)


This script will DESTROY ALL EXISTING DATA on /dev/sda1
Please double check that the device on /dev/sda1 is the correct device.

By typing ok, you agree to assume all liabilities and risks
associated with running this installer.

If everything looks good, type 'ok' to continue: ok
Installing Bootloader
# checking for /usr/sbin/blparam...
# checking for /usr/sbin/nandwrite...
# checking for /usr/sbin/nanddump...
# checking for /usr/sbin/flash_erase...
# checking for /usr/sbin/fw_printenv...
# checking for /etc/fw_env.config...
# checking for /uboot-original-mtd0.kwb...

# Attempting to auto-detect your device.../tmp/install_uboot_mtd0.sh: line 284: /usr/sbin/blparam: not found
/tmp/install_uboot_mtd0.sh: line 285: /usr/sbin/blparam: not found
failed!

############################################
Your device could not be auto-detected.

You must be using a Seagate Dockstar or Pogoplug Pink to run this installer.

What device are you using? Type the number of your device and press ENTER.
1 - DockStar
2 - Pogoplug v2 - Pink
3 - Other
1
Selected Dockstar

# Checking for existing uBoot on mtd0...
Connecting to jeff.doozan.com (69.163.187.226:80)
uboot.mtd0.kwb.md5   100% |************************************************************************************************************|    49  --:--:-- ETA
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
## The newest uBoot is already installed on mtd0.

# uBoot installation has completed successfully.
./dockstar.debian-squeeze.sh: line 170: /sbin/mke2fs: not found
Setting up swapspace version 1, size = 522423808 bytes


# Starting debootstrap installation
I: Retrieving Release
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://ftp.us.debian.org/debian...
E: Couldn't find these debs: 0
debootstrap failed.
See /tmp/debian/debootstrap/debootstrap.log for more information.
rescue:/tmp#

I cant execute /sbin/mke2fs from any where but mke2fs without "/sbin/" does work.
Re: Debian Installscript fails with Rescue System
September 17, 2010 12:54PM
The Debian install script has not yet been ported to the rescue system. In addition to the mke2fs error, I need to recompile pkgdetails for the rescue system.

-- Jeff
Rene
Re: Debian Installscript fails with Rescue System
September 19, 2010 08:20AM
Hi Jeff,

I broke my USB installation so I need a new one, but with the current script it is not possible to make a fresh installation within the rescue system.

When do you plan to adapt the script for the rescue system?
Thank you for your effort and the great work.

Rene
Lars
Re: Debian Installscript fails with Rescue System
September 19, 2010 08:59AM
Hi,
same problem here.
I tried to execute all necessary parts of the script manualy.

Stuck here:
I: Checking component main on http://ftp.us.debian.org/debian...
E: Couldn't find these debs: 0

debootstrap.log:
Connecting to ftp.us.debian.org (64.50.236.52:80)
debootstrap.invalid_ 100% |*******************************| 8339k 00:00:00 ETA
/usr/sbin/debootstrap: line 7: /usr/share/debootstrap/pkgdetails: not found
/usr/sbin/debootstrap: line 7: /usr/share/debootstrap/pkgdetails: not found
/usr/sbin/debootstrap: line 7: /usr/share/debootstrap/pkgdetails: not found
/usr/sbin/debootstrap: line 532: /usr/share/debootstrap/pkgdetails: not found

ls /usr/share/debootstrap/ -l
...
-rwx------ 1 root root 18120 Sep 19 08:00 pkgdetails
..
But it's not executable:
rescue:/tmp/debian/debootstrap# /usr/share/debootstrap/pkgdetails
/bin/sh: /usr/share/debootstrap/pkgdetails: not found

My temp. workarounde: took another dockstar (without rescue system) and set up a fresh squeeze.
-started dockstar with rescusystem, attached USB-device, edit /etc/udev/rules.d/70-persistent-net.rules (change mac-address), reboot,
Rene
Re: Debian Installscript fails with Rescue System
September 19, 2010 09:07AM
Hi Lars,

could you please provide me an image of an installation? I have only one dockstar. :-(

Rene
Re: Debian Installscript fails with Rescue System
September 19, 2010 09:32AM
The Debian squeeze installer has been updated to work with the rescue system. If you tried to run the broken script, you will need to remove /usr/sbin/debootstrap and the directory /usr/share/debootstrap before running the new script.

-- Jeff



Edited 2 time(s). Last edit at 09/19/2010 09:40AM by Jeff.
Rene
Re: Debian Installscript fails with Rescue System
September 19, 2010 09:41AM
Hi Jeff,

thank you for the fast reply. Now I get the following error:

# Attempting to auto-detect your device.../tmp/install_uboot_mtd0.sh: line 284: /usr/sbin/blparam: not found
/tmp/install_uboot_mtd0.sh: line 285: /usr/sbin/blparam: not found
failed!

Rene
dragonfly505
Re: Debian Installscript fails with Rescue System
September 19, 2010 10:16AM
I am installing debian right now with the new script, thanks Jeff for the update!

@Rene: got the same error but I just ignored it and pressed 1 for Dockstar and the installer starts.
Re: Debian Installscript fails with Rescue System
September 19, 2010 10:28AM
It turns out there were still a few commands at the end of the script that were failing. The script has been fixed now. Just ignore the blparam errors.

-- Jeff
dragonfly505
Re: Debian Installscript fails with Rescue System
September 19, 2010 10:51AM
Just noticed that mke2fs still doesnt work.

# checking for /usr/sbin/blparam...
./dockstar.debian-squeeze.sh: line 298: /sbin/mke2fs: not found
Setting up swapspace version 1, size = 517486592 bytes
mount: mounting /dev/sda1 on /tmp/debian failed: Invalid argument
Could not mount /dev/sda1 on /tmp/debian
rescue:/tmp#
Re: Debian Installscript fails with Rescue System
September 19, 2010 11:18AM
You probably have a bad mke2fs from the old script. If you delete it, the new script will find your good mke2fs and you'll be fine.
dragonfly505
Re: Debian Installscript fails with Rescue System
September 20, 2010 04:57PM
I flashed an another dockstar with your rescue system from here http://jeff.doozan.com/debian/rescue/install_rescue.sh .
I hope thats the correct link for 9/19 update and after that I started the new script from here http://jeff.doozan.com/debian/dockstar.debian-squeeze.sh .

This time the mke2fs was fine but I am still getting an error with debootstrap :

I: Checking component main on http://ftp.us.debian.org/debian...
E: Couldn't find these debs: 0
debootstrap failed.
See /tmp/debian/debootstrap/debootstrap.log for more information.

the log:
Connecting to ftp.us.debian.org (149.20.20.135:80)
^Mdebootstrap.invalid_ 0% | | 0 --:--:-- ETA^Mdebootstrap.invalid_ 100% |***************
Connecting to ftp.us.debian.org (149.20.20.135:80)
^Mdebootstrap.invalid_ 0% | | 0 --:--:-- ETA^Mdebootstrap.invalid_ 1% |
/usr/sbin/debootstrap: line 7: /usr/share/debootstrap/pkgdetails: Permission denied
/usr/sbin/debootstrap: line 7: /usr/share/debootstrap/pkgdetails: Permission denied
/usr/sbin/debootstrap: line 7: /usr/share/debootstrap/pkgdetails: Permission denied
/usr/sbin/debootstrap: line 532: /usr/share/debootstrap/pkgdetails: Permission denied

Do I always have to delete the debootstrap for a new debian installation ?
Re: Debian Installscript fails with Rescue System
September 20, 2010 06:45PM
Good catch! I copied the wrong pkgdetails into the rescue image. I've fixed this and uploaded a new image.

-- Jeff
dragonfly505
Re: Debian Installscript fails with Rescue System
September 21, 2010 07:17AM
Thanks for you hard work and the updates / fixes !

Script is loading fine !

There is just that "find my hardware automaticly, because I dont want to push 1 for my dockstar :)" blparam error left, could you fix that too ?

# Attempting to auto-detect your device.../tmp/install_uboot_mtd0.sh: line 285: /usr/sbin/blparam: not found
/tmp/install_uboot_mtd0.sh: line 286: /usr/sbin/blparam: not found
failed!
lukasd
Re: Debian Installscript fails with Rescue System
September 24, 2010 04:38PM
hi jeff,
after 2h the install script ended with an error:

Preparing to replace wget 1.12-2.1 (using .../wget_1.12-2.1_armel.deb) ...
Unpacking replacement wget ...
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-2.6.32-5-kirkwood_2.6.32-23_armel.deb

any ideas? do i have to start the script again? :-/
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: