LinuxQuestions.org
Review your favorite Linux distribution.
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 02-05-2010, 12:03 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Rep: Reputation: 30
format new partition?


Right, I almost royally messed up my server by trying to create a reiser filesystem.
I had to change the etc/fstab on reboot as it was failing.
This has removed the /home label on the /dev/sda2 partition.
fdisk -l gives:
Quote:
[root@ sysconfig]# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 10 80293+ 83 Linux
/dev/sda2 11 29061 233352157+ 83 Linux
/dev/sda3 29062 29698 5116702+ 83 Linux
/dev/sda4 29699 30401 5646847+ 5 Extended
/dev/sda5 29699 30335 5116671 83 Linux
/dev/sda6 30336 30400 522081 82 Linux swap / Solaris
[root@ sysconfig]#
df -h gives the following but it is missing sda2
Do I have to remount it or something?
I then want to install reiser on the /dev/sda2 and relabel /home. I intend to have my squid cache on this drive also.
Quote:
[root@ ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 4.8G 1.5G 3.0G 34% /
/dev/sda3 4.8G 1.7G 2.9G 37% /var
/dev/sda1 76M 23M 50M 32% /boot
tmpfs 465M 0 465M 0% /dev/shm
[root@serve ~]#
EDIT: I successfully ran reiserfs on the partition but it will not now recognise the filesystem when trying to mount it.
Quote:
[root@serve ~]# mkfs.reiserfs /dev/sda2
mkfs.reiserfs 3.6.19 (2003 www.namesys.com)

A pair of credits:
The Defense Advanced Research Projects Agency (DARPA, www.darpa.mil) is the
primary sponsor of Reiser4. DARPA does not endorse this project; it merely
sponsors it.

Jeremy Fitzhardinge wrote the teahash.c code for V3. Colin Plumb also
contributed to that.


Guessing about desired format.. Kernel 2.6.18-164.11.1.el5 is running.
Format 3.6 with standard journal
Count of blocks on the device: 58338032
Number of blocks consumed by mkreiserfs formatting process: 9992
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 98f490bc-f8a7-4e7b-9f3a-50ac6f1e98f8
ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
ALL DATA WILL BE LOST ON '/dev/sda2'!
Continue (y/n):y
Initializing journal - 0%....20%....40%....60%....80%....100%
Syncing..ok

Tell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.

ReiserFS is successfully created on /dev/sda2.
[root@serve ~]# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 10 80293+ 83 Linux
/dev/sda2 11 29061 233352157+ 83 Linux
/dev/sda3 29062 29698 5116702+ 83 Linux
/dev/sda4 29699 30401 5646847+ 5 Extended
/dev/sda5 29699 30335 5116671 83 Linux
/dev/sda6 30336 30400 522081 82 Linux swap / Solaris
[root@serv]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 4.8G 1.5G 3.0G 34% /
/dev/sda3 4.8G 1.7G 2.9G 37% /var
/dev/sda1 76M 23M 50M 32% /boot
tmpfs 465M 0 465M 0% /dev/shm
[root@se]#

[root@serve ~]# mount /dev/sda2 /var/spool/squid
mount: unknown filesystem type 'reiserfs'
[root@server ~]#

Last edited by qwertyjjj; 02-05-2010 at 12:17 AM.
 
Old 02-05-2010, 12:27 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
There's an old post here that seems to indicate you need the CentOS Plus repo enabled, but I haven't tested this myself.

cheers
 
Old 02-05-2010, 08:40 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by kbp View Post
There's an old post here that seems to indicate you need the CentOS Plus repo enabled, but I haven't tested this myself.

cheers
Yep, it's enabled, that's how I downloaded reiserfs.
 
Old 02-05-2010, 08:45 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Check out /proc/filesystems and see if it list reiserfs.
If not you would need to load the kernel module.
 
Old 02-05-2010, 09:16 AM   #5
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
I'm not sure if you'll actually have the reiserfs module.
Fine out with:
Quote:
# modinfo reiserfs
You don't appear to be running the patched kernel. Just having the reiserfs-utils is not gonna be much good if the kernel won't mount it.
The post says the patched kernel will be indicated as .el5.centos.plus

Besides, reiserfs is left out of Centos/RHEL for a good reason. It does not work with SELinux.
 
Old 02-07-2010, 10:50 AM   #6
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by ongte View Post
I'm not sure if you'll actually have the reiserfs module.
Fine out with:

You don't appear to be running the patched kernel. Just having the reiserfs-utils is not gonna be much good if the kernel won't mount it.
The post says the patched kernel will be indicated as .el5.centos.plus

Besides, reiserfs is left out of Centos/RHEL for a good reason. It does not work with SELinux.
Supposedly it is a more efficient filesystem for squid than ext3.
Would you recommend I just use ext3 in the meantime?
I think the elrepo is here: http://elrepo.org/tiki/kmod-reiserfs

A reboot after this should enable the resierfs partition shouldn't it?
Quote:
[root@server yum.repos.d]# cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cpuset
nodev binfmt_misc
nodev debugfs
nodev securityfs
nodev sockfs
nodev usbfs
nodev pipefs
nodev anon_inodefs
nodev futexfs
nodev tmpfs
nodev inotifyfs
nodev eventpollfs
nodev devpts
ext2
nodev ramfs
nodev hugetlbfs
iso9660
nodev mqueue
ext3
nodev rpc_pipefs
nodev autofs
[root@server yum.repos.d]# yum install reiserfs-utils kernel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.sov.uk.goscomb.net
* base: mirror.sov.uk.goscomb.net
* centosplus: mirror.sov.uk.goscomb.net
* extras: mirror.sov.uk.goscomb.net
* rpmforge: ftp-stud.fht-esslingen.de
* updates: mirror.sov.uk.goscomb.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package 2:reiserfs-utils-3.6.19-2.4.1.i386 already installed and latest version
Package kernel-2.6.18-164.11.1.el5.centos.plus.i686 already installed and latest version
Nothing to do
[root@serve yum.repos.d]#

Last edited by qwertyjjj; 02-07-2010 at 11:31 AM.
 
Old 02-08-2010, 09:27 AM   #7
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
You need to have the reiserfs module loaded at boot.
You can try it this way:
Quote:
# echo modprobe reiserfs >> /etc/rc.modules
# chmod +x /etc/rc.modules
Hopefully this loads it up early enough in the boot process to allow fstab entries to mount it.
 
  


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
Partition or format? flycast Linux - Newbie 2 07-24-2006 12:00 AM
should i format X partition after creat Y partition No2002 Linux - General 3 07-16-2005 11:13 AM
Format a partition ar1 Linux - General 1 01-28-2004 12:05 PM
How do I format a partition snatale1 Linux - Newbie 2 10-09-2003 12:02 AM
partition w/o format Netrack Linux - General 4 01-14-2003 08:26 PM


All times are GMT -5. The time now is 07:48 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration