Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* ufs filesystem on a ZIP disk?  (DU4.0 + linux)
@ 1997-10-02  4:00 Ethan A Merritt
  1997-10-02  4:00 ` Garen Erdoisa
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ethan A Merritt @ 1997-10-02  4:00 UTC (permalink / raw)



I'd like to carry large chunks of data between home and
work using ZIP cartridges (100 MB removable drive by Iomega).
The lab machines are DEC alphas running Digital Unix.
The home machine is running Redhat 4.2.
The only filesystem type they both claim to support is ufs
but hey, it only takes one right?

I can create/write/read a ufs file system with normal
directories and files on the DU machine just fine,
using the ZIP_disklabel utility 
(ftp://ftp.eece.maine.edu/pub/src/alpha/util/ZIP_disklabel_1.0.tar.gz)
but when I slot the disk into a drive on the linux box it
doesn't seem to be recognized.

fdisk gives a message to the effect 
    "corrupt block will be corrected by -w"
and no list of partitions

So I shrug and try to mount the disk anyway
    mount -t ufs /dev/sdc4 /mnt/zip
Gee, it accepts the command and "df /mnt/zip" actually
gives a total/used/available block count that seems reasonable.

BUT: "ls -asl /mnt/zip" just shows an empty directory!
Where'd all my files go?  And how did df know they were
there if ls doesn't?
Furthermore, if I umount the disk again it's now totally
trashed - neither the DU nor the unix machine will accept it.
Ugh.

So what's the deal?  

Is there more than one "ufs" filesystem type?

Is there some trick to creating the filesystem in the first place?

The Redhat distribution doesn't seem to come with a mkfs.ufs
tool, so I haven't been able to try initializing the disk+filesystem
on the linux end.

Anyone know how to make this work?

Anyone know (fat chance) how to make a DU system recognize a
linux native or DOS filesystem?

Anyone have an example of a ufs filesystem acceptable to 
Redhat and willing to make a binary dump of the partition
header block[s]?

			thanks for any clues,

				Ethan A Merritt
				merritt@u.washington.edu



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ufs filesystem on a ZIP disk?  (DU4.0 + linux)
  1997-10-02  4:00 ufs filesystem on a ZIP disk? (DU4.0 + linux) Ethan A Merritt
@ 1997-10-02  4:00 ` Garen Erdoisa
  1997-10-03  4:00 ` Alan Cox
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Garen Erdoisa @ 1997-10-02  4:00 UTC (permalink / raw)



On 2 Oct 1997 15:16:30 GMT, Ethan A Merritt <merritt@u.washington.edu> wrote:
>I'd like to carry large chunks of data between home and
>work using ZIP cartridges (100 MB removable drive by Iomega).
>The lab machines are DEC alphas running Digital Unix.
>The home machine is running Redhat 4.2.
>The only filesystem type they both claim to support is ufs
>but hey, it only takes one right?
>
>I can create/write/read a ufs file system with normal
>directories and files on the DU machine just fine,
>using the ZIP_disklabel utility 
>(ftp://ftp.eece.maine.edu/pub/src/alpha/util/ZIP_disklabel_1.0.tar.gz)
>but when I slot the disk into a drive on the linux box it
>doesn't seem to be recognized.
>
>fdisk gives a message to the effect 
>    "corrupt block will be corrected by -w"
>and no list of partitions
>
>So I shrug and try to mount the disk anyway
>    mount -t ufs /dev/sdc4 /mnt/zip
>Gee, it accepts the command and "df /mnt/zip" actually
>gives a total/used/available block count that seems reasonable.
>
>BUT: "ls -asl /mnt/zip" just shows an empty directory!
>Where'd all my files go?  And how did df know they were
>there if ls doesn't?
>Furthermore, if I umount the disk again it's now totally
>trashed - neither the DU nor the unix machine will accept it.
>Ugh.
>
>So what's the deal?  
>
>Is there more than one "ufs" filesystem type?
>
>Is there some trick to creating the filesystem in the first place?
>
>The Redhat distribution doesn't seem to come with a mkfs.ufs
>tool, so I haven't been able to try initializing the disk+filesystem
>on the linux end.
>
>Anyone know how to make this work?
>
>Anyone know (fat chance) how to make a DU system recognize a
>linux native or DOS filesystem?
>
>Anyone have an example of a ufs filesystem acceptable to 
>Redhat and willing to make a binary dump of the partition
>header block[s]?
>
>			thanks for any clues,
>
>				Ethan A Merritt
>				merritt@u.washington.edu

Just a thought:
On the unix side I'd try this:

tar -cvf /dev/zipdisk /somedirectory/with/my/files

On the linux side I'd try this:

cd /somedirectory
tar -xvf /dev/zipdisk

And reverse the process for the other direction.

By the way, doing this *will* destroy any filesystem you had on such
a zip disk if any, so please use a blank zip disk that is well and truely 
marked for this purpose.

Regards
Garen

-- 
------------------------------------------------------------------------
|<Garen Erdoisa> scamper@trisk.com  | Any sufficiently advanced virtual| 
|               gerdoisa@micron.net | reality is indistinguishable     |
| ! ! ! My opinions are mine ! ! !  | from reality. --==*> Me          |
------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ufs filesystem on a ZIP disk?  (DU4.0 + linux)
  1997-10-02  4:00 ufs filesystem on a ZIP disk? (DU4.0 + linux) Ethan A Merritt
  1997-10-02  4:00 ` Garen Erdoisa
  1997-10-03  4:00 ` Alan Cox
@ 1997-10-03  4:00 ` Mark Gelinas
  1997-10-09  4:00 ` Nikola Milutinovic
  3 siblings, 0 replies; 5+ messages in thread
From: Mark Gelinas @ 1997-10-03  4:00 UTC (permalink / raw)



In article <610dse$11lk$1@nntp6.u.washington.edu> merritt@u.washington.edu (Ethan A Merritt) writes:

[ Want to use 'ufs' filesystem to transport data between DIGITAL UNIX
  machines at work and RedHat Linux 4.2 at home, using ZIP disks.
  However, all attempts fail. Why? Solutions? ]

OK. Forgive my naming, not sure it I am 100% accurate on these...

The 'ufs' supported by Linux is the Sun 'UNIX file system', while
Digital uses the 'ULTRIX file system'. So unfortunately, they are
different. I don't believe there are any UNIX filesystems common
to both.

If the DU systems have the "DOS tools" subset on them (OSFDOSTOOLS4xx)
you may be able to mount and use a DOS filesystem. DU uses 'mformat'
to format the disk, then 'mcopy', 'mdir', ... (you get the idea).
Only unknown is if DU can handle a filesystem that large.

See the mtools(1) man page for details on using the tools.

The other choice is to dump the data as a tar file to the raw device,
then untar it on the other machine. I have done this to move data on
other operating systems; you should have no problems.

MarkG-- 
Mark Gelinas                         Digital Equipment Corporation 
EMail: gelinas@zk3.dec.com           110 Spit Brook Road, ZKO3-3/V08
Phone: +1 (603) 884-1511             Nashua, NH 03062-2698  USA



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ufs filesystem on a ZIP disk?  (DU4.0 + linux)
  1997-10-02  4:00 ufs filesystem on a ZIP disk? (DU4.0 + linux) Ethan A Merritt
  1997-10-02  4:00 ` Garen Erdoisa
@ 1997-10-03  4:00 ` Alan Cox
  1997-10-03  4:00 ` Mark Gelinas
  1997-10-09  4:00 ` Nikola Milutinovic
  3 siblings, 0 replies; 5+ messages in thread
From: Alan Cox @ 1997-10-03  4:00 UTC (permalink / raw)



In article <610dse$11lk$1@nntp6.u.washington.edu>,
Ethan A Merritt <merritt@u.washington.edu> wrote:
>Is there more than one "ufs" filesystem type?

There are about 5 UFS types, there are two endiannesses of it and then
there are about 20 different partitioning schemes. A far saner way to do 
this is to tar direct onto the zip drive and untar the other end or use
"mtools" on Digital Unix

Alan

-- 
Alan Cox, <Alan.Cox@linux.org>	| @'   
I get 250Mbytes of email a year	| |
so don't expect a reply.	|/'
--------------------------------'



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ufs filesystem on a ZIP disk?  (DU4.0 + linux)
  1997-10-02  4:00 ufs filesystem on a ZIP disk? (DU4.0 + linux) Ethan A Merritt
                   ` (2 preceding siblings ...)
  1997-10-03  4:00 ` Mark Gelinas
@ 1997-10-09  4:00 ` Nikola Milutinovic
  3 siblings, 0 replies; 5+ messages in thread
From: Nikola Milutinovic @ 1997-10-09  4:00 UTC (permalink / raw)



Ethan A Merritt wrote:
> 
> I'd like to carry large chunks of data between home and
> work using ZIP cartridges (100 MB removable drive by Iomega).
> The lab machines are DEC alphas running Digital Unix.
> The home machine is running Redhat 4.2.
> The only filesystem type they both claim to support is ufs
> but hey, it only takes one right?
> 

Sorry, there are several *UFS* specifications. As far as I know, DEC OSF
UFS and Linux UFS are not compatibile. Try using MS-DOS FS or CDFS.
Those are standard (I'm not sure CDFS would work, but...).

Nix.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1997-10-09  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-10-02  4:00 ufs filesystem on a ZIP disk? (DU4.0 + linux) Ethan A Merritt
1997-10-02  4:00 ` Garen Erdoisa
1997-10-03  4:00 ` Alan Cox
1997-10-03  4:00 ` Mark Gelinas
1997-10-09  4:00 ` Nikola Milutinovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox