My FreeBSD 5.2.1-RELEASE box is being hosted remotely.
I switched from RH to FreeBSD. All my web files etc are on the second hdd in an ext2fs partition.
I have read numerous guides, manuals, etc, but have not found a solution for my problem.
I have compiled my kernel with the "option ext2fs".
Here is what happens if i try to mount the other hdd:
Code:
#mount_ext2fs /dev/ad2s2 /mnt
mount_ext2fs: /dev/ad2s2: Invalid argument
#mount -t ext2fs /dev/ad2s2 /mnt
ext2fs: /dev/ad2s2: Invalid argument
Here is all the information i could gather about the disks:
Boot message:
Code:
Aug 3 07:35:34 server1 kernel: GEOM: create disk ad0 dp=0xc4857c60
Aug 3 07:35:34 server1 kernel: ad0: 76319MB <WDC WD800BB-00DKA0> [155061/16/63] at ata0-master UDMA100
Aug 3 07:35:34 server1 kernel: GEOM: create disk ad2 dp=0xc4857960
Aug 3 07:35:34 server1 kernel: ad2: 57241MB <ST360021A> [116301/16/63] at ata1-master UDMA100
Aug 3 07:35:34 server1 kernel: Mounting root from ufs:/dev/ad0s1a
/dev listing:
Code:
ad2
ad0 ad2s1
ad0s1 ad2s2
ad0s1a ad2s3
ad0s1b ad2s4
ad0s1c ad2s5
ad0s1d ad2s6
ad0s1e ad2s7
ad0s1f
File: fstab
Code:
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s1b none swap sw 0 0
/dev/ad0s1a / ufs rw 1 1
/dev/ad0s1e /tmp ufs rw 2 2
/dev/ad0s1f /usr ufs rw 2 2
/dev/ad0s1d /var ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
/dev/ad2s2 /mnt/2 ext2fs ro,noauto 0 0
*Added by me, didn't work.
Fdisk:
Code:
Disk name: ad2 FDISK Partition Editor
DISK Geometry: 7297 cyls/255 heads/63 sectors = 117226305 sectors (57239MB)
Offset Size(ST) End Name PType Desc Subtype Flags
0 63 62 - 12 unused 0
63 96327 96389 ad2s1 4 ext2fs 131
96390 83264895 83361284 ad2s2 4 ext2fs 131
83361285 2088450 85449734 ad2s3 4 linux_swap 130
85449735 31776570 117226304 ad2s4 4 extended DOS, LBA 15
117226305 5103 117231407 - 12 unused 0
While entering fdisk i did get a message saying the geometry of my disk wasn't correct, and it would pick a better one. Could this be part of the problem?
Also I read that some versions of linux use "Magic Clusters" to create more hdd space on larger drives.
Please keep in mind i don't have physical access to the box, and only have access to FreeBSD.
Thanks in advance for any suggestions/advice.
-Tseven