* UFS File System?
@ 1996-03-05 21:37 raster
1997-03-06 16:49 ` Michal Jaegermann
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: raster @ 1996-03-05 21:37 UTC (permalink / raw)
Has anyone had any luck using the UFS filesystem? I'm trying to get
to either my Digital UNIX 3.2 or 4.0 CDs, and I know that at least
the 4.0 one is fromatted UFS, but when I try and mount it (with -t
ufs), it tells me that either the superblock is bad, wrong
filesystem, or that I've got too many things mounted. Well, I'm
pretty sure the Superblock is fine, since it boots up fine when you
try and install Digital UNIX, and I don't have anything else mounted
except for my root ext2 partition and my /winnt vfat partition.
Origitanally I had thought they were formatted AdvFS, but upon
booting to the CD and typing mount it informed me that it was indeed
UFS.
Anybody have any ideas?
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: UFS File System?
1996-03-05 21:37 raster
@ 1997-03-06 16:49 ` Michal Jaegermann
1997-03-06 18:06 ` Wintermute
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Michal Jaegermann @ 1997-03-06 16:49 UTC (permalink / raw)
raster@act.net wrote:
>
> Has anyone had any luck using the UFS filesystem?
Unfortunately there is no "the UFS filesystem" but a whole pile
variations on the theme which differ enough not to be totally
compatible. Whatever you will find in Linux sources was done
by people with some particular variant on hand and it may, or may
not, work "as is" with some other instance of the beast.
If you can dig out low-level information about what you are really
trying to read it should be possible for you to modify UFS file system
driver for what you have on hand.
Michal
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: UFS File System?
1996-03-05 21:37 raster
1997-03-06 16:49 ` Michal Jaegermann
@ 1997-03-06 18:06 ` Wintermute
1997-03-06 23:40 ` Maurice W. Hilarius
1997-03-24 17:42 ` jestabro
3 siblings, 0 replies; 7+ messages in thread
From: Wintermute @ 1997-03-06 18:06 UTC (permalink / raw)
On Tue, 5 Mar 1996 raster@act.net wrote:
> Has anyone had any luck using the UFS filesystem? I'm trying to get
> to either my Digital UNIX 3.2 or 4.0 CDs, and I know that at least
> the 4.0 one is fromatted UFS, but when I try and mount it (with -t
> ufs), it tells me that either the superblock is bad, wrong
> filesystem, or that I've got too many things mounted. Well, I'm
Does your kernel have BSD style disk label support? I think you need it.
I'm not sure if that is the problem though.
-Brendan
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: UFS File System?
@ 1997-03-06 20:07 David Mosberger-Tang
0 siblings, 0 replies; 7+ messages in thread
From: David Mosberger-Tang @ 1997-03-06 20:07 UTC (permalink / raw)
Note that aboot can boot from a DEC Unix filesystem (at least, it
could from a v3.x filesystem and I have no reason to believe that v4.x
breaks this). So there should be enough info there to get the
kernel's UFS going with a DEC Unix filesystem.
--david
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: UFS File System?
1996-03-05 21:37 raster
1997-03-06 16:49 ` Michal Jaegermann
1997-03-06 18:06 ` Wintermute
@ 1997-03-06 23:40 ` Maurice W. Hilarius
1997-03-06 23:54 ` D. Champion
1997-03-24 17:42 ` jestabro
3 siblings, 1 reply; 7+ messages in thread
From: Maurice W. Hilarius @ 1997-03-06 23:40 UTC (permalink / raw)
At 09:37 hrs. 03-05-96 +0000, you wrote:
>
> Has anyone had any luck using the UFS filesystem? I'm trying to get
>to either my Digital UNIX 3.2 or 4.0 CDs, and I know that at least
>the 4.0 one is fromatted UFS, but when I try and mount it (with -t
>ufs), it tells me that either the superblock is bad, wrong
>filesystem, or that I've got too many things mounted. Well, I'm
>pretty sure the Superblock is fine, since it boots up fine when you
>try and install Digital UNIX, and I don't have anything else mounted
>except for my root ext2 partition and my /winnt vfat partition.
>
> Origitanally I had thought they were formatted AdvFS, but upon
>booting to the CD and typing mount it informed me that it was indeed
>UFS.
>
>Anybody have any ideas?
Probably the UFS supported here is Sun type. Digital UFS is different.
Sorry...
Cheers,
Maurice
+--------------------------------------------------------+
| Maurice Hilarius | The Past is History |
| President | The Future is Mystery |
| Hard Data Ltd. | Today is a Gift |
| Phone/FAX (403) 456-1510 | That is why they call it |
| email:harddata@bigfoot.com | The Present |
+--------------------------------------------------------+
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: UFS File System?
1997-03-06 23:40 ` Maurice W. Hilarius
@ 1997-03-06 23:54 ` D. Champion
0 siblings, 0 replies; 7+ messages in thread
From: D. Champion @ 1997-03-06 23:54 UTC (permalink / raw)
>> Has anyone had any luck using the UFS filesystem? I'm trying to get
>>to either my Digital UNIX 3.2 or 4.0 CDs, and I know that at least
>>the 4.0 one is fromatted UFS, but when I try and mount it (with -t
>>ufs), it tells me that either the superblock is bad, wrong
>>filesystem, or that I've got too many things mounted. Well, I'm
>>pretty sure the Superblock is fine, since it boots up fine when you
>>try and install Digital UNIX, and I don't have anything else mounted
>>except for my root ext2 partition and my /winnt vfat partition.
>>
>> Origitanally I had thought they were formatted AdvFS, but upon
>>booting to the CD and typing mount it informed me that it was indeed
>>UFS.
>>
>Probably the UFS supported here is Sun type. Digital UFS is different.
The UFS supported by Linux ufs.o is the Sun UFS. Still, I get
similar errors trying to read a Sun-formatted UFS disk that my i386
Linux piece can read fine. Haven't had time to debug yet.
-D.
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: UFS File System?
1996-03-05 21:37 raster
` (2 preceding siblings ...)
1997-03-06 23:40 ` Maurice W. Hilarius
@ 1997-03-24 17:42 ` jestabro
3 siblings, 0 replies; 7+ messages in thread
From: jestabro @ 1997-03-24 17:42 UTC (permalink / raw)
>>> raster@act.net said:
>
> Has anyone had any luck using the UFS filesystem? I'm trying to get
> to either my Digital UNIX 3.2 or 4.0 CDs, and I know that at least
> the 4.0 one is fromatted UFS, but when I try and mount it (with -t
> ufs), it tells me that either the superblock is bad, wrong
> filesystem, or that I've got too many things mounted. Well, I'm
> pretty sure the Superblock is fine, since it boots up fine when you
> try and install Digital UNIX, and I don't have anything else mounted
> except for my root ext2 partition and my /winnt vfat partition.
>
> Origitanally I had thought they were formatted AdvFS, but upon
> booting to the CD and typing mount it informed me that it was indeed
> UFS.
>
> Anybody have any ideas?
Well, I had the need, and found that the following patches to 2.1.29 did
the trick for me. Note that these are *not* pretty, and prolly should be
reworked to be (partially) done via configuration options, but they worked.
I don't think they'll allow access to DU UFS on any other platform, just
Alpha, but that'd be fixed by changing the activation of the __alpha__ code
in ufs_inode.c to a configuration option instead. Also, the header file
patches could be made such that no conditional compilation is required.
Somebody want to try formalizing these changes? I'll be happy to test 'em...
BTW, I configured both the BSD style and SUN style UFS options.
Good luck.
--Jay++
-------------------------------------------------------------------------------
American Non Sequitur Society: we don't make sense, but we do like pizza...
Jay A Estabrook Alpha Migration Tools - LINUX Project
Digital Equipment Corp. (508) 952-4202 or (DTN) 227-4202
151 Taylor Street - TAY1-2 enet: jestabro@amt.tay1.dec.com
Littleton, MA 01460-1407 decnet: tallis::jestabro
-------------------------------------------------------------------------------
diff -urP old/fs/ufs/ufs_inode.c new/fs/ufs/ufs_inode.c
--- old/fs/ufs/ufs_inode.c Sat Nov 30 06:22:19 1996
+++ new/fs/ufs/ufs_inode.c Sun Mar 23 11:40:41 1997
@@ -197,8 +197,16 @@
* for the rw code, we may want to mark these inodes as read-only.
* XXX - bug Linus to make i_size a __u64 instead of a __u32.
*/
- inode->u.ufs_i.i_size = ((__u64)(ufs_swab32(ufsip->ui_size.val[0]))<<32) |
- (__u64)(ufs_swab32(ufsip->ui_size.val[1]));
+#ifdef __alpha__
+ inode->u.ufs_i.i_size =
+ ((__u64)(ufs_swab32(ufsip->ui_size.val[1]))<<32) |
+ (__u64)(ufs_swab32(ufsip->ui_size.val[0]));
+#else /* __alpha__ */
+ inode->u.ufs_i.i_size =
+ ((__u64)(ufs_swab32(ufsip->ui_size.val[0]))<<32) |
+ (__u64)(ufs_swab32(ufsip->ui_size.val[1]));
+#endif /* __alpha__ */
+
/* KRR - Just type cast inode->u.ufs_i.i_size into off_t and
* worry about overflow later
*/
diff -urP old/include/linux/ufs_fs.h new/include/linux/ufs_fs.h
--- old/include/linux/ufs_fs.h Thu Feb 6 05:53:33 1997
+++ new/include/linux/ufs_fs.h Sun Mar 23 11:07:15 1997
@@ -109,7 +109,11 @@
__u32 fs_dblkno; /* offset of first data after cg */
__u32 fs_cgoffset; /* cylinder group offset in cylinder */
__u32 fs_cgmask; /* used to calc mod fs_ntrak */
+#ifdef __alpha__
+ __s32 fs_time;
+#else /* __alpha__ */
time_t fs_time; /* last time written */
+#endif /* __alpha__ */
__u32 fs_size; /* number of blocks in fs */
__u32 fs_dsize; /* number of data blocks in fs */
__u32 fs_ncg; /* number of cylinder groups */
@@ -172,7 +176,11 @@
__u8 fs_fsmnt[MAXMNTLEN]; /* name mounted on */
/* these fields retain the current block allocation info */
__u32 fs_cgrotor; /* last cg searched */
+#ifdef __alpha__
+ __u32 fs_csp[MAXCSBUFS]; /* list of fs_cs info buffers */
+#else /* __alpha__ */
struct ufs_csum * fs_csp[MAXCSBUFS]; /* list of fs_cs info buffers */
+#endif /* __alpha__ */
__u32 fs_cpc; /* cyl per cycle in postbl */
__u16 fs_opostbl[16][8]; /* old rotation block list head */
__s32 fs_sparecon[55]; /* reserved for future constants */
-------------------------------------------------------------------------------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1997-03-24 17:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-06 20:07 UFS File System? David Mosberger-Tang
-- strict thread matches above, loose matches on Subject: below --
1996-03-05 21:37 raster
1997-03-06 16:49 ` Michal Jaegermann
1997-03-06 18:06 ` Wintermute
1997-03-06 23:40 ` Maurice W. Hilarius
1997-03-06 23:54 ` D. Champion
1997-03-24 17:42 ` jestabro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox