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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-05-2010, 12:03 AM
|
#1
|
Senior Member
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013
Rep:
|
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.
|
|
|
02-05-2010, 12:27 AM
|
#2
|
Senior Member
Registered: Aug 2009
Posts: 3,790
|
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
|
|
|
02-05-2010, 08:40 AM
|
#3
|
Senior Member
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013
Original Poster
Rep:
|
Quote:
Originally Posted by kbp
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.
|
|
|
02-05-2010, 08:45 AM
|
#4
|
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
|
Check out /proc/filesystems and see if it list reiserfs.
If not you would need to load the kernel module.
|
|
|
02-05-2010, 09:16 AM
|
#5
|
Member
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468
Rep:
|
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.
|
|
|
02-07-2010, 10:50 AM
|
#6
|
Senior Member
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013
Original Poster
Rep:
|
Quote:
Originally Posted by ongte
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.
|
|
|
02-08-2010, 09:27 AM
|
#7
|
Member
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|