Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Hard Drive partition problem

Posted on 2005-03-03
12
Medium Priority
?
216 Views
Last Modified: 2013-12-06
When installing Fedora Core 3 on my box I chose a cutom. I set up a partition to use xfs and it was supposed to be /dev/hda5/video but I don't see that partiton and am not able to mount it can someone help me out? Here is a snapshot of the disk geometry.

[root@myth ~]# parted  /dev/hda/ print
Disk geometry for /dev/hda: 0.000-156334.500 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031    101.975  primary   ext3        boot
2        101.975    611.850  primary   linux-swap
3        611.851  11358.457  primary   ext3
4      11358.457 156327.824  extended              lba
5      11358.488 156327.824  logical   xfs
Information: Don't forget to update /etc/fstab, if necessary.

0
Comment
Question by:ampapa
  • 7
  • 5
12 Comments
 
LVL 8

Author Comment

by:ampapa
ID: 13455721
It should look like this:

Partition        Mount Point        Size        Format
/dev/hda1      /boot      50-100MB      ext3
/dev/hda2      swap      same as RAM (ex: 512MB)      swap
/dev/hda3      /      8-12GB      ext3
/dev/hda5      /video      Everything else      xfs
0
 
LVL 8

Author Comment

by:ampapa
ID: 13455741
This is what I see in FDISK:

Disk /dev/hda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14          78      522112+  82  Linux swap
/dev/hda3              79        1448    11004525   83  Linux
/dev/hda4            1449       19929   148448632+   f  W95 Ext'd (LBA)
/dev/hda5            1449       19929   148448601   83  Linux


This is the error when I try yo mount hda5 -

[root@myth ~]# mount /dev/hda5
mount: can't find /dev/hda5 in /etc/fstab or /etc/mtab
0
 
LVL 40

Expert Comment

by:jlevie
ID: 13455972
What happens if you try 'mount -t xfs /dev/hda5 /video' (the /video directory must already exist)?
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 8

Author Comment

by:ampapa
ID: 13457772
I get.

[root@myth ~]# mount -t xfs /dev/hda5 /video
mount: mount point /video does not exist

This partition existed before I reinstalled on top of it. I was pretty sure I mirrored what was there before.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 13459248
Execute 'mkdir /video' and retry the mount command.
0
 
LVL 8

Author Comment

by:ampapa
ID: 13459604
I'm at the office currently so I'll have to wait until this evening to give this a try. Thanks.

How will mkdir know what partition to create the /video directory in? Won't it want to create that directory in the root partition as opposed to the xfs partition?

I'm still pretty fuzzy on linux. So, i'm trying to get a grip of the in's and out's...
0
 
LVL 40

Expert Comment

by:jlevie
ID: 13460622
Mount was complaining that the directory that would be the mount point didn't exist. I don't know if there's and XFS file system on hda5 or not, the mount didn't get that far.

/video isn't associated with the file system on hda5, but rather with where that FS will appear in the systems name space. You can mount a file system anywhere, providing the mount point exists. For example, if you execute 'mkdir /home/some-user/video-files' you could then execute 'mount /dev/hda5 /home/some-user/video-files' and have that data appear at that point in the file system.
0
 
LVL 8

Author Comment

by:ampapa
ID: 13463291
After trying the new dir  'mkdir /video'

[root@myth ~]# mkdir /video
You have new mail in /var/spool/mail/root

I re-ran 'mount -t xfs /dev/hda5 /video' but am unsure how to verify if in fact this worked?


0
 
LVL 40

Expert Comment

by:jlevie
ID: 13463739
If the mount command did not produce an error message and 'df' shows a line for hda5  mounted on /video, then it worked.
0
 
LVL 8

Author Comment

by:ampapa
ID: 13463946
Will this process need to be repeated on a reboot or will it remain until unmounted?

0
 
LVL 8

Author Comment

by:ampapa
ID: 13486129
jlevie, anyway to make this permanent on reboots?
0
 
LVL 40

Accepted Solution

by:
jlevie earned 2000 total points
ID: 13487605
You can modify /etc/fstab to automatically mount the file system at boot, something like:

/dev/hda5         /video      xfs  defaults  1 2
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension . This reminded me of questions that come up here at EE along the lines of, "How can I tell the type of file from its cont…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.
Suggested Courses
Course of the Month15 days, 9 hours left to enroll

581 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