Find the answer to your Linux question:
Results 1 to 4 of 4
Hello to all, I need help with a problem that I have in red hat enterprise linux version 5. I intend to create a file system but I'm having troubles ...
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    6

    Problem with Create a File System on Linux

    Hello to all,

    I need help with a problem that I have in red hat enterprise linux version 5. I intend to create a file system but I'm having troubles because it show me an error after typing the command to create a filesystem:

    mke2fs —b 4096 /dev/sap (mke2fs —b 4096 /dev/<device>)

    The error finish with a message:
    "The device apparently does not exist; did you specify it correctly?"


    I don´t understand why this happens... and I´m newest in Linux, someone can help me with this problem?


    Best regards,
    João Dimas - Portugal

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    What is /dev/sap? You need to specify a valid device+partition to create a file system, such as /dev/sda1, etc. Post the results here from the command fdisk -l, then we can probably tell you what to do.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Feb 2010
    Posts
    6
    Hello Rubberman,

    I´m SAP Administrator and so I want to install a sap system on Red Hat Enterprise Linux v.5, and this /dev/sap would be the file system that I want to create for the directories of sap and other file system that I wanted create would be for the Oracle database as /dev/ora.

    Next I´ll put here the results of some commands like fdisk -l ; vgdisplay ; lvdisplay ; df -m.

    [root@redhatsap ~]# fdisk -l

    Disk /dev/sda: 193.2 GB, 193273528320 bytes
    255 heads, 63 sectors/track, 23497 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 13 104391 83 Linux
    /dev/sda2 14 23497 188635230 8e Linux LVM

    [root@redhatsap ~]# vgdisplay
    --- Volume group ---
    VG Name VolGroup01
    System ID
    Format lvm2
    Metadata Areas 1
    Metadata Sequence No 3
    VG Access read/write
    VG Status resizable
    MAX LV 0
    Cur LV 2
    Open LV 2
    Max PV 0
    Cur PV 1
    Act PV 1
    VG Size 179.88 GB
    PE Size 32.00 MB
    Total PE 5756
    Alloc PE / Size 5756 / 179.88 GB
    Free PE / Size 0 / 0
    VG UUID oSA0Rl-Cz8c-nVqc-pH1A-9SKw-XvZk-pTgnRU

    [root@redhatsap ~]# lvdisplay
    --- Logical volume ---
    LV Name /dev/VolGroup01/LogVol00
    VG Name VolGroup01
    LV UUID Jln8g0-YwHm-KVim-KmqT-0IPF-TDnJ-u87BRX
    LV Write Access read/write
    LV Status available
    # open 1
    LV Size 174.22 GB
    Current LE 5575
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:0

    --- Logical volume ---
    LV Name /dev/VolGroup01/LogVol01
    VG Name VolGroup01
    LV UUID c0JLG5-4ghB-Iftx-MucI-6MWV-IR9L-vRfQMV
    LV Write Access read/write
    LV Status available
    # open 1
    LV Size 5.66 GB
    Current LE 181
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:1

    [root@redhatsap ~]# df -m
    Filesystem 1M-blocks Used Available Use% Mounted on
    /dev/mapper/VolGroup01-LogVol00
    172813 3558 160335 3% /
    /dev/sda1 99 13 82 14% /boot
    tmpfs 1898 0 1898 0% /dev/shm
    /dev/hdc 3409 3409 0 100% /media/RHEL_5.4 x86_64 DVD

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    So, you want to format the logical volume? That should have been done when you installed RHEL. Post the results here of the mount command.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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