ampapa
asked on
Hard Drive partition problem
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.
[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.
ASKER
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
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
What happens if you try 'mount -t xfs /dev/hda5 /video' (the /video directory must already exist)?
ASKER
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.
[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.
Execute 'mkdir /video' and retry the mount command.
ASKER
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...
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...
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-file s' you could then execute 'mount /dev/hda5 /home/some-user/video-file s' and have that data appear at that point in the file system.
/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-file
ASKER
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?
[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?
If the mount command did not produce an error message and 'df' shows a line for hda5 mounted on /video, then it worked.
ASKER
Will this process need to be repeated on a reboot or will it remain until unmounted?
ASKER
jlevie, anyway to make this permanent on reboots?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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