?
Solved

Hard Drive partition problem

Posted on 2005-03-03
12
Medium Priority
?
209 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
[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
  • 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month14 days, 10 hours left to enroll

771 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