LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-04-2004, 08:36 AM   #1
tseven
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
Trouble mounting an ext2fs partition


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
 
Old 08-07-2004, 12:08 PM   #2
tseven
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Does anyone have any suggestions, comments, or ideas which might help me?

Thanks,
-Tseven
 
Old 12-13-2004, 06:12 PM   #3
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Re: Trouble mounting an ext2fs partition

Quote:
Originally posted by tseven

Code:
#mount_ext2fs /dev/ad2s2 /mnt
mount_ext2fs: /dev/ad2s2: Invalid argument

#mount -t ext2fs /dev/ad2s2 /mnt
ext2fs: /dev/ad2s2: Invalid argument
-Tseven [/B]
Where is the directory on mount??
should be /mnt/"your new made directory"

mount -t ext2fs /dev/"your device" /mnt/"your directory"
 
  


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
changed distro's, having trouble with mounting old partition icepack Linux - Newbie 3 10-12-2005 05:33 AM
trouble mounting a newly created partition tauceti38 Linux - Hardware 6 03-16-2005 04:40 AM
Trouble mounting ntfs partition. tin can Linux - General 4 12-16-2004 11:05 PM
trouble mounting fat32 partition miner Linux - Newbie 7 04-19-2004 11:23 PM
Having a bit of trouble mounting a NTFS partition... Can anyone help? drumlinuxuser Linux - Hardware 1 10-22-2003 10:01 PM

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

All times are GMT -5. The time now is 11:14 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration