FAQ FC6

From COSSAN Wiki
Jump to: navigation, search

Mount NTFS Partitions

Windows uses a different filesystem (NTFS) to store files. In order for Fedora to read that filesystem, you require NTFS support in your kernel. You can either recompile your kernel for NTFS read support -OR- obtain the proper kernel module.

To setup NTFS access you must:

  1. install NTFS support,
  2. check how many partitions you have,
  3. create mount points,
  4. mount partitions, and
  5. update fstab to mount at next boot.

NOTE: It is recommended to use NTFS-3G instead as it is supported in Fedora Extras and does NOT require kernel updates/upgrades. NTFS-3G also provides safe read-write access.

Install NTFS Support

For yum users (you need the root privileging or use sudo):

yum install fuse fuse-libs ntfs-3g ntfsprogs ntfsprogs-gnomevfs

Users without yum, download fuse, fuse-lib and ntfs-3g (ntfsprogs and ntfsprogs-gnomevfs are optional) from Fedora Extras. Save them to a separate directory (ntfs). They are less than 1MB download.

cd ntfs
rpm -ivh fuse* ntfs*

No kernel version checking is required, so long as you are using a FC6 kernel.

Check Your Partitions

Use fdisk to list partitions. Most SATA hard drives will be /dev/sda. Drives may also show up as /dev/hda, /dev/hdb depending on your configuration.

 /sbin/fdisk -lu /dev/hda | grep NTFS
/dev/hda1   *          63    33559784    16779861    7  HPFS/NTFS
/dev/hda2        33559785    67119569    16779892+   7  HPFS/NTFS
/dev/hda3        67119570   100679354    16779892+   7  HPFS/NTFS

Usually the first will be a drive "letter": C drive, next D, etc. Hence /dev/hda1 is my C:\ drive used by Windows.

Create Mount Points

For every partition in step 2 that you wish to access, you will need a "mount point". A mount point is just a directory. Common directories are: /media/ and /mnt/. Use whichever, but be consistent.

cd /media/
mkdir c_drive d_drive e_drive

You do not have to use these names, if you prefer to create folders such as movies, documents, or winxp, any name will work (without spaces).

Mount Partitions

Using the above kernel module, we can only mount the NTFS partition read-only and we set the permissions so all users can read the contents of each partition.

mount /dev/hda1 /media/c_drive -t ntfs-3g -r -o umask=0222
mount /dev/hda2 /media/d_drive -t ntfs-3g -r -o umask=0222
mount /dev/hda3 /media/e_drive -t ntfs-3g -r -o umask=0222

Read/Write Access: The above is for read-only access. In order to mount read/write, you must use the -rw -o umask=0000. Example:

mount /dev/hda1 /media/c_drive -t ntfs-3g -rw -o umask=0000

HIGHLY RECOMMENDED: Please run man mount to understand what umask= does.

Update /etc/fstab

Every time Fedora boots, the partitions must be mounted. To automatically mount, you must edit /etc/fstab. Open /etc/fstab in an editor: (use nano instead of gedit if you do not have a GUI)

gedit /etc/fstab

Add these lines to the END of the file:

/dev/hda1   /media/c_drive     ntfs-3g    ro,defaults,umask=0222 0 0
/dev/hda2   /media/d_drive     ntfs-3g    ro,defaults,umask=0222 0 0
/dev/hda3   /media/e_drive     ntfs-3g    ro,defaults,umask=0222 0 0

Read/Write Access: The above is for read-only access. In order to mount read/write, you must use the rw,defaults,umask=0000. Example:

/dev/hda1   /media/c_drive     ntfs-3g    rw,defaults,umask=0000 0 0

Done!

See also

Install Java J2RE and Mozilla Plug-in

Basically, start by downloading the Java Runtime Environment (JRE) 5.0 Update 10 (at the time I wrote this) from Sun.com. You'll want to grab the Linux RPM in self-extracting file. Then you want to install it with:

# sh ./jre-1_5_0_10-linux-i586-rpm.bin

Then you'll probably want to enable Java Plug-ins and here once again there is no easy way:

# ln -s /usr/java/jre1.5.0_10/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins

And finally you'll need to tell Fedora that you wish to use this version of Java as the preferred interpreter rather than the Open Source version that's installed by default. You'll of course need to adjust the full pathname if you install a newer version of the jre than the one in this example:

# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.5.0_10/bin/java 1510
# java -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b05)
Java HotSpot(TM) Client VM (build 1.5.0_10-b05, mixed mode, sharing)

If you know of an easier way please post it.

I can´t start MatLab

install the library libXP.i386

with yum:

yum install libXP.i386

I have not the libXm.so.3

  • Copy the library [libXm.so.3] on your PC in the following folder:
 /usr/X11R6/lib/
  • add the above path to your bashrc or create the following symbolic link:
 ln -s libXm.so.3.0.3 libXm.so.3
  • Adding to All Users' Paths (except root)

You globally set a path in /etc/profile. That setting is global for all users except user root. Typical /etc/profile files extensively modify the $PATH variable, and then export that variable. What that means is you can modify the path by appending or prepending the desired directory(s) in existing statements modifying the path. Or, you can add your own path modification statements anywhere before the existing export statement. In the very unlikely event that there are no path modification or export statements in /etc/profile, you can insert the following 2 lines of code at the bottom of /etc/profile:

PATH=$PATH:/usr/X11R6/lib/
export PATH