Mount reiserfs partitions on CentOS | MyLiteratureTechLife.COM

Mount reiserfs partitions on CentOS

September 19th, 2010 1 Comment






















CentOS use ext3 file system, and it do not support reiserfs. Therefore if you try to mount a drive with reiserfs partition, it give error

mount: fs type reiserfs not supported by kernel

It’s possible to see what filesystems are supported by running this command:

cat /proc/filesystems

On my fairly default install CentOS 4 machine, the output of the above command was this:

nodev  sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   binfmt_misc
nodev   usbfs
nodev   usbdevfs
nodev   futexfs
nodev   tmpfs
nodev   pipefs
nodev   eventpollfs
nodev   devpts
ext2
nodev   ramfs
nodev   hugetlbfs
iso9660
nodev   relayfs
nodev   mqueue
ext3
nodev   rpc_pipefs
nodev   autofs
nodev   nfs
nodev   nfs4

So clearly reiserfs was not available for mounting a filesyetem. To enable it, you need to edit the /etc/yum.repos.d/CentOS-Base.repo file and then install a special CentOS Plus kernel which includes reiserfs support. Using your favourite text editor (nano in the example below), run the following command to edit the file, running it either as the root user or using sudo:

nano /etc/yum.repos.d/CentOS-Base.repo

Look for the [centosplus] section and change the enabled flag from 0 to 1 and add the includepkgs line as shown below:

[centosplus]
...
enabled=1
...
includepkgs=kernel* reiserfs-utils

Then add the following to the [base] and [updates] sections:

exclude=kernel kernel-devel kernel-smp-* kernel-hugemem* kernel-largesmp*

Now run

yum install reiserfs-utils kernel
[root@server ~]# yum install reiserfs-utils kernel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.cisp.com
 * base: mirror.hmc.edu
 * centosplus: mirror.web-ster.com
 * extras: mirrors.tummy.com
 * updates: mirrors.ecvps.com
addons                                                             |  951 B     00:00
base                                                               | 2.1 kB     00:00
centosplus                                                         | 1.9 kB     00:00
centosplus/primary_db                                              |  78 kB     00:00
extras                                                             | 2.1 kB     00:00
updates                                                            | 1.9 kB     00:00
Excluding Packages from CentOS-5 - Base
Finished
Reducing CentOS-5 - Plus to included packages only
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kernel.i686 0:2.6.18-194.11.1.el5.centos.plus set to be installed
---> Package reiserfs-utils.i386 2:3.6.19-2.4.1 set to be updated
--> Finished Dependency Resolution
--> Running transaction check
---> Package kernel.i686 0:2.6.18-164.15.1.el5 set to be erased
--> Finished Dependency Resolution
 
Dependencies Resolved
 
==========================================================================================
 Package             Arch      Version                              Repository       Size
==========================================================================================
Installing:
 kernel              i686      2.6.18-194.11.1.el5.centos.plus      centosplus       18 M
 reiserfs-utils      i386      2:3.6.19-2.4.1                       centosplus      482 k
Removing:
 kernel              i686      2.6.18-164.15.1.el5                  installed        41 M
 
Transaction Summary
==========================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)
 
Total download size: 19 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): reiserfs-utils-3.6.19-2.4.1.i386.rpm                        | 482 kB     00:00
(2/2): kernel-2.6.18-194.11.1.el5.centos.plus.i686.rpm             |  18 MB     00:16
------------------------------------------------------------------------------------------
Total                                                     1.1 MB/s |  19 MB     00:17
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : kernel                                                             1/3
  Installing     : reiserfs-utils                                                     2/3
  Cleanup        : kernel                                                             3/3 
 
Removed:
  kernel.i686 0:2.6.18-164.15.1.el5                                                       
 
Installed:
  kernel.i686 0:2.6.18-194.11.1.el5.centos.plus     reiserfs-utils.i386 2:3.6.19-2.4.1    
 
Complete!

Reboot server using reboot command

[root@server ~]# reboot

After rebooting, cat /proc/filesystems will now show this:

nodev  sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   binfmt_misc
nodev   usbfs
nodev   usbdevfs
nodev   futexfs
nodev   tmpfs
nodev   pipefs
nodev   eventpollfs
nodev   devpts
ext2
nodev   ramfs
nodev   hugetlbfs
iso9660
nodev   relayfs
nodev   mqueue
ext3
nodev   rpc_pipefs
nodev   autofs
nodev   nfs
nodev   nfs4
reiserfs

Note that reiserfs is now listed at the bottom, and you will be able to now successfully mount the filesystem formatted with reiserfs.

Related posts:

  1. How to mount second hard drive in CentOS 5.x
  2. Installing yum in CentOS 5.3
  3. Solution: ERROR: Unable to install the “psa-backup-manager-9.5.2-cos5.build95100504.12.i586″ package.
  4. Installing OpenVZ on CentOS 5.2
  5. Installing screen on CentOS 5.x
  6. Changing time,date,zone in Linux
  7. Configuring range of ips in Linux,Centos,fedora core, red hat
  8. Installing RED5 server in CentOS 5.x
 

If You Like This Post, Share it With Your Friends & Peers

Digg
stumbleupon
Delicious
facebook
twitter
reddit
rss feed bookmar
 

One Comment to “Mount reiserfs partitions on CentOS”

  1. [...] อ้างอิงจาก http://www.myliteraturetechlife.com/mount-reiserfs-partitions-on-centos/ window.fbAsyncInit = function() { FB.init({appId: "113258878730622", status: true, cookie: [...]

Leave your comment here:

*

Alexa Rank