LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-28-2008, 08:42 AM   #1
oceanarches
LQ Newbie
 
Registered: Aug 2008
Posts: 14

Rep: Reputation: 0
Question Installing packages for NTFS support on CentOS 5.2


I am trying to download the packages that I need in order to read/write to NTFS formatted external drives.

I have found some valuable reference material at
http://wiki.centos.org/TipsAndTricks/NTFSPartitions
http://wiki.centos.org/AdditionalRes...t=Repositories
http://wiki.centos.org/PackageManagement/Yum/Priorities

Right now, I'm stuck at installing rpmforge-release-0.3.6-1.el5.rf.*.rpm

The steps that I have taken are:
1) Install yum priorities
$sudo yum install yum-priorities

The message that I get is
Installed: yum-priorities.noarch 0:1.1.10-9.el5.centos
Complete!

2) sudo vi /etc/yum/pluginconf.d/priorities.conf
Add to file: check_obsoletes=1

3) Install RPMforge for x86_64
(see http://wiki.centos.org/AdditionalRes...baf5ea963a64ae)

4) Install GPG (whatever this is!)
sudo rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

<warning: cannot get exclusive lock on /var/lib/rpm/Packages>

5) Install the rpm package
sudo rpm -i ~/Desktop/rpmforge-release-0.3.6-1.el5.rf.*.rpm
warning: cannot get exclusive lock on /var/lib/rpm/Packages
warning: cannot get exclusive lock on /var/lib/rpm/Packages

I don't understand this warning.

Part of my problem may be that I am still struggling to understand the linux file structures??? (see my earlier post on file structures)

Suggestions?

Thanks.
 
Old 08-28-2008, 10:02 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
Another process is blocking the the yum / the package database.
I guess in your setup it is the auto update search service.
You cannot use for example yumex (GUI for installing from yum repo's) while installing rpm's on the cli.

Regaring NTFS:
http://www.linux-ntfs.org/doku.php?id=ntfs-en

Code:
yum --enablerepo=rpmforge install fuse fuse-ntfs-3g dkms dkms-fuse
 
Old 09-03-2008, 12:57 PM   #3
oceanarches
LQ Newbie
 
Registered: Aug 2008
Posts: 14

Original Poster
Rep: Reputation: 0
closer but still no cigar

Thanks odcheck.

Is it advisable to disable the auto update? Or is it better to just work around? I imagine that it is a useful tool for the novice user but perhaps it is just as easy to check for and install updates independently, w/o the auto update. If I understand your code correctly, "--enablerepo=rpmforge" is the command that bypasses the auto update conflict?

In any case, I ran the code
yum --enablerepo=rpmforge install fuse fuse-ntfs-3g dkms dkms-fuse

and seemed to get a successful installation (note, post continues after code)

Code:
sudo yum --enablerepo=rpmforge install fuse fuse-ntfs-3g dkms dkms-fuse
Loading "fastestmirror" plugin
Loading "priorities" plugin
Loading mirror speeds from cached hostfile
 * adobe-linux-i386: linuxdownload.adobe.com
 * rpmforge: fr2.rpmfind.net
 * base: mirrors.bluehost.com
 * updates: designwaveaudio.com
 * addons: centos.mirrors.tds.net
 * extras: centos-distro.cavecreek.net
0 packages excluded due to repository priority protections
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package dkms.noarch 0:2.0.20.2-2.el5.rf set to be updated
---> Package dkms-fuse.noarch 0:2.7.3-1.nodist.rf set to be updated
---> Package fuse-ntfs-3g.x86_64 0:1.2812-1.el5.rf set to be updated
---> Package fuse.x86_64 0:2.7.3-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 dkms-fuse               noarch     2.7.3-1.nodist.rf  rpmforge           70 k
 fuse-ntfs-3g            x86_64     1.2812-1.el5.rf  rpmforge          379 k
Installing for dependencies:
 dkms                    noarch     2.0.20.2-2.el5.rf  rpmforge           61 k
 fuse                    x86_64     2.7.3-1.el5.rf   rpmforge          257 k

Transaction Summary
=============================================================================
Install      4 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 767 k
Is this ok [y/N]: y
Downloading Packages:
(1/4): fuse-2.7.3-1.el5.r 100% |=========================| 257 kB    00:02     
(2/4): fuse-ntfs-3g-1.281 100% |=========================| 379 kB    00:03     
(3/4): dkms-fuse-2.7.3-1. 100% |=========================|  70 kB    00:00     
(4/4): dkms-2.0.20.2-2.el 100% |=========================|  61 kB    00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: fuse                         ######################### [1/4] 
  Installing: dkms                         ######################### [2/4] 
  Installing: dkms-fuse                    ######################### [3/4] 
  Installing: fuse-ntfs-3g                 ######################### [4/4] 

Installed: dkms-fuse.noarch 0:2.7.3-1.nodist.rf fuse-ntfs-3g.x86_64 0:1.2812-1.el5.rf
Dependency Installed: dkms.noarch 0:2.0.20.2-2.el5.rf fuse.x86_64 0:2.7.3-1.el5.rf
Complete!
Unfortunately, I am still unable to mount the NTFS drive.
"Cannot mount volume: The volume uses the ntfs file system which is not supported by your system."

I tried re-booting, but that didn't work. It seems as though I should be able to connect at this point, right?

thanks,
Rachael
 
Old 07-25-2009, 10:31 PM   #4
nolidocot
LQ Newbie
 
Registered: Jul 2009
Location: Manila
Posts: 3

Rep: Reputation: 0
Post Mounting NTFS Filesystems under CentOS 5.3

Mounting NTFS Filesystems under CentOS 5.3
------------------------------------------

STEP 1. Using RPMforge

To enable RPMforge you can install the rpmforge-release package for your distribution.

Installing the rpmforge-release package

Download the correct package below and install the package by doing:

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.$dist.rf.$arch.rpm ----> see Distributions below
rpm -Uhv rpmforge-release-0.3.6-1.$dist.rf.$arch.rpm

<!> WARNING Substitute the URL in the example with the exact one from below, else it will not work.

This will install the repository for smart, apt and yum. For up2date a manual intervention is required.


Distributions:

RHEL / CentOS

<!> TIP For CentOS Yum users there is a very good document on how to enable RPMforge safely using the Yum priorities plugin

* RHEL5 / CentOS-5
o

i386: http://packages.sw.be/rpmforge-relea...l5.rf.i386.rpm
o

x86_64: http://packages.sw.be/rpmforge-relea....rf.x86_64.rpm
* RHEL4 / CentOS-4
o

i386: http://packages.sw.be/rpmforge-relea...l4.rf.i386.rpm
o

x86_64: http://packages.sw.be/rpmforge-relea....rf.x86_64.rpm
* RHEL3 / CentOS-3
o

i386: http://packages.sw.be/rpmforge-relea...l3.rf.i386.rpm
o

x86_64: http://packages.sw.be/rpmforge-relea....rf.x86_64.rpm
* RHEL2.1 / CentOS-2
o

i386: http://packages.sw.be/rpmforge-relea...l2.rf.i386.rpm

Red Hat Linux

* Red Hat 9
o

i386: http://packages.sw.be/rpmforge-relea...h9.rf.i386.rpm
* Red Hat 7.3
o

i386: http://packages.sw.be/rpmforge-relea...h7.rf.i386.rpm

------------------------------

STEP 2. Install the RPMForge rpm package:
e.q. #> rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

STEP 3. Finally, install NTFS-3G using this YUM command:
#> yum --enablerepo=rpmforge install fuse fuse-ntfs-3g dkms dkms-fuse

Details:

[root@centos ~]# yum --enablerepo=rpmforge install fuse fuse-ntfs-3g dkms dkms-fuse
Loaded plugins: allowdowngrade, fastestmirror, kernel-module, priorities, protectbase
Loading mirror speeds from cached hostfile
* rpmforge: apt.sw.be
* base: centosk3.centos.org
* updates: ftp.osuosl.org
* addons: ftp.osuosl.org
* extras: centosw.centos.org
rpmforge | 1.1 kB 00:00
primary.xml.gz | 3.3 MB 00:27
rpmforge 9241/9241
0 packages excluded due to repository protections
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package fuse.x86_64 0:2.7.4-1.el5.rf set to be updated
---> Package fuse-ntfs-3g.x86_64 0:2009.4.4-2.el5.rf set to be updated
---> Package dkms-fuse.noarch 0:2.7.4-1.nodist.rf set to be updated
---> Package dkms.noarch 0:2.0.20.4-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================== ==================================================================================================== =======
Package Arch Version Repository Size
==================================================================================================== ==================================================================================================== =======
Installing:
dkms noarch 2.0.20.4-1.el5.rf rpmforge 61 k
dkms-fuse noarch 2.7.4-1.nodist.rf rpmforge 70 k
fuse x86_64 2.7.4-1.el5.rf rpmforge 257 k
fuse-ntfs-3g x86_64 2009.4.4-2.el5.rf rpmforge 382 k

Transaction Summary
==================================================================================================== ==================================================================================================== =======
Install 4 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 770 k
Is this ok [y/N]: Exiting on user Command
Complete!



STEP 4. Somehow STEP #3 above did not work so I tried again but this time without the rpmforge optionsL
[root@centos ~]#> yum install fuse fuse-ntfs-3g dkms dkms-fuse

[root@centos ~]# yum install fuse fuse-ntfs-3g dkms dkms-fuse
Loaded plugins: allowdowngrade, fastestmirror, kernel-module, priorities, protectbase
Loading mirror speeds from cached hostfile
* rpmforge: apt.sw.be
* base: centosk3.centos.org
* updates: ftp.osuosl.org
* addons: ftp.osuosl.org
* extras: centosw.centos.org
0 packages excluded due to repository protections
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package fuse.x86_64 0:2.7.4-1.el5.rf set to be updated
---> Package fuse-ntfs-3g.x86_64 0:2009.4.4-2.el5.rf set to be updated
---> Package dkms-fuse.noarch 0:2.7.4-1.nodist.rf set to be updated
---> Package dkms.noarch 0:2.0.20.4-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================== ==================================================================================================== =======
Package Arch Version Repository Size
==================================================================================================== ==================================================================================================== =======
Installing:
dkms noarch 2.0.20.4-1.el5.rf rpmforge 61 k
dkms-fuse noarch 2.7.4-1.nodist.rf rpmforge 70 k
fuse x86_64 2.7.4-1.el5.rf rpmforge 257 k
fuse-ntfs-3g x86_64 2009.4.4-2.el5.rf rpmforge 382 k

Transaction Summary
==================================================================================================== ==================================================================================================== =======
Install 4 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 770 k
Is this ok [y/N]: y
Downloading Packages:
(1/4): dkms-2.0.20.4-1.el5.rf.noarch.rpm | 61 kB 00:01
(2/4): dkms-fuse-2.7.4-1.nodist.rf.noarch.rpm | 70 kB 00:00
(3/4): fuse-2.7.4-1.el5.rf.x86_64.rpm | 257 kB 00:02
(4/4): fuse-ntfs-3g-2009.4.4-2.el5.rf.x86_64.rpm | 382 kB 00:04
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 55 kB/s | 770 kB 00:14
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : fuse [1/4]
Installing : dkms [2/4]
Installing : dkms-fuse [3/4]
Installing : fuse-ntfs-3g [4/4]

Installed: dkms.noarch 0:2.0.20.4-1.el5.rf dkms-fuse.noarch 0:2.7.4-1.nodist.rf fuse.x86_64 0:2.7.4-1.el5.rf fuse-ntfs-3g.x86_64 0:2009.4.4-2.el5.rf
Complete!

This one works!!!



STEP 5. Mount your ntfs partition(s)

[root@centos Desktop]# mount -t ntfs-3g /dev/hda1 /win/hda1
[root@centos Desktop]# mount
/dev/sda5 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda9 on /home type ext3 (rw)
/dev/sda10 on /var type ext3 (rw)
/dev/sda11 on /tmp type ext3 (rw)
/dev/sda7 on /usr type ext3 (rw)
/dev/sda8 on /usr/lib type ext3 (rw)
/dev/sda12 on /vm type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
none on /var/lib/xenstored type tmpfs (rw)
/dev/hdb on /media/CentOS_5.3_Final type iso9660 (ro,noexec,nosuid,nodev,uid=0)
/dev/hda1 on /win/hda1 type fuseblk (rw,allow_other,blksize=4096) ----------------> this is an NTFS partition!



STEP 6. Edit your /etc/fstab to have your desired NTFS partition be mounted automatically at startup.

/dev/sda1 /win/sda1 ntfs-3g rw,umask=0000,defaults 0 0
/dev/sda2 /win/sda2 ntfs-3g rw,umask=0000,defaults 0 0


Cool huh!

 
Old 07-25-2009, 10:44 PM   #5
nolidocot
LQ Newbie
 
Registered: Jul 2009
Location: Manila
Posts: 3

Rep: Reputation: 0
Errata: It's /dev/hda1 and NOT /dev/sda1
"h" not "s"

STEP 6. Edit your /etc/fstab to have your desired NTFS partition be mounted automatically at startup.

/dev/hda1 /win/hda1 ntfs-3g rw,umask=0000,defaults 0 0
/dev/hda2 /win/hda2 ntfs-3g rw,umask=0000,defaults 0 0

Errata: It's /dev/hda1 and NOT /dev/sda1
"h" not "s"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiled kernels with FUSE & NTFS support for CentOS 5.1? DanSK Red Hat 5 07-23-2008 06:43 PM
Installing Centos without formatting current Vista NTFS partition jimble Linux - Distributions 1 02-29-2008 02:38 PM
LXer: Installing Lighttpd With PHP5 And MySQL Support On CentOS 5.0 LXer Syndicated Linux News 0 10-08-2007 06:00 PM
Help with the following; Installing themes, Installing Mp3 support, .deb packages Kittie Rose Linux - General 2 11-26-2006 01:27 PM
Kernel(?) problem while installing NTFS support Brian of Gep Linux - Newbie 1 08-06-2003 12:22 AM


All times are GMT -5. The time now is 05:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration