LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 12-29-2002, 06:14 AM   #1
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
Linux partition doesn't exist under BSD!


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.

erm.... any suggestions?
 
Old 12-29-2002, 09:56 AM   #2
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
Type of fs?

What fs are you using?
ext2 and swap are the only currently supported. (I think)
I don't guess ext3, jfs, reiser etc. would show up...
 
Old 12-29-2002, 07:05 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
Well they are ALL ext3... that's what's getting me so much...!
 
Old 12-30-2002, 12:17 AM   #4
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
yup ext2 only right now
 
Old 12-30-2002, 03:58 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
it's always possible to mount ext3 as ext2, like i said my other two partitions that i HAVE mounted are ext3. ahh bottom...
 
Old 12-30-2002, 09:30 AM   #6
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
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)

luck

Last edited by 5amYan; 12-30-2002 at 09:42 AM.
 
Old 12-30-2002, 10:27 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
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..?
 
Old 12-30-2002, 10:31 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
ooops.... Thanks 5amYan!
 
Old 02-11-2003, 10:53 AM   #9
Slackattack
LQ Newbie
 
Registered: Feb 2003
Location: Milwaukee, Wi
Distribution: Slackware, Freebsd, WinXtraPain
Posts: 3

Rep: Reputation: 0
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.


Slack
 
Old 02-11-2003, 11:25 AM   #10
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
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?
 
Old 02-11-2003, 04:15 PM   #11
Slackattack
LQ Newbie
 
Registered: Feb 2003
Location: Milwaukee, Wi
Distribution: Slackware, Freebsd, WinXtraPain
Posts: 3

Rep: Reputation: 0
I have 2 partitions on ad3. They are both ext2fs.

ad0 = winXP
ad1 = fbsd
ad3 = ext2fs

ad3 is a slave device under a master cd-rom. Should I make ad3 the master? The other 3 (ad0,ad1,acd2) drives mount without errors.


Slack
 
Old 02-11-2003, 06:09 PM   #12
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
the result of???

Quote:
try;
Code:
mount_ext2fs /dev/ad0sn /mnt
and sub 0 then 1 then 2 then 3 for n
what is the result?
What happened with this?
Are you sharing swap space with fbsd?
Or is ti on ad3 somewhere?

Last edited by 5amYan; 02-11-2003 at 06:10 PM.
 
Old 02-11-2003, 07:35 PM   #13
Slackattack
LQ Newbie
 
Registered: Feb 2003
Location: Milwaukee, Wi
Distribution: Slackware, Freebsd, WinXtraPain
Posts: 3

Rep: Reputation: 0
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.



Slack
 
Old 02-15-2003, 11:47 AM   #14
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
Can you post your dmesg output.

And the exact output of

mount_ext2fs /dev/ad3s0 /mnt for each 0,1,2 and 3

after the s
 
Old 02-11-2004, 04:04 PM   #15
Hexren
LQ Newbie
 
Registered: Feb 2004
Location: Hamburg - Germany
Distribution: freebsd 4.9
Posts: 2

Rep: Reputation: 0
rebuilding your kernel with

"option EXT2FS"

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 ?


Hexren
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the mounting of a *BSD partition on linux work work well when rw ? kloss *BSD 3 10-08-2005 02:21 PM
Linux doesn't exist. Everyone knows Linux is an unlicensed version of Unix Megamieuwsel General 29 07-31-2005 09:40 PM
cant get xp and linux to co-exist dooker@paisley Linux - General 2 10-13-2003 07:49 AM
Choose Free BSD or Open BSD? Which one? explorer1979 *BSD 5 12-15-2002 12:26 PM
How to mount a FAT32 partition in BSD?? concoran *BSD 4 07-26-2002 06:16 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration