Link to home
Start Free TrialLog in
Avatar of ampapa
ampapa

asked on

Mounting an exisitng ext'd NFS partition

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,
Avatar of ampapa
ampapa

ASKER

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
SOLUTION
Avatar of Luxana
Luxana
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ampapa

ASKER

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?
/dev/hda5       /video         auto defaults  1 2

is correct then you need to use command :

# mount -av

to mount this cahnges in /etc/fstab

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

/dev/hda5       /video         ext2 defaults  1 2
> 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.
Avatar of ampapa

ASKER

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
Avatar of ampapa

ASKER

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)
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