Solved

Mounting an exisitng ext'd NFS partition

Posted on 2004-09-30
11
324 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
  • 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
 
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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Mint 18 31 73
PHP Apache application gives "Forbidden" message 5 43
Oracle 12c patching 1 59
Setting up static IP - Ubuntu server 16.04 12 16
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

948 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now