Re: (unknown)

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

 



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

# # dmesg |grep bsd
[    1.572871]  sda2: <bsd: sda11 sda12 sda13 sda14 sda15 >

# fdisk /dev/sda

Command (m for help): b
Reading disklabel of /dev/sda2  at sector 81920161.

BSD disklabel command (m for help): p

8 partitions:
#       start       end      size     fstype   [fsize bsize   cpg]
  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 

BSD disklabel command (m for help): q
# 

Everything else could be done as previously with FreeBSD slice mount, but this
time with /dev/sda11 (tested).

JB


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux