>
> I have a freebsd system.
> In my computer /dev/sda10 is a freebsd slice.
>
> I use mount -t ufs /dev/sda10 /tmp
> It fail.
>
> mount: wrong fs type, bad option, bad superblock on /dev/sda10,
> missing codepage or helper program, or other error
> In some cases useful info is found in syslog - try
> dmesg | tail or so
>
> How can i mount it?
Try this (as root):
# mount -t auto /dev/sda10 /tmp
If it does not work, give us unedited displays of:
# cat /etc/fstab
# df
# mount
# mount -vd -t auto /dev/sda10 /tmp
Btw, please give proper Subject next time, "unknown" is a turn-off.
JB
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
03-17-2011, 09:36 AM
JB
(unknown)
xinyou yan <yxy.716 <at> gmail.com> writes:
>
> I have a freebsd system.
> In my computer /dev/sda10 is a freebsd slice.
>
> I use mount -t ufs /dev/sda10 /tmp
> It fail.
> ...
Are you sure about that device name /dev/sda10 ?
Have you configured that machine or somebody else ?
This is a FreeBSD Handbook.
18.2 Device Names
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-naming.html
JB
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
03-17-2011, 03:39 PM
Tom H
(unknown)
On Thu, Mar 17, 2011 at 6:36 AM, JB <jb.1234abcd@gmail.com> wrote:
> xinyou yan <yxy.716 <at> gmail.com> writes:
>>
>> I have a freebsd system.
>> In my computer * /dev/sda10 is a freebsd slice.
>>
>> I use mount -t ufs /dev/sda10 /tmp
>> It fail.
>
> Are you sure about that device name /dev/sda10 ?
> This is a FreeBSD Handbook.
> 18.2 Device Names
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-naming.html
To JB: Those device names are valid when booted from a BSD kernel not
a Linux one.
To OP: (You can check that Fedora is recognizing the FreeBSD disk with
"dmesg | grep bsd" but it should be detected by default)
I've never mounted a FreeBSD slice that was on a partition of a Linux
disk so I'm not sure how that'll work.
With a separate disk with one ufs partition and a few slices, display
the ufs slices on Fedora with
fdisk /dev/sda
b
p
The ufs partition will be sda1 and slice a will be sda5, slice b will
be sda6, etc.
You then have to pass the options below when mounting (for slice a)
mount -t ufs -o ro,ufstype=ufs2 /dev/sda5 /path/to/mount/point
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
03-17-2011, 04:55 PM
JB
(unknown)
Tom H <tomh0665 <at> gmail.com> writes:
> ...
> To OP: (You can check that Fedora is recognizing the FreeBSD disk with
> "dmesg | grep bsd" but it should be detected by default)
>
> I've never mounted a FreeBSD slice that was on a partition of a Linux
> disk so I'm not sure how that'll work.
>
> With a separate disk with one ufs partition and a few slices, display
> the ufs slices on Fedora with
> fdisk /dev/sda
> b
> p
>
> The ufs partition will be sda1 and slice a will be sda5, slice b will
> be sda6, etc.
>
> You then have to pass the options below when mounting (for slice a)
> mount -t ufs -o ro,ufstype=ufs2 /dev/sda5 /path/to/mount/point
Thanks Tom.
Here is how it worked for me.
# fdisk -l /dev/sda
Disk /dev/sda: 160.0 GB, 160041885696 bytes
240 heads, 63 sectors/track, 20673 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa24da24d
Device Boot Start End Blocks Id System
/dev/sda1 63 81920159 40960048+ 7 HPFS/NTFS
/dev/sda2 * 81920160 111222719 14651280 a5 FreeBSD
/dev/sda3 111222720 140525279 14651280 83 Linux
/dev/sda4 140525280 246017519 52746120 5 Extended
/dev/sda5 140525343 146391839 2933248+ 82 Linux swap / Solaris
/dev/sda6 146391903 158109839 5858968+ 83 Linux
/dev/sda7 158109903 187412399 14651248+ 83 Linux
/dev/sda8 187412463 216714959 14651248+ 83 Linux
/dev/sda9 216715023 246017519 14651248+ 83 Linux
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): b
Reading disklabel of /dev/sda2 at sector 81920161.
# ls -al /media
total 64
drwxr-xr-x 20 root root 512 Mar 2 23:36 .
dr-xr-xr-x. 23 root root 4096 Mar 14 14:01 ..
drwxr-xr-x 2 root root 1024 Mar 2 23:04 bin
drwxr-xr-x 8 root root 1024 Mar 2 22:57 boot
drwxr-xr-x 2 root root 512 Nov 28 01:32 cdrom
lrwxr-xr-x 1 root root 10 Nov 28 01:37 compat -> usr/compat
-r--r--r-- 1 root root 6200 Mar 2 23:04 COPYRIGHT
-rw-r--r-- 2 root root 798 Mar 2 23:04 .cshrc
...
And that stuff above is my FreeBSD dir.
OK.
But, the stuff I documented in a later thread under "Re: FreeBSD Drive Support
??" should not be allowed.
JB
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
03-17-2011, 05:37 PM
Joe Zeff
(unknown)
On 03/17/2011 10:55 AM, JB wrote:
> Device Boot Start End Blocks Id System
> /dev/sda1 63 81920159 40960048+ 7 HPFS/NTFS
> /dev/sda2 * 81920160 111222719 14651280 a5 FreeBSD
> /dev/sda3 111222720 140525279 14651280 83 Linux
> /dev/sda4 140525280 246017519 52746120 5 Extended
> /dev/sda5 140525343 146391839 2933248+ 82 Linux swap / Solaris
> /dev/sda6 146391903 158109839 5858968+ 83 Linux
> /dev/sda7 158109903 187412399 14651248+ 83 Linux
> /dev/sda8 187412463 216714959 14651248+ 83 Linux
> /dev/sda9 216715023 246017519 14651248+ 83 Linux
This shows 9 partitions, but you're mounting /dev/sda10. How are you
managing this?
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
The device label /dev/sda10 is real and mounted (it is the FreeBSD "a" slice).
I could have put it in /etc/fstab to be boot auto mounted, I guess.
Now, what is going to happen if I need a new Linux partition ?
According to 'fdisk -l /dev/sda' anything after /dev/sda9 is for grabs.
So ... can I take /dev/sda10 ? Or should it be /dev/sda15 (after FreeBSD
slices /dev/sda10 thru /dev/sda14) ?
JB
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
03-17-2011, 06:05 PM
xinyou yan
(unknown)
2011/3/17 JB <jb.1234abcd@gmail.com>:
> xinyou yan <yxy.716 <at> gmail.com> writes:
>
>>
>> I have a freebsd system.
>> In my computer * /dev/sda10 is a freebsd slice.
>>
>> I use mount -t ufs /dev/sda10 /tmp
>> It fail.
>> ...
>
> Are you sure about that device name /dev/sda10 ?
Freebsd need the primary partition . Then it divide into 5 slice
/dev/sda10 is one of it
> Have you configured that machine or somebody else ?
>
> This is a FreeBSD Handbook.
> 18.2 Device Names
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-naming.html
>
> JB
>
>
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
03-17-2011, 07:03 PM
Tom H
(unknown)
On Thu, Mar 17, 2011 at 1:55 PM, JB <jb.1234abcd@gmail.com> wrote:
> Tom H <tomh0665 <at> gmail.com> writes:
>> You then have to pass the options below when mounting (for slice a)
>> mount -t ufs -o ro,ufstype=ufs2 /dev/sda5 /path/to/mount/point
>
> Thanks Tom.
Thanks. So Linux starts numbering BSD slices after it's done with its
own partitions.
I presume that if you create sda10, the slices'll start at sda11...
> But, the stuff I documented in a later thread under "Re: FreeBSD Drive Support
> ??" should not be allowed.
I assume that you're referring to:
<begin>
# mount -vf -t auto /dev/sda2 /media/
/dev/sda2 on /media type auto (rw)
# df
Filesystem 1K-blocks Used Available Use% Mounted on
...
/dev/sda2 14420896 7413796 5541976 58% /media
# mount
...
/dev/sda2 on /media type auto (rw)
# 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
</end>
I'd say that your mount and df commands are confused given that the
only thing in "/media" after the mount is ".hal-mtab". Bug?
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
"fdisk -l" sees the ufs partition as sda2 but doesn't see the slices on it.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
03-17-2011, 07:45 PM
JB
(unknown)
Tom H <tomh0665 <at> gmail.com> writes:
>
> On Thu, Mar 17, 2011 at 1:55 PM, JB <jb.1234abcd <at> gmail.com> wrote:
> > Tom H <tomh0665 <at> gmail.com> writes:
>
> >> You then have to pass the options below when mounting (for slice a)
> >> mount -t ufs -o ro,ufstype=ufs2 /dev/sda5 /path/to/mount/point
> >
> > Thanks Tom.
>
> You're welcome.
>
> > Here is how it worked for me.
> >
> > # fdisk -l /dev/sda
> > /dev/sda1 * * * * * * *63 * *81920159 * *40960048+ * 7 *HPFS/NTFS
> > /dev/sda2 * * * *81920160 * 111222719 * *14651280 * a5 *FreeBSD
> > /dev/sda3 * * * 111222720 * 140525279 * *14651280 * 83 *Linux
> > /dev/sda4 * * * 140525280 * 246017519 * *52746120 * *5 *Extended
> > /dev/sda5 * * * 140525343 * 146391839 * * 2933248+ *82 *Linux swap/Solaris
> > /dev/sda6 * * * 146391903 * 158109839 * * 5858968+ *83 *Linux
> > /dev/sda7 * * * 158109903 * 187412399 * *14651248+ *83 *Linux
> > /dev/sda8 * * * 187412463 * 216714959 * *14651248+ *83 *Linux
> > /dev/sda9 * * * 216715023 * 246017519 * *14651248+ *83 *Linux
> >
> > # fdisk /dev/sda
> > Command (m for help): b
> > BSD disklabel command (m for help): p
> > *a: 81920160 *82942111 * 1021952 * * 4.2BSD * * * *0 * * 0 * * 0
> > *b: 82942112 *90837066 * 7894955 * * * swap
> > *c: 81920160 *111222719 *29302560 * * unused * * * *0 * * 0
> > *d: 90837067 *92842058 * 2004992 * * 4.2BSD * * * *0 * * 0 * * 0
> > *e: 92842059 *93849674 * 1007616 * * 4.2BSD * * * *0 * * 0 * * 0
> > *f: 93849675 *111222719 *17373045 * * 4.2BSD * * * *0 * * 0 * * 0
> >
> > # mount -t ufs -o ro,ufstype=ufs2 /dev/sda10 /media
> >
> > # mount
> >...
> > /dev/sda10 on /media type ufs (ro,ufstype=ufs2)
> >
> > # ls -al /media
> >...
> > drwxr-xr-x * 2 root root 1024 Mar *2 23:04 bin
> > drwxr-xr-x * 8 root root 1024 Mar *2 22:57 boot
> > ...
>
> Thanks. So Linux starts numbering BSD slices after it's done with its
> own partitions.
>
> I presume that if you create sda10, the slices'll start at sda11...
> ...
Yes. See results below.
> ...
> > But, the stuff I documented in a later thread under "Re: FreeBSD Drive
> > Support ??" should not be allowed.
>
> I assume that you're referring to:
>
> <begin>
> # mount -vf -t auto /dev/sda2 /media/
> /dev/sda2 on /media type auto (rw)
>
> # df
> Filesystem 1K-blocks Used Available Use% Mounted on
> ...
> /dev/sda2 14420896 7413796 5541976 58% /media
>
> # mount
> ...
> /dev/sda2 on /media type auto (rw)
>
> # 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
> </end>
>
> I'd say that your mount and df commands are confused given that the
> only thing in "/media" after the mount is ".hal-mtab". Bug?
Yes.
And here are the results, with comments.
While having that /dev/sda10 (FreeBSD slice) mounted as above, I used cfdisk
and added /dev/sda10 Linux partition (right after /dev/sda9 of course).
To my surprise, I discovered that after that df and mount do not show that
FreeBSD /dev/sda10 mounted partition ! Magically disappeared :-)
What would have happened (as I suggested it previously) if I put that FreeBSD
/dev/sda10 in /etc/fstab ?
That new Linux /dev/sda10 partition would be auto mounted at that mount point,
which would presumably be a source of data for some system or user app ...
Let me see what happens when I reboot my machine with the new /dev/sda10
Linux partition.
Here are the results.
# fdisk -l /dev/sda
...
Device Boot Start End Blocks Id System
/dev/sda1 63 81920159 40960048+ 7 HPFS/NTFS
/dev/sda2 * 81920160 111222719 14651280 a5 FreeBSD
/dev/sda3 111222720 140525279 14651280 83 Linux
/dev/sda4 140525280 255785039 57629880 5 Extended
/dev/sda5 140525343 146391839 2933248+ 82 Linux swap / Solaris
/dev/sda6 146391903 158109839 5858968+ 83 Linux
/dev/sda7 158109903 187412399 14651248+ 83 Linux
/dev/sda8 187412463 216714959 14651248+ 83 Linux
/dev/sda9 216715023 246017519 14651248+ 83 Linux
/dev/sda10 246017583 255785039 4883728+ 83 Linux
Everything else could be done as previously with FreeBSD slice mount, but this
time with /dev/sda11 (tested).
JB
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines