![]() |
|
||||||||
|
|
|||||||||
![]() 2007 CHLUGger of the Year! Mailing List Archive Help Open Source Question of the Day Mission Directions to Meetings Contact Us Video Guest Speaker Info Acceptable Use Link To Us! Linux Hacking and the Law New! VOIP with Asterisk Assessing OSS Knoppix Ubiquitous Computing Filesystem Hierarchy Virtual Hosting Wesnoth Xbox/Linux udev Emacs Talk Notes Home Sweet ~ Top 100 CLIs Device Drivers Real Time Linux Network Considerations Part II Network Considerations Part I Amanda Presentation GNU/Linux Calculators Configuring Rio ReiserFS Linux Sound Samba notes Network time protocol C programming in Linux Boot, startup and shutdown hdparm HOWTO Ubuntu NJ LoCo New! Cherry Hill Library RUSLUG LUG in Princeton Loads of Linux Links LinuxToday.com Art of UNIX Programming More Links Contact Congress Why We Use Linux Companies Using Linux Linux in Business ![]()
![]()
![]() ![]() |
Creating and Mounting a Reiser Filesystem
Note: These instructions apply to Red Hat 7.1 with a stock kernel. Visit http://www.reiserfs.org
for complete information about the Reiser filesystem.
0. Before a Reiser filesystem can be created, the reiserfs-utils RPM needs to be installed. The RPM contains reiserfsck, mkreiserfs, debugreiserfs, and other utilities. # rpm -Uvh reiserfs-utils*.rpm
1. Find the device name of the new drive. # fdisk -l
Here is another way to find the device name: # dmesg | grep hd
In this case the new drive is /dev/hdc, IDE secondary master.
2. Create a partition for the new drive. # fdisk /dev/hdc (The "cfdisk" utility could be used in place of "fdisk". Although cfdisk may be easier to use, the use of fdisk is easier to describe. That is why I chose to use fdisk in this case. Also, I had trouble running cfdisk in a terminal window.) Show the command menu. "?" or "m"
Show the partition table. "p"
This shows that there are no partitions currently defined for /dev/hdc. The following assumes that you want to make one partition that uses the entire drive. If not, you can enter a partition size when prompted. For example, "+500M" for a 500 megabyte partition. Add a new, primary Linux (type 83) partition. "n, p, 1, enter, enter" This is how the new partition table should look.
Notice the "1" added to /dev/hdc. That is the new partition. Also, the drive is not flagged for booting. Write the partition table to disk and exit. "w" Reboot the system. (This may not be necessary, but it seemed to help.)
3. Create the Reiser filesystem. # mkreiserfs /dev/hdc1 (If the "mkreiserfs" command is not found, see step 0.)
4. Create a mount point and mount the new filesystem. # mkdir /newdir (for example) # mount -t reiserfs /dev/hdc1 /newdir Notice that when a Reiser filesystem is mounted, the reiserfs module is loaded. # lsmod
5. Make sure the mount command worked. # mount
# df -h
6. Optional. Have the new filesystem automatically mount at boot. # pico -w /etc/fstab Add a line similar to the following to the end of the /etc/fstab file. /dev/hdc1 /newdir reiserfs defaults 1 2
Checking the ReiserFS # umount /dev/hdc1 # reiserfsck /dev/hdc1 (You must type "Yes" to continue the check.) # mount -t reiserfs /dev/hdc1 /newdir Useful Links
|