Re: disklabel differences FreeBSD, DragonFly



* David Gilbert (dgilbert@xxxxxxx) wrote:
Dmitry> About `lack' of partitions - don't forget that labels can be
Dmitry> nested. Just do `bsdlabel -w /dev/ad0s1e` - you'll get
Dmitry> /dev/ad0s1ea.
Don't also forget that gpt(8) exists and seems to provide for large
numbers of partitions. It even seems to be compiled into GENERIC by
default.
Afaik, one is unable to boot from gpt partitions. However, I myself
didn't try it yet. Do gpt fully eliminate need in mbr/bsdlabel
partitioning? There is also issue with UFS filesystems and bsdlabel
- some filesystem data is stored in label itself:

# bsdlabel /dev/ad0s1
# size offset fstype [fsize bsize bps/cpg]
a: 262144 0 4.2BSD 2048 16384 16392
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For example, fsck(8) makes use of it - you can

newfs /dev/ad0s1a && fsck /dev/ad0s1a

but you can't

newfs /dev/ad0 && fsck /dev/ad0

the latter will complain about unknown filesystem type and you'll
have to use fsck_ufs instead. This shouldn't affect automatic fsck
(because of fstab), but I can't guarantee that there are no any
other drawbacks.

--
Best regards,
Dmitry mailto:amdmi3@xxxxxxx
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Ubuntu and HP Pavillion laptop dv2000
    ... GNU/Linux comes with its own bootloader, or actually, two of them. ... can read a filesystem and reads its files via filesystem access. ... eachother is to first install XP on a blank hard disk. ... Most newbies will require two partitions, ...
    (comp.os.linux.hardware)
  • Re: Advantage of partitioning?
    ... When you install your next kernel, ... There are reasons to separate it, ... Another is to keep the boot files on a simple filesystem that's well ... Some Mac systems work well with HFS /boot partitions, ...
    (comp.os.linux.setup)
  • Re: Xenix Filesystem
    ... > how do I mount a new filesystem in SCO Open Server 5.0.5? ... There is probably at least 2 or 3 divvy partitions within that fdisk ...
    (comp.unix.sco.misc)
  • Re: Installing a second hard disk
    ... assuming you will need all disk as one filesystem ... assuming you need partitions ... bsdlabel -e newdisk and edit label ...
    (freebsd-questions)
  • Re: kmod-nvidia not working in kernel-2.6.17-1.2139_FC5
    ... directories and other problems (may be bug in fedora itself). ... the filesystem dirty or in error. ... of my partitions, excluding only the non-ext3 ...
    (Fedora)