NeXT Computers Forum Index NeXT Computers
www.NeXTComputers.org
 
Log in to check your private messagesLog in to check your private messages

Log inLog in  RegisterRegister


Profile  Search  Memberlist  FAQ  Usergroups
TAR command to archive MO disks

 
Post new topic   Reply to topic    NeXT Computers Forum Index -> NEXTSTEP / OPENSTEP Software
View previous topic :: View next topic  
Author Message
pentium



Joined: 23 Jun 2006
Posts: 1148
Location: Kamloops, BC

PostPosted: Sat Sep 05, 2015 9:36 pm    Post subject: TAR command to archive MO disks Reply with quote

I know I can just use..

Code:
dd if=/dev/od0a of=/foo/bar/file.img


...to make a complete image of an OD cartridge but I'm trying to see if I can instead stuff everything into a tar file instead for a bit more portability. The problem is that you can't just tar -cvf /dev/od0a because it's not an actual file so I'm a touch lost on what to do here.
_________________

-NeXT 68040 Cube with NS 3.3 and 64Mb ram
Back to top
View user's profile Send private message Send e-mail MSN Messenger
barcher174



Joined: 07 Dec 2012
Posts: 560

PostPosted: Sun Sep 06, 2015 12:46 am    Post subject: Reply with quote

Can't you just tar the directory it mounts to on root?
Back to top
View user's profile Send private message
pentium



Joined: 23 Jun 2006
Posts: 1148
Location: Kamloops, BC

PostPosted: Sun Sep 06, 2015 8:55 pm    Post subject: Reply with quote

I don't actually know where it mounts. Embarassed
_________________

-NeXT 68040 Cube with NS 3.3 and 64Mb ram
Back to top
View user's profile Send private message Send e-mail MSN Messenger
barcher174



Joined: 07 Dec 2012
Posts: 560

PostPosted: Sun Sep 06, 2015 10:35 pm    Post subject: Reply with quote

Literally to the root directory. So if you mount a disk named "newDisk" you would access it at "/newDisk"

If for some reason your system is configured differently, keep the console log open when you mount it. It will give you the mount point.


--
Brian
Back to top
View user's profile Send private message
pentium



Joined: 23 Jun 2006
Posts: 1148
Location: Kamloops, BC

PostPosted: Wed Sep 16, 2015 9:22 am    Post subject: Reply with quote

While verifying that I had imaged the disks properly I noticed that I was missing files. Apparently tar is skipping a few because the filenames are too long. The supposed fix is
Code:
tar -Ecvf /archive.tar /source/folder


...according to this page but it seems that Tar on NeXTSTEP doesn't know what the E modifier stands for. It was apparently added to tar years after NeXTSTEP 3.3.

Edited: Adding insult to injury, it seems the latest releases of gnutar won't even configure on NeXTSTEP. Something about the shell being too old.

Edited: Ah right. Kb7sqi built gnutar for NeXTSTEP a while back. It's just not hosted locally in the file archive.
_________________

-NeXT 68040 Cube with NS 3.3 and 64Mb ram
Back to top
View user's profile Send private message Send e-mail MSN Messenger
barcher174



Joined: 07 Dec 2012
Posts: 560

PostPosted: Wed Sep 16, 2015 12:06 pm    Post subject: Reply with quote

Your edit beat me to it. Smile

Here is the file for in case anyone stumbles across this:

https://drive.google.com/open?id=0B0gDYBETjc4Wb1RzbFE5YW5oZXc
Back to top
View user's profile Send private message
pentium



Joined: 23 Jun 2006
Posts: 1148
Location: Kamloops, BC

PostPosted: Wed Sep 16, 2015 2:01 pm    Post subject: Reply with quote

Hmmm. After only two disks I'm noticing that the regular syntax
Code:
gnutar -cvf /image_name.tar /path/to/folder

produces archives that are not the same size as the disks. They are always smaller. There is no compression happening that I am aware of. Is it still dumping files? I'm not seeing any errors with -v so I'm not sure what is up. Wish I could compare but cmp doesn't work with tar files.
_________________

-NeXT 68040 Cube with NS 3.3 and 64Mb ram
Back to top
View user's profile Send private message Send e-mail MSN Messenger
barcher174



Joined: 07 Dec 2012
Posts: 560

PostPosted: Wed Sep 16, 2015 3:05 pm    Post subject: Reply with quote

Does the -v give a list of all the files you could at least compare with the contents of the directory?
Back to top
View user's profile Send private message
pentium



Joined: 23 Jun 2006
Posts: 1148
Location: Kamloops, BC

PostPosted: Wed Sep 16, 2015 3:09 pm    Post subject: Reply with quote

-v gives a list alright but there's thousands of files. I've already just tried using gnutar's compare function
Code:
gnutar -v --compare --file=/OpticalDisk.tar -C /OpticalDisk

...but that just returns all errors that there's nothing found. Like, it doesn't even try searching the MO drive.
_________________

-NeXT 68040 Cube with NS 3.3 and 64Mb ram
Back to top
View user's profile Send private message Send e-mail MSN Messenger
gtnicol



Joined: 27 Dec 2005
Posts: 525
Location: Rhode Island, USA

PostPosted: Wed Sep 16, 2015 5:20 pm    Post subject: Reply with quote

When I archive disks, I use tar, dump, and also take direct sector dumps. I always do it at least twice to compare.

You can mount the disk image directly on modern machines.
Back to top
View user's profile Send private message
pentium



Joined: 23 Jun 2006
Posts: 1148
Location: Kamloops, BC

PostPosted: Wed Sep 16, 2015 7:52 pm    Post subject: Reply with quote

But how easily accessible are they when they are just dd image files? The imaged disks are not staying with me. They are being delivered to someone else whose recent knowledge with computers is unknown.

Edited: Now that I've spent a few more hours working on this I am starting to suspect that the inconsistent size issue is really just the file shrinking as it moves from the formatted blocksize of the MO disk to the filesystem on the hard drive and the data itself is still completely intact.
_________________

-NeXT 68040 Cube with NS 3.3 and 64Mb ram
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    NeXT Computers Forum Index -> NEXTSTEP / OPENSTEP Software All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2017 phpBB Group