Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ 1 [2] 3 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: error running fieltool.sh, Broken pipe error< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Feb. 18 2005,15:23 QUOTE

it looks like your sda1 is being tried as the source rather than the destination, and trying /cdrom as the destination.

Perhaps you need another argument?
(filetool.sh backup source destination)


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
sunburnt Offline





Group: Members
Posts: 30
Joined: Feb. 2005
Posted: Feb. 18 2005,22:39 QUOTE

You`ll have to forgive my ignorance mikshaw but the source is the contense of filetool.lst, how do I use that?  How about:

filetool.sh backup "cat filetool" /mnt/sda1
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Feb. 18 2005,23:36 QUOTE

hmm...that sounds unnecessarily redundant, so it's probably incorrect.  I think I was wrong anyway.

All I know is that the output is saying "Backing up files to /cdrom"....i was thinking at first that it was trying to write to the wrong device.  However, after a little exploring it seems that /cdrom is the mountpoint for the KNOPPIX and boot files, and whatever files are included with them.....so i guess that would be the mountpoint for your usb device?
perhaps the device is mounted read-only, or maybe you need to remount the device on /mnt/sda1 (one device, two mountpoints).  That sounds weird, but it may be the only way to make it writeable.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
sunburnt Offline





Group: Members
Posts: 30
Joined: Feb. 2005
Posted: Feb. 19 2005,00:02 QUOTE

I also noticed /cdrom IS /mnt/sda1, odd but if it ALWAYS reflects the
 device DSL is on, it could be backup dev. for writable drives.
I mount and write files to sda1 manually in DSL, so it`s writable as su.
I know very little about writing script, maybe something like:

#!/bin/bash
# Script for Backup of DSL settings

echo -n "${BLUE}Backing up files to:  /cdrom ${NORMAL}"
sudo tar -C / -T /mnt/ramdisk/home/dsl/filetool.lst --exclude=Cache  -czf /cdrom/backup.tar.gz
echo "${BLUE}Done.${NORMAL}"
exit 0


I took this code from Robert Shingledecker`s code & altered it.
I`m not sure how much of filetool.sh is required to be reliable.
The source & destination are hard coded, so no arguments.
I think the very first line`s needed for script to function, duh?
If ANYONE has any thoughts, suggestions, etc., PLEASE feel free!!!
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Feb. 19 2005,02:04 QUOTE

Lets start by posting which version of DSL you are using and the contents of the filetool.lst, i.e., which files you are trying to backup.
Back to top
Profile PM WEB 
15 replies since Feb. 18 2005,00:04 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ 1 [2] 3 4 >/
reply to topic new topic new poll
Quick Reply: error running fieltool.sh

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code