Solved

Mounting an exisitng ext'd NFS partition

Posted on 2004-09-30
11
329 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

617 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