Re: error when trying to mount ext2fs harddisk, wrong magic nbr??

2003-10-11 Thread Torben Brosten
After rebooting, tried again:

huey# mount -t ext2fs /dev/ad1s1 /aduni
ext2fs: #ad/0x2000a: wrong magic number 0x8b6 (expected 0xef53)
ext2fs: /dev/ad1s1: Invalid argument


I'm trying to mount an ext2fs formatted harddisk on freebsd 4-8 stable, 
but am getting an error.

huey# mkdir /aduni
huey# mount_ext2fs -o rdonly /dev/ad1s1 /aduni
mount_ext2fs: /dev/ad1s1: Invalid argument
Same error when trying: mount -t ext2fs /dev/ad1s1 /aduni
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error when trying to mount ext2fs harddisk, wrong magic nbr??

2003-10-11 Thread Torben Brosten
I'm trying to decipher the error message:

ext2fs: #ad/0x000a: wrong magic number 0x8b6 (expected 0xef53)

I've been reading

man magic
man file
but I have limited C experience. I see the references to ext2 in 
/usr/share/misc/magic, particularly:

0x43a  leshort  ^0x001 (mounted or unclean)

Since 0x8b6 is much greater than 0x43a, am I to conclude that the drive was 
umounted incorrectly? If so, is there a way to use 'file' or some other utility 
to edit the offending magic number to 0xef53?

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


Re: error when trying to mount ext2fs harddisk, wrong magic nbr??

2003-10-11 Thread Torben Brosten
After reading more man pages and the chapter Adding a Disk from UNIX System
Administration Handbook, 3rd ed. by Nemieth, Snyder, Seebass and Hein,  I 
realize that this ext2fs harddrive will best be fixed by putting back into a 
linux environment and proceeding with fdisk + fsck etc.

cheers

Torben Brosten wrote:
I'm trying to decipher the error message:

ext2fs: #ad/0x000a: wrong magic number 0x8b6 (expected 0xef53)

I've been reading

man magic
man file
but I have limited C experience. I see the references to ext2 in 
/usr/share/misc/magic, particularly:

 0x43a  leshort  ^0x001 (mounted or unclean)

Since 0x8b6 is much greater than 0x43a, am I to conclude that the drive 
was umounted incorrectly? If so, is there a way to use 'file' or some 
other utility to edit the offending magic number to 0xef53?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]