mounting FreeBSD partition in Linux (Fedora 14)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
What is actually happening here ?

I have FreeBSD (8.2 upgraded from original 8.1) on /dev/sda2.

I do these entries from Fedora 14.

# cfdisk
                             Disk Drive: /dev/sda
...
   Name        Flags   Part Type  FS Type          [Label]        Size (MB)
----------------------------------------------------------------------------------------------------
   sda1                    Primary            ntfs
        41943.13
   sda2        Boot     Primary             ufs
     15002.92
   sda3                    Primary            ext4
       15002.92
   sda5                    Logical            swap
         3003.68
   sda6                    Logical             ext3       [backup]
      5999.62
   sda7                    Logical             ext4       [Fedora]
     15002.92

# grep UFS /boot/config-2.6.35.11-83.fc14.i686
CONFIG_UFS_FS=m
# CONFIG_UFS_FS_WRITE is not set
# CONFIG_UFS_DEBUG is not set

# cat /proc/filesystems |grep -i ufs
ufs

# lsmod |grep -i ufs
ufs                    56786  0

# mount -t auto /dev/sda2 /media/
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
      missing codepage or helper program, or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

# dmesg |tail
...
[170746.287197] ufs_read_super: bad magic number
[170949.612767] ufs_read_super: bad magic number
[170974.503724] ufs_read_super: bad magic number
[171012.600483] ufs was compiled with read-only support, can't be
mounted as read-write
[171043.129655] ufs was compiled with read-only support, can't be
mounted as read-write
[171872.818069] ufs was compiled with read-only support, can't be
mounted as read-write

# man mount
...
     -t, --types vfstype
             The argument following the -t is used to indicate the filesystem
             type.   The  filesystem  types  which  are  currently  supported
             include: ...
             ..., ufs, ...
...
Mount options for ufs
      ufstype=value
             UFS  is a filesystem widely used in different operating systems.
             The problem are differences among implementations.  Features  of
             some  implementations are undocumented, so its hard to recognize
             the type of ufs automatically.  That's why the user must specify
             the type of ufs by mount option.  Possible values are:

             old    Old  format  of  ufs,  this  is  the  default, read only.
                    (Don't forget to give the -r option.)

             44bsd  For   filesystems   created   by   a   BSD-like    system
                    (NetBSD,FreeBSD,OpenBSD).
...

# mount -t ufs -o ro,ufstype=44bsd /dev/sda2 /media/
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
      missing codepage or helper program, or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

# mount -v -t auto /dev/sda2 /media/
mount: you didn't specify a filesystem type for /dev/sda2
      I will try type ufs
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
      missing codepage or helper program, or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

# mount -vf -t auto /dev/sda2 /media/
/dev/sda2 on /media type auto (rw)

# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda7             14420896   7413796   5541976  58% /
tmpfs                  1025992       448   1025544   1% /dev/shm
/dev/sda2             14420896   7413796   5541976  58% /media     <========

[root@localhost jb]# mount
...
/dev/sda2 on /media type auto (rw)                                 <========

# cat /proc/mounts
...
                                                                  <====== ???

# ls -al /media
total 8
drwxr-xr-x.  2 root root 4096 Mar 17 15:54 .
dr-xr-xr-x. 23 root root 4096 Mar 14 14:01 ..
-rw-r--r--   1 root root    0 Mar 14 14:01 .hal-mtab

JB
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux