(unknown)
xinyou yan
yxy.716 at gmail.com
Fri Mar 18 04:51:33 UTC 2011
I do the same with you .Where I can not mount still
fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 * 16065 92255936 46119936 7 HPFS/NTFS
/dev/sda2 92256255 459442934 183593340 f W95 Ext'd (LBA)
/dev/sda3 459442935 625126382 82841724 a5 FreeBSD
/dev/sda5 92256256 143456255 25600000 7 HPFS/NTFS
/dev/sda6 143458304 307298303 81920000 7 HPFS/NTFS
/dev/sda7 307300352 309348351 1024000 83 Linux
/dev/sda8 309350400 446566399 68608000 83 Linux
/dev/sda9 446568448 459442175 6436864 82 Linux swap / Solaris
[root at yanxinyou ~]# dmesg | grep bsd
[ 1.708559] sda3: <bsd: sda10 sda11 sda12 sda13 sda14 >
[root at yanxinyou ~]# fdisk /dev/sda
Command (m for help): b
Reading disklabel of /dev/sda3 at sector 459442936.
BSD disklabel command (m for help): p
8 partitions:
# start end size fstype [fsize bsize cpg]
a: 459442935 461540086 2097152 4.2BSD 0 0 0
b: 461540087 469928694 8388608 swap
c: 459442935 625126382 165683448 unused 0 0
d: 469928695 484041462 14112768 4.2BSD 0 0 0
e: 484041463 486138614 2097152 4.2BSD 0 0 0
f: 486138615 625126382 138987768 4.2BSD 0 0 0
BSD disklabel command (m for help): q
[root at yanxinyou ~]# mount -t ufs -o ro,ufstype=ufs2 /dev/sda11 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sda11,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
I think I just enter q . doesn't do any thing before fdisk /dev/sda
So it don't change
2011/3/18 Tom H <tomh0665 at gmail.com>:
> 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...
>
>
>> 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 at lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>
More information about the users
mailing list