LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-19-2005, 07:52 AM   #1
ffaker
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
partimage acting strange when invoked from script


Hi all. This is my first post here, so I apologize in advance if I fail to live up to community norms

I have a bash script which is intended for easy backup and restoration of internet terminals in a net cafe. hda1 is the windows installation, hda2 is a large fat32 parition (so it can be easily used by both windows and debian) and hda3 is a small ext3 partition where a minimal debaian install lives. It uses partimage to do this. Right now, the command in the script I invoke partimage with is making the backup BUT it is automatically splitting into a new volume when it reaches the 2 GB mark:

Code:
partimage -z1 -e -f2 -b -d save /dev/hda1 /mnt/d/xp-${DATE}.partimg
Now, I have thought of the obvious. As you can see from my command, it is not telling partimage to make volumes. Secondly I know that linux 2.2 had a 2GB file size limit but I AM RUNNING LINUX 2.6!

So; any ideas why it's doing this?

The only thing I thought of is that it's related to the fact that partimage is invoked from a bash script, though I have no idea as to why that should matter. It would be v. useful to figure this mystery out. Meanwhile, I will modify my script so that it looks for volume 000 to start it off.

Sorry if this section is the wrong one for this topic - please let me know the right one. Thanks in advance for any help.
 
Old 08-19-2005, 09:55 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Hi,

On my boxen, partimage puts the .000 after the image name even if it's only one part. So I just tell it to look for the image name with .000 after it.
For example:
partimage restore -b -f3 $i /mnt/images/$part.000

Because it puts the .000 after all image names, I never bothered to try stop the split option. Not really sure what that command would be if it exists but I'll look see if I can find it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Php4 acting strange Sevoma Linux - Software 13 02-15-2005 05:44 PM
Avidemux2 acting strange alitrix Linux - Software 0 12-15-2004 10:55 AM
grep acting strange in script fredgt Programming 2 12-14-2004 11:15 AM
vim acting strange littlemidget Debian 6 09-17-2004 11:52 AM
suse 9.1 acting strange ozzytx Linux - General 1 08-29-2004 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration