Re: multi volume with tar




Dances With Crows wrote:
On 8 Jun 2006 05:21:33 -0700, heavytull staggered into the Black Sun and
said:
Dances With Crows wrote:
heavytull wrote:
tar -cvfM /mnt/floppy/my_file.tar ~/my-file.txt
Floppy disks suck. Don't use them if there's any other way. USB
keychain drives are much faster and much higher capacity,
What's [a] USB keychain drive?

It's a small device, about 5cm x 1.5cm x 0.7cm , with a USB port on it.
They're called "keychain" drives because you can clip them to a
keychain. Inside the device is a microcontroller and 32M .. 1G of flash
memory. The device follows USB Mass Storage specs, draws a few mA from
the USB port, and generally behaves as a storage device. They've been
fairly common (and relatively cheap) here in the USA for the last 5
years. YCountryMV.

Also, when you're doing multivolume tar, you want to use the device
node instead of the mountpoint. You have to eject the medium you're
tarring to when tar gets EOF from write(), and ejecting a mounted
medium is Not A Good Idea.
anyway I've already tried to write directly into the floppy by doing
so: gzip -c my_file.txt>/dev/sdb (sdb is the floppy drive (a usb one))
it generated plenty of files with some random like names on the media.

Wait. What? gzipping something and writing the results directly to a
disk definitely won't result in a filesystem-like structure. mount
won't mount that floppy. And you can't use compression with multivolume
tar, either. If you want compression, the thing to do is to tar up your
stuff with z (or j) enabled, then pipe it through split -b 1400K, then
write each split file to a floppy that has a filesystem on it. HTH,

yes you're right, there is no known fs for mount when the disk is
directly written with tar or gzip or ...
in fact I think the floppy was already mounted when I did that, because
I attempted to mount a disk witten into directly with tar and I
couldn't mount it.
so I might gain some space when written directly since there is no
filesystem, is it?


Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / "He is a rhythmic movement of the
-----------------------------/ penguins, is Tux." --MegaHAL

.



Relevant Pages

  • Floppy mounting
    ... you inserted a floppy into the drive and then used the Disk ... Management Tool to mount and unmount them. ... Do modern floppy disk drives automatically detect ...
    (Fedora)
  • Re: increasing mount size
    ... > My /var mount has no more space left. ... file system that isn't getting much use. ... tar cvpf /junk/varspool.tar * ... If you add a disk, fdisk, disklabel/bsdlabel and newfs it to ...
    (freebsd-questions)
  • Re: [SLE] Failure to ope floppy in "My Computer"
    ... > created and the mount command shows multiple copies of the above outout. ... Now I can access the zip disk just like the floppy, no need to mount it, ... This is using Konqueror. ...
    (SuSE)
  • Re: Format removable media
    ... Don't have the floppy mounted ... mount /dev/fd0 /mnt/floppy ... Or you can be weird and tar files to it or dd files to it such as: ... > Doesn't look that I need to format anything. ...
    (alt.os.linux)
  • Re: mounting a floppy
    ... If this is a DOS format floppy, then here's a tip: ... to mount and unmount the floppy all the time. ... that the disk is write protected automatically. ...
    (freebsd-questions)