filesystem or rawdevice

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default filesystem or rawdevice

    hi, when creating of files or direcotries, what are the reasons when
    to use filesystems or raw device?
    yls177 Guest

  2. Similar Questions and Discussions

    1. FileSystem Object
      I am wondering if anyone could help me with the following problem I need to write some asp code that accepts a path to some directory on the Web...
    2. SCO Filesystem
      Help plz using sco 3.2v4.2 ... powerfailer ochh!... not able to mount /dev/u try fsck on /dev/root .. it's ok try fsck on /dev/u get error "fsck:...
    3. filesystem help
      Yousuf wrote: The block number it's complaining about is in 1/2K blocks. In 1K units, it's at 18307903K into the division. Since the size of...
    4. SCSI ID <--> filesystem
      .... a particular (5.0.6) server has a SCSI backplane with four hard disks hanging off of it. All I know is the SCSI ID (it is the position in the...
    5. Read only filesystem??
      On Wed, 25 Jun 2003 at 19:58 GMT, Mike L eloquently wrote: Does the output of mount say your filesystems are mounted rw or r? Example: /dev/hdb3...
  3. #2

    Default Re: filesystem or rawdevice

    yls177 wrote:
    >
    > hi, when creating of files or direcotries, what are the reasons when
    > to use filesystems or raw device?
    Filesystems contain files or directories. Raw devices do not. If
    you wish to create a directrory inside of a raw device, a filesystem
    is the only way.

    So it has something to do with what's possible and impossible at
    that layer of the onion.
    Doug Freyburger Guest

  4. #3

    Default Re: filesystem or rawdevice

    [email]dfreybur@yahoo.com[/email] (Doug Freyburger) wrote in message news:<7960d3ee.0408091100.4376b1a4@posting.google. com>...
    > yls177 wrote:
    > >
    > > hi, when creating of files or direcotries, what are the reasons when
    > > to use filesystems or raw device?
    >
    > Filesystems contain files or directories. Raw devices do not. If
    > you wish to create a directrory inside of a raw device, a filesystem
    > is the only way.
    >
    > So it has something to do with what's possible and impossible at
    > that layer of the onion.
    filesystems are a logical thing. they resides on the disks itself and
    their access is through the file system buffer cache, and they uses
    block devices.

    for raw devices, they bypasses the file system's buffer cache and
    gives you "direct" access to the device.

    i search the web and find the below
    "There are two ways to access a device (hard drive, floppy, CD-ROM,
    what
    have you). One is the standard method, which uses block devices. The
    other method for accessing these devices is via the raw device
    interface. You're accessing the same hardware, but the raw device
    bypasses the file system's buffer cache and gives you "direct" access
    to
    the device. This can be very convenient for particular purposes, but
    you need to be careful if you ever intend to mix block and raw
    accesses
    to the same device."

    1) filesystem is in the block device category?
    2) when will we decide which category(block or raw) to use?
    yls177 Guest

  5. #4

    Default Re: filesystem or rawdevice

    yls177 wrote:
    > Doug Freyburger wrote:
    >
    > > Filesystems contain files or directories. Raw devices do not. If
    > > you wish to create a directrory inside of a raw device, a filesystem
    > > is the only way.
    >
    > filesystems are a logical thing. they resides on the disks itself and
    > their access is through the file system buffer cache, and they uses
    > block devices.
    >
    > for raw devices, they bypasses the file system's buffer cache and
    > gives you "direct" access to the device.
    Realistically there's no difference between raw devices and block
    devices like that. It is a historical distinction no longer used.
    > 1) filesystem is in the block device category?
    Irrelevant block vs raw. Filesystem is formatting method. Raw
    or block is unformatted method. Filesystems live inside of
    logical volumes, block devices, raw devices, etc.

    Filesystem is inside of block device. Layer of the onion not
    a question of categories.
    Doug Freyburger Guest

  6. #5

    Default Re: filesystem or rawdevice

    [email]dfreybur@yahoo.com[/email] (Doug Freyburger) wrote in message news:<7960d3ee.0408200847.2c551ca6@posting.google. com>...
    > yls177 wrote:
    > > Doug Freyburger wrote:
    > >
    > > > Filesystems contain files or directories. Raw devices do not. If
    > > > you wish to create a directrory inside of a raw device, a filesystem
    > > > is the only way.
    > >
    > > filesystems are a logical thing. they resides on the disks itself and
    > > their access is through the file system buffer cache, and they uses
    > > block devices.
    > >
    > > for raw devices, they bypasses the file system's buffer cache and
    > > gives you "direct" access to the device.
    >
    > Realistically there's no difference between raw devices and block
    > devices like that. It is a historical distinction no longer used.
    >
    > > 1) filesystem is in the block device category?
    >
    > Irrelevant block vs raw. Filesystem is formatting method. Raw
    > or block is unformatted method. Filesystems live inside of
    > logical volumes, block devices, raw devices, etc.
    >
    > Filesystem is inside of block device. Layer of the onion not
    > a question of categories.


    hi, thanks for replying. So the difference between raw (or block) and
    filesystem is the format method. Filesystem is format method while the
    other is unformat.

    Could u please elaborate more about this?

    Thanks
    yls177 Guest

  7. #6

    Default Re: filesystem or rawdevice

    yls177 wrote:
    > Doug Freyburger wrote:
    >
    > > Realistically there's no difference between raw devices and block
    > > devices like that. It is a historical distinction no longer used.
    ....
    > > Filesystem is inside of block device. Layer of the onion not
    > > a question of categories.
    >
    > So the difference between raw (or block) and
    > filesystem is the format method. Filesystem is format method while the
    > other is unformat.
    No, the primary difference is what layer of the onion. Devices are
    at a layer that doesn't address the content inside the device.
    Filesystems are at the layer of the onion that does include the
    content so filesystems are the format of the content.

    In layered modular design of Unix is important to understand. Learn
    what layers contain what function and you will be able to understand
    the difference. Fail to learn the layered nature of Unix and you
    will continue asking the question in a way that doesn't lead to a
    sensible answer. Layer after layer, Unix peels like an onion.
    Learn what is in each layer.

    In fact, the 7-layer ISO networking model is expressed like it is
    a Unix system. Starting at the hardware and moving out to the user
    interface. Your filesystem or raw device is rather like asking
    layer 2 or 3 in the ISO networking model.
    Doug Freyburger Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139