?
Solved

Can't mount file system on /opt (REDHAT)

Posted on 2011-09-12
14
Medium Priority
?
1,316 Views
Last Modified: 2012-05-12
Hi, I need to mount /dev/cciss/c0d0p4 on /opt  , but I am not able to, can you please help me out?


[root@svr-03 ~]# fdisk -l
 
Disk /dev/cciss/c0d0: 300.0 GB, 299966445568 bytes
255 heads, 63 sectors/track, 36468 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000bf2cc
 
           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1        3917    31457280   83  Linux
/dev/cciss/c0d0p2            3917       21050   137625600   83  Linux
/dev/cciss/c0d0p3           21050       27578    52428800   83  Linux
/dev/cciss/c0d0p4           27578       36469    71422976    5  Extended
/dev/cciss/c0d0p5           27578       33844    50331648   82  Linux swap / Solaris
/dev/cciss/c0d0p6           33844       35149    10485760   83  Linux
/dev/cciss/c0d0p7           35149       36455    10485760   83  Linux
[root@svr-03 ~]# mount /dev/cciss/c0d0p4 /opt
mount: you must specify the filesystem type

Open in new window

0
Comment
Question by:cismoney
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
  • 3
  • +2
14 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 400 total points
ID: 36521674
Is there a filesystem on /dev/cciss/c0d0p4 ?

You can only mount filesystems, not raw devices.

If there is none consult the manpage of "mkfs" to learn how to create a filesystem.

If there is such a filesystem, however - of which type is it?

Try using the "-t" option of "mount" then, e.g.

mount -t ext3 /dev/cciss/c0d0p4 /opt

wmp
0
 

Author Comment

by:cismoney
ID: 36521799
[root@svr-03 ~]# mount -t ext3 /dev/cciss/c0d0p4 /opt
mount: wrong fs type, bad option, bad superblock on /dev/cciss/c0d0p4,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
 

Open in new window



what can i do?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36521879
So there is most probably no FS at all.

You'll have to create one using mkfs. See "man mkfs"
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 2

Assisted Solution

by:ind_selva
ind_selva earned 400 total points
ID: 36521913
1). Create a file system
     # mkfs.ext3 /dev/cciss/c0d0p4
2). Now mount the file system
    # mount -t ext3 /dev/cciss/c0d0p4 /opt
0
 

Author Comment

by:cismoney
ID: 36522005
how  do i find the fs type of /dev/cciss/c0d0p4 i think there is a filesystem already
0
 
LVL 4

Assisted Solution

by:Ryan Weaver
Ryan Weaver earned 1200 total points
ID: 36522010
in your partition listing, c0d0p4 is listed with the 'Extended' partition type. This is the container for the Logical partitions and cannot be mounted. Instead you mount the *5,6,7 partitions that are contained in the extended/logical partition space.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36522424
One should read questions more carefully, indeed.

Fryguy is right, of course.

wmp
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 36522518
c0d0p5 is for swap only, either c0d0p6 or c0d0p7 can be mounted to /opt if not already used by other filesystems.
0
 

Author Comment

by:cismoney
ID: 36523291
[root@svr-03 ~]# mkfs.ext3 /dev/cciss/c0d0p4
mke2fs 1.41.12 (17-May-2010)
mkfs.ext3: inode_size (128) * inodes_count (0) too big for a
        filesystem with 0 blocks, specify higher inode_ratio (-i)
        or lower inode count (-N).
 

Open in new window



 i stiill have errors
0
 

Author Comment

by:cismoney
ID: 36524450
please check


[root@svr-03 ~]# fdisk /dev/cciss/c0d0p4
 
Unable to read /dev/cciss/c0d0p4

Open in new window

0
 
LVL 4

Assisted Solution

by:Ryan Weaver
Ryan Weaver earned 1200 total points
ID: 36524600
Again, c0d0p4 is a container, not a usable partition: Extended Partition
0
 

Author Comment

by:cismoney
ID: 36525439
Fryguy, I need to mount c0d0p4 on /opt what can i do
0
 

Author Comment

by:cismoney
ID: 36525457
how can I make this partition usable its 70gb!
0
 
LVL 4

Assisted Solution

by:Ryan Weaver
Ryan Weaver earned 1200 total points
ID: 36525542
c0d0p5, c0d0p6, and c0d0p7 are inside c0d0p4.

Have you mounted c0d0p5, c0d0p6, and c0d0p7?
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

770 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