FreeBSD list disks Command?

Sharky Forums


Results 1 to 2 of 2

Thread: FreeBSD list disks Command?

Hybrid View

  1. #1
    Catfish
    Join Date
    Feb 2001
    Posts
    245

    FreeBSD list disks Command?

    I have four hard drives. What is the command that will list the four drives and their partitions? I have files on various Windows partitions that I want to copy to my FreeBSD install.
    "Understanding Is A Three Edged Sword"

  2. #2
    Tiger Shark Kernel Panic's Avatar
    Join Date
    Jan 2002
    Location
    /dev/kmem
    Posts
    784
    check /var/run/dmesg.boot

    This will show you what drives FreeBSD has recognized.

    For SCSI they are usually da0, da1 .... daX
    For IDE they are usually ad0 (Primary Master), ad1 (Primary Slave),ad2 (Secondary Master and ad3 (Secondary Slave)

    Then you can run the command:

    disklabel -r xxx (where xxx is the drive) to see what file system types are set up on each partition on that drive.

    After that you can use the various flavors of the mount command to get the files off of those Windows paritions.*

    * I recomment you mount the Windows file systems as read only.
    Last edited by Kernel Panic; 10-30-2002 at 04:08 PM.
    Kernel Panic

    Antec PLUS880 Case w/430W PS
    Gigabyte 8IHXP (850e/ICH4)
    Intel P4 2.26GHz Northwood B
    4x256MB PC1066 RDRAM Memory
    GeForce FX 6800
    WD 80GB "Special Edition" 7200RPM HD
    Artec 52x24x52 CD-RW
    NEC 2510 DVD Burner
    SoundBlaster Audigy w/ firewire
    Intel 10/100 Pro+ NIC
    Samsung SyncMaster 900NF 19" Monitor
    Dual Boot: Windows XP SP2 and FreeBSD 6.2
    Generic Keyboard, Logitec Optical Mouse, Floppy Drive and some nice headphones.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •