Solved

Mounting an exisitng ext'd NFS partition

Posted on 2004-09-30
11
327 Views
Last Modified: 2008-03-06
I've just recently re-installed FC2 and when re-creating the partitions I wanted to leave some data on /dev/hda5 an NFS partition, so I did not include it when re-formatting the other partitions. Now when I login to FC2 and try to mount /dev/hda5 "mount /dev/hda5 /video" I get the error "mount point /video does not exist".

I'm very new to FC2 and just am not sure exactly what's going on? How can I even tell if the partition is mounted? When using fdisk the partition is listed so I know it exists.

Thanks for any help you can give.

AJM,
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
  • 5
  • 4
  • 2
11 Comments
 
LVL 8

Author Comment

by:ampapa
ID: 12196330
Here is the FDISK info:

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        1318    10482412+  83  Linux
/dev/hda3            1319        1448     1044225   82  Linux swap
/dev/hda4            1449       19929   148448632+   f  W95 Ext'd (LBA)
/dev/hda5            1449       19929   148448601   83  Linux
0
 
LVL 10

Assisted Solution

by:Luxana
Luxana earned 125 total points
ID: 12197017
Hi

first have a look in /etc/fstab if you /dev/hda5 is not already mounted in some directory

to muout filesystem you need to create directory (mount point ) where you want to mount your filesystem

example:

mkdir /mnt/mypartition

then mout command:

mount /dev/hda5 /mnt/mypartition

to quick check your currently mountet filesystems you can also use

# mount


.....

0
 
LVL 10

Expert Comment

by:Luxana
ID: 12197061
and I forgot :

command mount is using /etc/fstab in some way whne no mount points listetd in command .

example:

line in my /etc/fstab

/dev/cdrom      /cdrom          iso9660 ro,user,noauto          0       0

# mount /cdrom
or
# mount/cdrom

wil automaticaly mount cdrom to /cdrom

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 40

Accepted Solution

by:
jlevie earned 125 total points
ID: 12197082
"mount point /video does not exist" simply says the the directory /video doesn't exist and thus the mount fails. The solution is to 'mkdir /video' and then execute 'mount /dev/hda5 /video'.

Once the mount point exists and you can manually mount the FS you can automate the process by adding:

/dev/hda5       /video         auto defaults  1 2

to /etc/fstab.
0
 
LVL 8

Author Comment

by:ampapa
ID: 12198649
O.K.

So, once I've created the directory and mounted the drive I should be able to store data, etc. to the partition correct? Is this similar to "mapping" a drive in Windows?

In my /etc/fstab how do I know what parameters to use?

/dev/hda5       /video         auto defaults  1 2            <============ is this correct for my new mount?
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12198671
/dev/hda5       /video         auto defaults  1 2

is correct then you need to use command :

# mount -av

to mount this cahnges in /etc/fstab

0
 
LVL 10

Expert Comment

by:Luxana
ID: 12198708
if not working instead auto use your type of filesytem on /dev/hda5
examle:

/dev/hda5       /video         ext2 defaults  1 2
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12200725
> So, once I've created the directory and mounted the drive I should be able to store data, etc. to the partition
> correct?

Mounting assumes that some sort of supported file system exists on that partition (FAT/FAT32/EXT2/EXT3). Unless you have some specific requirment for the partition EXT3 is probably best. And from the way the question was phrased I assumed that this was the case and that there was probably data already on that partition. If this is not the case you'd want to execute 'mke2fs -j /dev/hda5' to create and EXT3 file system before attempting the mount.

Once the file system has been mounted it becomes accessible for reading/writing. You need to know that the permissions of the mount point govern permissions of the mounted file system. For example if /video is owned by root and has drwx------ only root would have access to the data. To allow all users full access to the data you'd want /video to have permissions of drwxrwxrwx.

> Is this similar to "mapping" a drive in Windows?

Somewhat. The big differences are that you get to specify the mount point, which can be anywhere in the Linux file system, and that ownership & permissions are a feature of the Linux file system rather than being something managed by the OS.
0
 
LVL 8

Author Comment

by:ampapa
ID: 12204271
Here is the message I get.

# mount /dev/hda5 /video
# mount -av
mount: LABEL=/boot already mounted on /boot
mount: none already mounted on /dev/pts
mount: none already mounted on /dev/shm
mount: none already mounted on /proc
mount: none already mounted on /sys
nothing was mounted
0
 
LVL 8

Author Comment

by:ampapa
ID: 12204278
Sorry I meant to also post the mount info.

# mount
/dev/hda2 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/hda5 on /video type xfs (rw)
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12204659
command
# mount -av

look to your /etc/fstab and mount partition which are not mounted .

# mount gives you all pratitons wich are mounted
here you /dec/hda5 is mounted to /video - read and write

dev/hda5 on /video type xfs (rw)

you are now able to read and write your /dev/hda5  

also command
# df
gives you useful informations


0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

732 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