• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

mount problems 500 points help pleaseeeeeee

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
  • 3
2 Solutions
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
conflikqAuthor Commented:
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
cjl7freelance for hireCommented:

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

>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
oops - ext2 ==> ext2
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now