Re: bios disk numbers and device names

From: Andrea Campi (andrea+freebsd_stable_at_webcom.it)
Date: 11/29/04

  • Next message: alex bustamante: "slow mouse in X11"
    Date: Mon, 29 Nov 2004 15:06:56 +0100
    To: Michael Grant <mg-fbsd3@grant.org>
    
    

    On Mon, Nov 29, 2004 at 08:51:38AM -0500, Michael Grant wrote:
    > Thanks, that seems like it will work perfectly. Do you know if I can
    > boot a root device on say /dev/ufs/root?
    >
    > tunefs -L root /dev/da0a
    >
    > then in my fstab:
    > /dev/ufs/root / ufs rw 1 1

    Don't know.

    > Also, what is the difference between dong 'glabel lable -v root' and
    > 'tunefs -L root'? It appears from the man page that one creates a
    > /dev/label/root and the other creates a /dev/ufs/root.
    >
    > Where can I learn more about /dev/label and /dev/ufs? Thanks again.

    The manpage explains it all, and that's all I know as well. glabel
    specifies a transient label, i.e. it's not saved on the disk, so you
    loose it on reboot or if the disk goes away.

    If you need to know more... use the source Luke, use the source. ;-)

    Andrea

    >
    > Michael Grant
    >
    >
    > On Mon, Nov 29, 2004 at 01:39:58PM +0100, Andrea Campi wrote:
    > > On Mon, Nov 29, 2004 at 07:21:00AM -0500, Michael Grant wrote:
    > > > Has anyone thought about this problem? Is there some spare space in
    > > > the label that could be used for a device name that, if set, could
    > > > be used in place of (or an alias for) a name like da0?
    > >
    > > GEOM_LABEL is what you're looking for. Check the glabel(8) man
    > > page. In a nutshell, you'd do this:
    > >
    > > tunefs -L log /dev/ad1s1a
    > > tunefs -L db /dev/da4s1a
    > > tunefs -L www /dev/da4s1a
    > > ...
    > >
    > > mount /dev/ufs/log /mnt/log
    > > mount /dev/ufs/db /mnt/db
    > > mount /dev/ufs/www /mnt/www
    > >
    > > (you get the idea). Obviously you can move use the /dev/ufs/*
    > > devices in fstab as well.
    > >
    > > If later on you move the filesystems to a different device while
    > > retaining the label (which means no tar, you have to use dd or
    > > dump/restore), everything works.
    > >
    > > Hope it helps. Bye,
    > > Andrea
    > >
    > > --
    > > Give a man a fish and you feed him for a day;
    > > teach him to use the Net and he won't bother you for weeks.
    >

    -- 
                Give a man a fish and you feed him for a day;
         teach him to use the Net and he won't bother you for weeks.
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
    

  • Next message: alex bustamante: "slow mouse in X11"

    Relevant Pages

    • Re: How does one clean a messy fstab ?
      ... > ALWAYS BACK THE FSTAB UP BEFORE EDITING. ... > because sda1 is in windows recognised as C:/. ... > Again, the disk wasn't mounted. ... On my desktop is an icon of the WIN C: partition and I have access to ...
      (Ubuntu)
    • Re: [opensuse] Harddisk serial number (SuSE10.3), cloning disks
      ... uses the ID of the disk. ... you need to edit both menu.lst and fstab to get the ... IIRC, during the installation, there is an option under the advanced ... take a look at the advanced options for partitioning. ...
      (SuSE)
    • Unable to access resume device (LABEL=SWAP-hdc3) and suspend/resume woes
      ... The thing is, hdc is an optical disk drive, there was never any swap ... I noticed that I did have two swap entries in fstab: ... I was using the suspend2 kernel from atrpms but then fell back to the ... stock FC6 kernel to experiment with making a new initrd with the correct ...
      (Fedora)
    • Re: FreeBSD 4.x ata RAID1?
      ... Changed ad0xxx entries in fstab to ar0xxx ... ar0: truncating raw partition ... Should I edit the fstab entries before creating the array? ... >Can I add a disk of same or slightly larger size and create a RAID1 ...
      (comp.unix.bsd.freebsd.misc)
    • Re: simple boot question
      ... > disk's MBR (if your bios can boot the second controlloer) and the boot ... The fstab will still be looking for partitions on ... > the first disk on the first controller (ad0, ... > This is assuming you you are using the GENERIC kernel. ...
      (comp.unix.bsd.freebsd.misc)