Re: fsck_ext2fs problems

2005-07-05 Thread RW
On Monday 04 July 2005 17:18, Jaap Boender wrote:
> I'd like to share a filesystem on the same computer between FreeBSD and
> Linux, and as it seems that FreeBSD supports ext2 better than Linux does
> ufs(2), I've created an ext2 filesystem. 

If I were you I'd create an ext3 partion from LInux - this is ext2 with 
jounalling. fsck_ext2fs can synchronized the partition with it's journal, and 
ext3 can then be mounted as ext2  by FreeBSD.

FreeBSD defaults to mounting ext2 synchronously which is slow, but reliable. 
On the Linux side ext3 is a good enough filesystem for everyday use.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: fsck_ext2fs problems

2005-07-05 Thread Giorgos Keramidas
On 2005-07-05 11:36, Alex Zbyslaw <[EMAIL PROTECTED]> wrote:
>Jaap Boender wrote:
>> I'd like to share a filesystem on the same computer between FreeBSD
>> and Linux, and as it seems that FreeBSD supports ext2 better than
>> Linux does ufs(2), I've created an ext2 filesystem. Mounting &
>> accessing Works fine, except when I try to fsck it, fsck_ext2fs fails
>> with the error message: "execve: No such file or directory". When I
>> use the e2fsck program, however, I can fsck the filesystem just fine.
>> Unfortunately, at boot time, FreeBSD wants to use fsck_ext2fs...
>>
>> A quick search on the Internet didn't show any solutions, so - does
>> anybody here know what I can do to get rid of the error message?
>
> Does Linux maybe support UFS(1) better than UFS(2)?

Not really.  The ufs support of Linux needs a bit of patching to support
all the block/fragment sizes that FreeBSD can use.  I had to patch the
kernel with the diff listed here:

http://lists.hellug.gr/pipermail/linux-greek-users/2004-November/101772.html

to force the Linux kernel to accept perfectly valid UFS1 partitions.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: fsck_ext2fs problems

2005-07-05 Thread Jaap Boender
Are you running ext2fs from Linux?  If you are running it from FreeBSD then 
try making a symlink in /sbin from fsck_ext2fs to wherever you have e2fsck 
and make sure that e2fsck will be available when fsck runs.  That almost 
certainly means it has to bee on your root partition.  (Or just copy it to 
/sbin).


Yes, copying fsck_ext2fs and e2fsck to /sbin works - I've looked in
files/fsck_ext2fs.c in the port and I noticed that it only looks for e2fsck in
/sbin - hence the execve error. Thanks for the pointer!

I got the impression that Linux doesn't support ufs2 at all, and, well, I just
trust FreeBSD's ext2 implementation more than I do Linux's ufs one ;)

Yours,

  Jaap Boender
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: fsck_ext2fs problems

2005-07-05 Thread Alex Zbyslaw

Jaap Boender wrote:


Hi all,

I'd like to share a filesystem on the same computer between FreeBSD 
and Linux,
and as it seems that FreeBSD supports ext2 better than Linux does 
ufs(2), I've
created an ext2 filesystem. Mounting & accessing Works fine, except 
when I try

to fsck it, fsck_ext2fs fails with the error message:
"execve: No such file or directory". When I use the e2fsck program, 
however,

I can fsck the filesystem just fine. Unfortunately, at boot time, FreeBSD
wants to use fsck_ext2fs...

A quick search on the Internet didn't show any solutions, so - does 
anybody

here know what I can do to get rid of the error message?


Does Linux maybe support UFS(1) better than UFS(2)?

Are you running ext2fs from Linux?  If you are running it from FreeBSD 
then try making a symlink in /sbin from fsck_ext2fs to wherever you have 
e2fsck and make sure that e2fsck will be available when fsck runs.  That 
almost certainly means it has to bee on your root partition.  (Or just 
copy it to /sbin).


If you do not want to fsck the filesystem at all at startup then set the 
sixth (last) field in /etc/fstab to 0.


--Alex



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


fsck_ext2fs problems

2005-07-05 Thread Jaap Boender

Hi all,

I'd like to share a filesystem on the same computer between FreeBSD and Linux,
and as it seems that FreeBSD supports ext2 better than Linux does ufs(2), I've
created an ext2 filesystem. Mounting & accessing Works fine, except when I try
to fsck it, fsck_ext2fs fails with the error message:
"execve: No such file or directory". When I use the e2fsck program, however,
I can fsck the filesystem just fine. Unfortunately, at boot time, FreeBSD
wants to use fsck_ext2fs...

A quick search on the Internet didn't show any solutions, so - does anybody
here know what I can do to get rid of the error message?

Thanks,

  Jaap Boender

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: where is fsck_ext2fs ?

2004-11-02 Thread Jeremy Faulkner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
FreeBsdBeni wrote:
| Hi,
|
| When trying to do an fsck on an ext2fs partition, I got an error message
| saying "fsck: exec fsck_ext2fs for /dev/ad0s3 in /sbin:/usr/sbin: No such
| file or directory". A closer look in /sbin and /usr/sbin revealed
indeed the
| absence of fsck_ext2fs. And in /usr/src/sbin there is nothing too (only
| mount_ext2fs still exists). In the portstree there is only a
readme.html file
| in sysutils/fsck_ext2fs. Where did fsck_ext2fs go to and how do I get it
| back ?
| I'm running 5.3-rc2. In my kernel I have "options ext2fs" compiled.
| Thanks !
| Beni.
%grep -e "fsck_ext2fs" /usr/ports/MOVED
sysutils/fsck_ext2fs|sysutils/e2fsprogs|2004-03-01|Better utility
So it's in sysutils/e2fsprogs now.
- --
Jeremy Faulkner <[EMAIL PROTECTED]>
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBh1VCfb0Lle2MIEIRAvXiAJ42mKBTeOMLk7etyp7oKTh4H0bXSgCfROjL
hQfjk7t3ZKFQd6nA4PsPVio=
=Ixz3
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


where is fsck_ext2fs ?

2004-11-02 Thread FreeBsdBeni
Hi,

When trying to do an fsck on an ext2fs partition, I got an error message 
saying "fsck: exec fsck_ext2fs for /dev/ad0s3 in /sbin:/usr/sbin: No such 
file or directory". A closer look in /sbin and /usr/sbin revealed indeed the 
absence of fsck_ext2fs. And in /usr/src/sbin there is nothing too (only 
mount_ext2fs still exists). In the portstree there is only a readme.html file 
in sysutils/fsck_ext2fs. Where did fsck_ext2fs go to and how do I get it 
back ?
I'm running 5.3-rc2. In my kernel I have "options ext2fs" compiled.
Thanks !
Beni.


pgpHCpaupuoWr.pgp
Description: PGP signature


Re: fsck_ext2fs

2003-02-11 Thread Cliff Sarginson
On Wed, Feb 12, 2003 at 06:11:29AM +0100, Paul A. Mayer wrote:
> 
> Hi Patrick,
> 
> Did you remember to install the e2fstools (i.e., e2fsck) from ports?
> 
> BTW:  I had an ext2 partion on my laptop (5.0-R) that I wanted to share 
> with a linux installation, which I run ocassionally on the same machine. 
>  Essentially doing what you are talking about here (running ext2 from 
> freebsd in r/w mode) trashed the ext2 partion so bad that I had to newfs 
> it in the end.  (Luckily it was just a means to move data which was 
> backed up elsewhere.)  While that partition was still "living", I had to 
> boot to linux to fsck it manually (e.g., after a system crash or the 
> like).  Otherwise, I had it marked 'noauto' in fstab, and mounted it 
> manually as needed.
> 
> Now, believe it or not, I'm using a FAT32 partition to do the same data 
> exchange, (reasoning that both OS's support for FAT32 is better than 
> their respective support for ext2 or ufs).  I've had no problems after 
> making that change.
> 
I think there are many people who successfully use EXT2 r/w on FreeBSD,
and many who don't. The comment in LINT is very cagey about it. It is
undoubtedly true that the safest file system to use for data exchange on
a single machine between the 2 systems is a DOS/VFAT one.

-- 
Regards
   Cliff Sarginson 
   The Netherlands

[ This mail has been checked as virus-free ]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: fsck_ext2fs

2003-02-11 Thread Paul A. Mayer

Hi Patrick,

Did you remember to install the e2fstools (i.e., e2fsck) from ports?

BTW:  I had an ext2 partion on my laptop (5.0-R) that I wanted to share 
with a linux installation, which I run ocassionally on the same machine. 
 Essentially doing what you are talking about here (running ext2 from 
freebsd in r/w mode) trashed the ext2 partion so bad that I had to newfs 
it in the end.  (Luckily it was just a means to move data which was 
backed up elsewhere.)  While that partition was still "living", I had to 
boot to linux to fsck it manually (e.g., after a system crash or the 
like).  Otherwise, I had it marked 'noauto' in fstab, and mounted it 
manually as needed.

Now, believe it or not, I'm using a FAT32 partition to do the same data 
exchange, (reasoning that both OS's support for FAT32 is better than 
their respective support for ext2 or ufs).  I've had no problems after 
making that change.


/Paul

Patrick Quealy wrote:
I compled ext2 support into a kernel and I am able to mount and read an 
ext2 partition fine.  However, running fsck -t ext2fs (or fsck_ext2fs) 
on it results in the error message:

** /dev/ad1s1
BAD SUPER BLOCK: MAGIC NUMBER WRONG
ioctl (GCINFO): Operation not supported by device
/dev/ad1s1: can't read disk label

Same for the other partition on the disk.  Both are type 0x83/linux native.

Of course the need to fsck will arise eventually, but even if it did 
not, I'm unable to include the ext2 partition in my fstab until the 
system will be able to run fsck_ext2fs successfully on boot.

Thanks in advance for any help.

--Patrick




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



fsck_ext2fs

2003-02-11 Thread Patrick Quealy
I compled ext2 support into a kernel and I am able to mount and read 
an ext2 partition fine.  However, running fsck -t ext2fs (or 
fsck_ext2fs) on it results in the error message:

** /dev/ad1s1
BAD SUPER BLOCK: MAGIC NUMBER WRONG
ioctl (GCINFO): Operation not supported by device
/dev/ad1s1: can't read disk label

Same for the other partition on the disk.  Both are type 0x83/linux native.

Of course the need to fsck will arise eventually, but even if it did 
not, I'm unable to include the ext2 partition in my fstab until the 
system will be able to run fsck_ext2fs successfully on boot.

Thanks in advance for any help.

--Patrick


--
Q -- [EMAIL PROTECTED] -- http://www.quealy.org
GPG:  pgp.mit.edu, ID 0xFCCBDDBD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message