*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm trying to mount my linux system under BSD, and i've got 2 / 3 partitions fine, but /usr is being a git. It is the third partition in the extended partition on hda (hda7) however running fdisk under BSD shows no sign of it existing.
Code:
[root@trevor perl5]# fdisk /dev/ad0s3
fdisk: can't get disk parameters on /dev/ad0s3; supplying dummy ones
******* Working on device /dev/ad0s3 *******
parameters extracted from in-core disklabel are:
cylinders=1 heads=1 sectors/track=1 (1 blks/cyl)
parameters to be used for BIOS calculations are:
cylinders=1 heads=1 sectors/track=1 (1 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 131,(Linux filesystem)
start 63, size 8401932 (4102 Meg), flag 0
beg: cyl 530/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 5,(Extended DOS)
start 8401995, size 321300 (156 Meg), flag 0
beg: cyl 1023/ head 254/ sector 63;
end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
so this is the contents of the extended partition according tho BSD fdisk. partition one is /home - hda5, then it is linux swap -hda6... BUT where hda7 should be... <UNUSED> instead of an 11Gb partition! needless to say when i try to mount it, it fails with invalid argument.
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291
Rep:
ideas
I wouldn't know how to do that in freebsd. You say you have though. I decided to give FBSD a try and it's been a never looked back situation. One day I will get back to linux but I hope to find a distroa as stable, organized and steady as FBSD.
Other suggestions, try running e2fsck in linux before mounting in freebsd. Are your versions disparate? ie old version of one new of the other? That could cause big troubles.
I am not positive that linux fs support is in the generic kernel you might need to roll your own. I believe linux fs support is in the LINT file.
have you looked in the handbook?
have you tried manually mounting them with mount_ext2fs?
try something like
mount_ext2fs /dev/ad0s3 /mnt
that should tell it to mouthe the whole slice (if mountable) instead of individual partitions...(IIRC)
hmm, well i don't really know what else i could possibly do... I've already mounted partitions inside there, which are the same fs. one works one doesn't....
ohh ohh... ok just found a wwnring message dumped to my terminal:
WARNING: R/W mount of #ad/0x80002 denied due to unsupported optional features
and trying to mount it ro works! i guess i'll make do with read only, I doubt i'd want to write anything to it.... anyone want to guess what those unsupported features are? surely it's not the ext3 journal..?
I am having a similar problem, except with ext2 partitions and not ext3. On bootup the dmsg clearly shows the drive to be there: ad3: 8223MB <ST38410A> [16708/16/63] at ata1-slave UDMA66, but when trying to mount either partition, I get: mount_ext2fs: /dev/ad3s1: No such file or directory . I have also tried fsck_ext2fs and fdisk and both yielded similar results. Any help with this would be greatly appreciated.
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291
Rep:
How many partitions on the drive?
which one is ext2fs?
How many disks are attached to the machine? ad3 would indicate 4 to me.
what is the layout of the disk.
part 1 = ext2?
part 2 = swap?
part 3 = ffs?
try;
mount_ext2fs /dev/ad0sn /mnt
and sub 0 then 1 then 2 then 3 for n
what is the result?
I just tried it with all the other partions on both ad0 and ad1, but each time I got "No such file or directory". BUT if I <B>mount -t 'fs' ad# /mnt </B> I can mount the drive just fine. Still puzzled...
And no, I am not sharing swap space. I only have 1 freebsd swap partition.
helps sometimes or so i have read
it hasn't helped me
I've been hunting for a solution to the same problem for some hours now. I have to HDs (ext2 or swap) from a SUSE dist. I want to mount those under freebsd but I get "Invalid argument" errors when doing
"mount [-r] -t ext2fs /dev/ad1s1 /somedir"
By repuilding my Kernel with option EXT2FS I've managed to mount one of the 2 drives as read only in PIO mode. Obviously thats not the solution I want for my fileserver
Interstingly fdisk tells me that the Linux HDs are ad1 and ad2 although both are on the Secondary IDE Device, with the freebsd HD being ad0 as master on the Primary IDE Device. Shouldn't the Linux HDs be ad2 and ad3 ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.