mount problems 500 points help pleaseeeeeee

Posted on 2006-05-08
Last Modified: 2013-12-16
hello everyone

  I am trying to help a customer do a remote mounting of a partition

   The partition I am trying to mount is labeled /calls. The partition that's on there is cciss-code p1 p2 p3. My not familiar with anything other than sda0, sda1, etc etc. What is cciss-codo. Is the p1, p2 and p3 the way the drive is broken up?

How do I mount the drive I am trying to mount. I told the customer to try mount /dev/sda1, mount /dev/sda2 and mount /dev/sda0. None of which seemed to work. The results were printed out from the df command which on my box show sda1. I can't see the customers noox I am working with him over the phone.

Any Ideas on how to mount that /calls partition?

Thanks in advance
Question by:conflikq
    LVL 14

    Expert Comment

    Your customer is probably using a RAID controller with this naming scheme:


    X = controller number (starting at 0) - c0 = 1st RAID controller, c1 = 2nd, ...
    Y = disk number per controller (starting at 0) - d0 = 1st disk per controller, d1 = 2nd disk, ...
    Z = partition number on disk (starting at 1) - p1 = 1st partition, p2 = 2nd, ...

    /dev/cciss/c0d0p1 - partition 1 on first disk attached to first controller
    /dev/cciss/c0d3p2 - partition 2 on foutrh disk attached to first controller

    for more infos try:
    # cat /proc/driver/cciss/cciss0
    cciss0: HP Smart Array 5i Controller
    Board ID: 0x40100a17
    Firmware Version: 2.16
    IRQ: 185
    Logical drives: 1
    Current Q depth: 0
    Current # commands on controller: 0
    Max Q depth since init: 160
    Max # commands on controller since init: 182
    Max SG entries since init: 31
           Sequential access devices: 0

    cciss/c0d0:       36.41GB       RAID 1(1+0)

    # fdisk -l /dev/cciss/c0d0

    Disk /dev/cciss/c0d0: 36.4 GB, 36414750720 bytes
    255 heads, 32 sectors/track, 8716 cylinders
    Units = cylinders of 8160 * 512 = 4177920 bytes

               Device Boot      Start         End      Blocks   Id  System
    /dev/cciss/c0d0p1               1        2571    10489664   83  Linux
    /dev/cciss/c0d0p2            2572        3857     5246880   83  Linux
    /dev/cciss/c0d0p3            3858        5143     5246880   83  Linux
    LVL 1

    Author Comment

    so is it okay to use something like this as an install guide

    fdisk /dev/cciss





    mke2fs-J /dev/cciss/c0d1:  disk 1 2nd raid controller

    mount -t ext3 /dev/ciss/calls

    cat /etc/fstab  

    use emacs and add line below to /etce

    to mount it at bootup edit the fstab

    /dev/ciss/calls ext3 default 0 0
    LVL 14

    Accepted Solution


    Let me clarify this for you!

    sda = /dev/sda = the whole drive
    c0d0 = /dev/cciss/c0d0 = the whole drive

    sda1 = 1'st partition on sda
    c0d0p1 = 1'st partition on c0d0

    sda2 = 2'nd partition on  sda
    c0d0p2 = 2'nd partition on c0d0

    So to create this:
    /boot = 200 MB
    /         = 6 GB
    swap = 1 GB

    fdisk /dev/cciss/c0d0
    starting bock: <ENTER>
    end block: +200m <ENTER>
    (1'st partition done, repete for the other two"

    Make filesystems

    mke2fs -j /dev/cciss/c0d0p2 (have to create on a partition, otherwise the whole disk will be used...)

    Edit the fstab

    Good luck

    LVL 14

    Assisted Solution

    >so is it okay to use something like this as an install guide
    >fdisk /dev/cciss

    not ok - /dev/cciss is a directory where the device files live.
    (you can only partition a disk  like /dev/cciss/c0d0)
    let's assume you have 1 controller and 1 RAID disk:
    # fdisk /dev/cciss/c0d0
    and create /dev/cciss/c0d0p1, /dev/cciss/c0d0p2 ...

    > mke2fs-J /dev/cciss/c0d1:  disk 1 2nd raid controller
    really c0 (controller 0) d1 (disk1) --> 2nd disk on 1st controller

    this would create a filesystem on the entire disk - which is possible
    but probably not what you want (it's like "mkfs /dev/sdb" or "mkfs /dev/hdb")
    using ALL the disk withour partitioning (only 1 filesystem all over the disk)

    you probably want "mke2fs-J /dev/cciss/c0d0p1"

    > mount -t ext3 /dev/ciss/calls
    mount -t ext2 /dev/cciss/c0d0p1 /data1
    LVL 14

    Expert Comment

    oops - ext2 ==> ext2

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now