Hi,
I am working on a project where I have to move some parts files from an old Unix server. I have tared the files to floppy disc, but I can't mount them.
After doing some reasearch I have found that the SCO Unix ver 3.2 uses a System V filesystem I think. From the article that I have read I need to add this filesystem to my kernel to be able to mount and read the floppy discs.
Can anyone help me with this I have never recomipled my kernel before.
Then I should be able to use
# mount -t sysv /dev/fd0 /mnt/floppy
I have found in the .config file under misc filesystems that I can turn on sysv filesytem. I am not sure what to do after that. Is it better to make it a module or to compileit into the kernel?
kernel CONFIG_SYSV_FS=y
as a modual CONFIG_SYSV_FS=m If I go the modual way where do I find the modual? I would use modprobe to install it right?
What commands do you run to recompile the kernel? Do I run make menuconfig?
I have been reading alot but not finding what I need. I have a fresh install off Centos 4.2 just for this purpose so if I mess it up that s okay I will start again.
I am sure this is so simple once you have done it once.
Thanks
Scandog
On Mon, 2006-02-06 at 17:45 -0700, Mace Eliason wrote:
Hi,
I am working on a project where I have to move some parts files from an old Unix server. I have tared the files to floppy disc, but I can't mount them.
As an alternative, you could format the diskette using SCO's dosformat (or dosfmt or something like that. Review the man page.)
And then copy the tar archive using the doscopy (or doscp or something like that. Review the man page.)
I think its going to be something like:
# dosformat a: # doscp mytarfile.tar a:
Then use linux's mcopy to read the diskette.
It's been a long time since I have used SCO.
-Steve
On Mon, 2006-02-06 at 19:03 -0600, Steve Bergman wrote:
On Mon, 2006-02-06 at 17:45 -0700, Mace Eliason wrote:
Hi,
I am working on a project where I have to move some parts files from an old Unix server. I have tared the files to floppy disc, but I can't mount them.
As an alternative, you could format the diskette using SCO's dosformat (or dosfmt or something like that. Review the man page.)
No need. Use it in raw mode. Can get more on it, no file sustem requirements in the sending or receiveing system. Using someting like cpio...
find . | cpio -aov >/dev/fd0 # of fd0H1440 or ...
cpi also had some key letters added such as -O so that I/O redirection is not necessary. Find can use all the usual parameters to do selection.
To get more on the floppy
find . | cpio -oav | compress >/dev/fd0 # of fd0H1440 or ...
And then copy the tar archive using the doscopy (or doscp or something like that. Review the man page.)
That part remains essentially the same, but use tar or cpio from the raw file again:
cpio -iduma -I /dev/fd0 # or ... and or </dewv/fd0 ...
If you compressed it
uncompress </dev/fd0 | cpio -idumav # v=make noise as usual
I think its going to be something like:
# dosformat a: # doscp mytarfile.tar a:
Then use linux's mcopy to read the diskette.
It's been a long time since I have used SCO.
They say your memory is the second thing to go.
Your suggested way also will work.
-Steve
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, 2006-02-06 at 17:45 -0700, Mace Eliason wrote:
Hi,
I am working on a project where I have to move some parts files from an old Unix server. I have tared the files to floppy disc, but I can't mount them.
After doing some reasearch I have found that the SCO Unix ver 3.2 uses a System V filesystem I think. From the article that I have read I need to add this filesystem to my kernel to be able to mount and read the floppy discs.
Can anyone help me with this I have never recomipled my kernel before.
Then I should be able to use
# mount -t sysv /dev/fd0 /mnt/floppy
I have found in the .config file under misc filesystems that I can turn on sysv filesytem. I am not sure what to do after that. Is it better to make it a module or to compileit into the kernel?
kernel CONFIG_SYSV_FS=y
as a modual CONFIG_SYSV_FS=m If I go the modual way where do I find the modual? I would use modprobe to install it right?
What commands do you run to recompile the kernel? Do I run make menuconfig?
I have been reading alot but not finding what I need. I have a fresh install off Centos 4.2 just for this purpose so if I mess it up that s okay I will start again.
I am sure this is so simple once you have done it once.
Is there no network connection to the old server. There are tons of ways to move files (ftp, nfs, scp, sftp) that don't require you to recompile your kernel.
On Mon, 2006-02-06 at 19:04 -0600, Johnny Hughes wrote:
Is there no network connection to the old server. There are tons of ways to move files (ftp, nfs, scp, sftp) that don't require you to recompile your kernel.
Unfortunately, only very few SCO Unix 3.2 machines had the optional, pay extra for, tcp/ip support.
-Steve
Unfortunately, only very few SCO Unix 3.2 machines had the optional, pay extra for, tcp/ip support.
By any chance is there a usable serial port on the machine? If so, you could use a null modem cable, and any binary transfer protocol that the SCO machine has on it. Then connect the other end to a laptop or desktop booted off of any one of the Linux LiveCD distributions and use local storage or a USB drive to store the data.
Barry
Mace Eliason wrote:
Hi,
I am working on a project where I have to move some parts files from an old Unix server. I have tared the files to floppy disc, but I can't mount them.
forget the filesystem. Use the dd command. all block devices can also be accessed as char devices in Unix.
I'm assuming your files are small enough to fit on a single floppy?
Write to floppy:
tar czvf - <path> | dd of=/dev/rfd0xx
Read from floppy:
cd <path> dd if=/dev/rfd0xx | tar xzvf -
Note: You will need to determine the correct device names. I have written this off the top of my head, and I haven't used a floppy in quite a while.
Ray
Thanks for the ideas.
The file is about 6megs, I have no network support, no man files.
I am not that robust when it comes to the command prompt. I did manage to get tar to split the files to multiple disks. using
tar -c6 PART
the 6 sent it to the floppy drive. Kinda hard when I was on site with no manuals or anthing.
I have 7 discs that I can't read in any OS and the server is now 100 miles away. I will be back there tomorrow but I need to know if I can read the discs or try somthing different.
Thanks
Raymond Lillard wrote:
Mace Eliason wrote:
Hi,
I am working on a project where I have to move some parts files from an old Unix server. I have tared the files to floppy disc, but I can't mount them.
forget the filesystem. Use the dd command. all block devices can also be accessed as char devices in Unix.
I'm assuming your files are small enough to fit on a single floppy?
Write to floppy:
tar czvf - <path> | dd of=/dev/rfd0xx
Read from floppy:
cd <path> dd if=/dev/rfd0xx | tar xzvf -
Note: You will need to determine the correct device names. I have written this off the top of my head, and I haven't used a floppy in quite a while.
Ray
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, 2006-02-06 at 18:18 -0700, Mace Eliason wrote:
Thanks for the ideas.
The file is about 6megs, I have no network support, no man files.
I am not that robust when it comes to the command prompt. I did manage to get tar to split the files to multiple disks. using
tar -c6 PART
the 6 sent it to the floppy drive. Kinda hard when I was on site with no manuals or anthing.
IIRC, use cpio. It will automatically prompt for new media as one fills up. On input, will prompt for new input *IIRC*.
<snip>
HTH Bill
On Mon, 2006-02-06 at 17:04 -0800, Raymond Lillard wrote:
Write to floppy:
tar czvf - <path> | dd of=/dev/rfd0xx
SCO Unix tar, or even the later OSR5 tar would not support the z option. You've got to run it through the 'compress' program with a pipe. Gzip was also not available. But gzip will recognize and uncompress the old unix 'compress' format.
-Steve
On Mon, 2006-02-06 at 17:04 -0800, Raymond Lillard wrote:
Mace Eliason wrote:
Hi,
I am working on a project where I have to move some parts files from an old Unix server. I have tared the files to floppy disc, but I can't mount them.
forget the filesystem. Use the dd command. all block devices can also be accessed as char devices in Unix.
Don't need dd. The nature of *IX file systems is that raw file system access is "automatic" just by requesting it.
I'm assuming your files are small enough to fit on a single floppy?
Write to floppy:
tar czvf - <path> | dd of=/dev/rfd0xx
s/ | dd //
Older unix systems may not have gzip/bzip and if they do, may not have it callable from tar. Might need to use it in a pipeline.
Read from floppy:
cd <path> dd if=/dev/rfd0xx | tar xzvf -
tar -xzvf /dev/rfd0xx
Note: You will need to determine the correct device names. I have written this off the top of my head, and I haven't used a floppy in quite a while.
Ray
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, 2006-02-06 at 17:45 -0700, Mace Eliason wrote:
Hi,
I am working on a project where I have to move some parts files from an old Unix server. I have tared the files to floppy disc, but I can't mount them.
Wait a minute. Ignore my last post. If you copied the tar file to a sysv filesystem on a mounted floppy, that is not the best way.
Just take a floppy (after backing up the directory just in case) and do:
# tar cvf /dev/rfd0135ds18 path_to_a_directory
And the directory and its files will be sent to a raw archive on the floppy. No filesystem involved.
You should be able to retrieve them under Centos with:
tar xvf /dev/floppy
If you need to compress the archive:
# tar cvf - path_to_directory | compress > /dev/rfd0135ds18
and then extract with:
# tar zxvf /dev/floppy.
(I think gzip will recognize the old compress format.)
-Steve
On Mon, 2006-02-06 at 17:45 -0700, Mace Eliason wrote:
Hi,
I am working on a project where I have to move some parts files from an old Unix server. I have tared the files to floppy disc, but I can't mount them.
<snip>
System V filesystem <snip>
Then I should be able to use
# mount -t sysv /dev/fd0 /mnt/floppy
<snip>
Thanks
Scandog
<snip>
I can't answer your question, but I would like to suggest an alternative that might be less work. Use cpio to make on output file and compress it onto floppy using the compress command, which I have checked also exists on CentOS (I *presume that your old UNIX doesn't have {b,g}zip. I see a reference also to pack, but it seems to be only man pages. Both of these compressions programs are very old and should be on your system.
Regardless, fewer floppies will be needed, no kernel recomp or such and all your risk is some minor attribute/time-stamp issues at worst.
Take a look at the man pages for cpio. You can also use tar for this, although I really prefer cpio and always have.
HTH Bill
On Mon, 2006-02-06 at 20:15 -0500, William L. Maltby wrote:
I can't answer your question, but I would like to suggest an alternative that might be less work. Use cpio to make on output file and compress it onto floppy using the compress command, which I have checked also exists on CentOS (I *presume that your old UNIX doesn't have {b,g}zip. I see a reference also to pack, but it seems to be only man pages. Both of these compressions programs are very old and should be on your system.
For cpio, which does work well on SCO:
cd path_to_directory find . | cpio -ocv | compress > /dev/rfd0135ds18
and then to extract under Centos:
cd path_to_where_you_want_to_extract gunzip < /dev/floppy | cpio -idmvc
BTW, I don't think that multivolume archives work between SCO and Linux for either cpio or tar. They might work for cpio, but definitely not with compression.
If it works and you need multivolume, you'd have to do:
find . | cpio -ocv -O/dev/rfd0135ds18
Also note (FWIW) that SCO's tar will silently fail to back up empty directories and will not backup device files.
-Steve
But will cpio split the file it is to large to fit on a floppy? What about the files I have on the disc right now. I was using dos formated floppies and then ran tar to do the copy. Is it possible that I can read them using some of the suggested way?
Steve Bergman wrote:
On Mon, 2006-02-06 at 20:15 -0500, William L. Maltby wrote:
I can't answer your question, but I would like to suggest an alternative that might be less work. Use cpio to make on output file and compress it onto floppy using the compress command, which I have checked also exists on CentOS (I *presume that your old UNIX doesn't have {b,g}zip. I see a reference also to pack, but it seems to be only man pages. Both of these compressions programs are very old and should be on your system.
For cpio, which does work well on SCO:
cd path_to_directory find . | cpio -ocv | compress > /dev/rfd0135ds18
and then to extract under Centos:
cd path_to_where_you_want_to_extract gunzip < /dev/floppy | cpio -idmvc
BTW, I don't think that multivolume archives work between SCO and Linux for either cpio or tar. They might work for cpio, but definitely not with compression.
If it works and you need multivolume, you'd have to do:
find . | cpio -ocv -O/dev/rfd0135ds18
Also note (FWIW) that SCO's tar will silently fail to back up empty directories and will not backup device files.
-Steve
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, 2006-02-06 at 18:29 -0700, Mace Eliason wrote:
But will cpio split the file it is to large to fit on a floppy? What about the files I have on the disc right now. I was using dos formated floppies and then ran tar to do the copy. Is it possible that I can read them using some of the suggested way?
What exact commands did you use to get it onto the floppy?
Unless you compressed the file first, I'd say its unlikely that its all there. SCO tar has no built in compression and you obviously can't fit a 6mb file on a 1.44Mb diskette.
You can try 'tar tvf /dev/floppy' on the Centos box to see what's on the floppy.
-Steve
Steve Bergman wrote:
On Mon, 2006-02-06 at 18:29 -0700, Mace Eliason wrote:
But will cpio split the file it is to large to fit on a floppy? What about the files I have on the disc right now. I was using dos formated floppies and then ran tar to do the copy. Is it possible that I can read them using some of the suggested way?
What exact commands did you use to get it onto the floppy?
Unless you compressed the file first, I'd say its unlikely that its all there. SCO tar has no built in compression and you obviously can't fit a 6mb file on a 1.44Mb diskette.
You can try 'tar tvf /dev/floppy' on the Centos box to see what's on the floppy.
-Steve
The above command won't work because I can't mount the floppy drive. I just get you must specify the filesystem type.
If the file system type is System V I should be able to compile that into centos right?
I will try all the other ideas that you all have given me tomorrow but I don't mind spending some time tonight compiling for the old file system.
I have run make menuconfig and then navigated to sysv file system and placed an * on it then saved the ran make but it gave me a error and never finished the make.
Mace
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, 2006-02-06 at 18:55 -0700, Mace Eliason wrote:
The above command won't work because I can't mount the floppy drive. I just get you must specify the filesystem type.
No, there is no filesystem involved. This is raw io from the floppy. Think of the floppy drive itself as a 1.44MB file called /dev/floppy.
There *was* a dos filesystem on the diskettes. There is not one anymore.
There is one tar archive spread across 7 pieces of raw media which just contain a stream of 1.44 million bytes each.
-Steve
Sorry Steve your right
I did a quick test of what you suggested on my laptop because my server is down stairs. My laptop is running Ubuntu and it didn't work. I just went down and tried it on Centos and it worked :) :) I was able to copy the content of the first disk to the hard drive. So I will try the cat < /dev/fd0 >> tempfile.tar on all the discs to see if that works.
You guys are life savers.
I will let you know what happens
Steve Bergman wrote:
On Mon, 2006-02-06 at 18:55 -0700, Mace Eliason wrote:
The above command won't work because I can't mount the floppy drive. I just get you must specify the filesystem type.
No, there is no filesystem involved. This is raw io from the floppy. Think of the floppy drive itself as a 1.44MB file called /dev/floppy.
There *was* a dos filesystem on the diskettes. There is not one anymore.
There is one tar archive spread across 7 pieces of raw media which just contain a stream of 1.44 million bytes each.
-Steve
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Probably a better idea to use IRC for this - as it is real time and it won't be 50 emails waiting for everyone on the list.
Craig
On Mon, 2006-02-06 at 19:10 -0700, Mace Eliason wrote:
Sorry Steve your right
I did a quick test of what you suggested on my laptop because my server is down stairs. My laptop is running Ubuntu and it didn't work. I just went down and tried it on Centos and it worked :) :) I was able to copy the content of the first disk to the hard drive. So I will try the cat < /dev/fd0 >> tempfile.tar on all the discs to see if that works.
You guys are life savers.
I will let you know what happens
Steve Bergman wrote:
On Mon, 2006-02-06 at 18:55 -0700, Mace Eliason wrote:
The above command won't work because I can't mount the floppy drive. I just get you must specify the filesystem type.
No, there is no filesystem involved. This is raw io from the floppy. Think of the floppy drive itself as a 1.44MB file called /dev/floppy.
There *was* a dos filesystem on the diskettes. There is not one anymore.
There is one tar archive spread across 7 pieces of raw media which just contain a stream of 1.44 million bytes each.
-Steve
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, 2006-02-06 at 18:29 -0700, Mace Eliason wrote:
But will cpio split the file it is to large to fit on a floppy? What about the files I have on the disc right now. I was using dos formated floppies and then ran tar to do the copy. Is it possible that I can read them using some of the suggested way?
Using the -O parameter that Steve mentioned will allow cpio to recognize end-of-media and request a media change.
<snip>
On Mon, 2006-02-06 at 20:42 -0500, William L. Maltby wrote:
On Mon, 2006-02-06 at 18:29 -0700, Mace Eliason wrote:
But will cpio split the file it is to large to fit on a floppy? What about the files I have on the disc right now. I was using dos formated floppies and then ran tar to do the copy. Is it possible that I can read them using some of the suggested way?
Using the -O parameter that Steve mentioned will allow cpio to recognize end-of-media and request a media change.
Sheesh. I bet you figured that a corresponding one is needed for input too, didn't you? Anyway, IIRC, "-I" is the parameter. As it finishes reading each media, It prompts for the next and "klnows" when it's read all of them.
<snip>
On Mon, 2006-02-06 at 18:29 -0700, Mace Eliason wrote:
But will cpio split the file it is to large to fit on a floppy? What about the files I have on the disc right now. I was using dos formated floppies and then ran tar to do the copy. Is it possible that I can read them using some of the suggested way?
Sorry, I missed one of your posts where you explained what command line you used.
To extract, you might try:
tar xvMf /dev/floppy
or tar xvMf /dev/fdxxx
where fdxxx is any one of the devices you see when you do a ls dev/fd*
I feel your pain. It's always frustrating when the machine is 100 miles away from your office.
Its also possible that:
cat < /dev/floppy >> tempfile.tar
for each of the diskettes in order to concatenate their contents together, and then when you've done them all:
tar xvf tempfile.tar
*might* just work.
-Steve
On Mon, 2006-02-06 at 19:25 -0600, Steve Bergman wrote:
On Mon, 2006-02-06 at 20:15 -0500, William L. Maltby wrote:
I can't answer your question, but I would like to suggest an alternative that might be less work. Use cpio to make on output file and compress it onto floppy using the compress command, which I have checked also exists on CentOS (I *presume that your old UNIX doesn't have {b,g}zip. I see a reference also to pack, but it seems to be only man pages. Both of these compressions programs are very old and should be on your system.
For cpio, which does work well on SCO:
cd path_to_directory find . | cpio -ocv | compress > /dev/rfd0135ds18
and then to extract under Centos:
cd path_to_where_you_want_to_extract gunzip < /dev/floppy | cpio -idmvc
BTW, I don't think that multivolume archives work between SCO and Linux for either cpio or tar. They might work for cpio, but definitely not with compression.
Yep. In that case, compress to a work space and then use cpio command again to write it to floppy and cpio *should* prompt for media change on both output and input. On input, the result would be your compress cpio (or tar if that's what you choose) on hd.
If it works and you need multivolume, you'd have to do:
find . | cpio -ocv -O/dev/rfd0135ds18
The correct params. But I still think do a compress to a temp file and then a cpio out to the FD will be good.
BTW, use the blocking factor with cpio too. I will go *much faster. I always used some multiple of 18432 (1.44 fd). On older UNIX hardware the speed increase due to reduced system calls is really noticable.
Also note (FWIW) that SCO's tar will silently fail to back up empty directories and will not backup device files.
-Steve
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos