LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-16-2004, 03:13 AM   #1
hamidrh
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Angry Problem Creating Archive With Tar In Redhat!!!


I want to split a 2mb file to two floppies and I want to use
these floppies in a Windows XP system.

first I formated my floppies using FAT file system

then, I tried to use this command:

tar cMF /<the location of the file>/<my file.exe>

it gives me this error:
tar: Cowardly refusing to create an empty archive
Try `tar --help' for more information.


can any one help me with this problem?

please explain clearly! because it's the first time I'm using Linux
 
Old 09-16-2004, 03:46 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Hi, and welcome to LQ!

First I'd suggest you read the man-page, the info-
page and the "tar --help" output.

The F option describes a script-file that is to be
run at the end of each tape. If "<the location of the file>"
is meant to be the script file, which file-name is
archive supposed to have, or which file are you
trying to add to which archive?


Cheers,
Tink
 
Old 09-16-2004, 04:28 AM   #3
realjustin
Member
 
Registered: Aug 2004
Location: /dev/null
Distribution: Slack 10, Debian
Posts: 99

Rep: Reputation: 15
Sounds like you want to use the lowercase f. Plus you must define both the tar file name, and the other files. I've never split a .tar file up, but I'd guess you might need to name more than one .tar file? Read the man page, as mentioned above. Man pages are eternally useful.
 
Old 09-16-2004, 05:14 AM   #4
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 179

Rep: Reputation: 31
A 2mb file sounds pretty small to begin with

try to zip it with

tar -zcf destfilename.tgz sourcefilename

This might give you a file small enough to fit onto a single floppy.
Also I think winzip will be able to extract this type of file.
 
Old 09-16-2004, 12:37 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
No speculations :)

What he REALLY wants is
tar cMf /dev/fd0 <files to be archived>

I'm just not certain that DOS will be able to
use those disks afterwards....


If that's not working just normally tar things,
using compression, then split the file into
suitable chunks.
tar cvzf my_archive.tar.gz <files to be archived>
split -b 1468000 my_archive.tar.gz


In dos you can then
copy /b chunk1 + chunk2 my_archive.tar.gz


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Creating a spanning archive with tar Phyrexicaid Linux - Software 4 01-27-2005 08:04 PM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 12:35 AM
Problem with properly creating a tar archive FransE Linux - Software 5 02-28-2004 03:15 PM
Problem creating tar.gz archive - File changed as we read it doctorwebbox Linux - General 1 02-04-2004 05:59 PM
this doesn't look like a tar archive .phister Slackware 5 02-01-2004 01:19 AM


All times are GMT -5. The time now is 02:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration