View Single Post
  #5  
Old 4th October 2006, 17:40
checker checker is offline
Junior Member
 
Join Date: Sep 2006
Location: Muenster/Germany
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi falko,

thank you for your answer. i tried the script again. the server has a new image (default debian sarge image from the provider) and i got also a new error message, see below:

i assume "Read-only file system" doesn't sound good.

Code:
http://www.falkotimme.com/howtos/dedicated_server_backup_restore_systemimager/functions
           => `functions'
Resolving www.falkotimme.com... 81.169.182.36
Connecting to www.falkotimme.com[81.169.182.36]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 34,564 [text/plain]

100%[====================================>] 34,564        --.--K/s

19:21:54 (859.75 KB/s) - `functions' saved [34564/34564]

--19:21:54--  http://www.falkotimme.com/howtos/dedicated_server_backup_restore_systemimager/bc
           => `bc'
Resolving www.falkotimme.com... 81.169.182.36
Connecting to www.falkotimme.com[81.169.182.36]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,364 [text/plain]

100%[====================================>] 2,364         --.--K/s

19:21:54 (62.62 MB/s) - `bc' saved [2364/2364]

mv: cannot create regular file `/bin/bc': Read-only file system
chmod: cannot access `/bin/bc': No such file or directory

get_arch
Partitioning /dev/hda...
Old partition table for /dev/hda:
Disk geometry for /dev/hda: 0.000-9779.765 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031   7726.574  primary   ext3
2       7726.575   9773.920  primary   linux-swap
parted -s -- /dev/hda mklabel msdos || shellout
Creating partition /dev/hda1.
/tmp/brandy-andy.master: line 1: /tmp/bc: Permission denied
parted -s -- /dev/hda mkpart primary ext2 0  || shellout
Killing off running processes.
kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
udp-receiver: no process killed
rsync: no process killed

write_variables
Debian GNU/Linux 3.1 \n \l

in /tmp/ are bc and restore. the content of bc:
(but i dont think that you mean this?)


Code:
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#

PATH=/sbin:/bin:/usr/bin:/usr/sbin:/tmp

read input
scale=`echo $input | cut -f1 -d' ' | cut -f2 -d'=' | cut -f1 -d';'`
size1=`echo $input | cut -f2 -d'(' | cut -f1 -d' ' | cut -f1 -d'.'`
size2=`echo $input | cut -f4 -d' ' | cut -f1 -d')' | cut -f1 -d'.'`
let size=$size1+$size2
if [ "$scale" -gt 0 ]; then
  size=$size"."
fi
index=0
while [ "$index" -lt "$scale" ]
do
  size=$size"0"
  let index=$index+1
done
echo $size
exit 0

maybe there are problems if there is a complete "furnished" system on the harddisk?

Last edited by checker; 4th October 2006 at 17:53.
Reply With Quote