root directory with reiserfs??


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users root directory with reiserfs??
# 1  
Old 04-17-2009
root directory with reiserfs??

Today,I have recompile kernel 2.6.24 with reiserfs support with Module on rhel5.then I make following change:
1:change /etc/fstab:
/dev/Vg1/lv.root / reiserfs defaults 1 1
and cd /boot/; mkinitrd --with=reiserfs initrd-reiserfs-2.6.24.img. 2.6.24
2:then I use other support reiserfs os enter rescue mode.
commands:
mkdir /source;lvm vgchange -a y Vg1;mount /dev/Vg1/lv.root /source;mkdir /backup;mount /dev/sda6 /backup;
cd /source;tar cvzf /backup/rhel5.tgz *;umount /source;
mkreiserfs /dev/Vg1/lv.root;mount /dev/Vg1/lv.root /source;
cd /source;tar xvzf /backup/rhel5.tgz.then reboot with 2.6.24.

Problem:
VFS:Can't find ext3 filesystem on dev dm-0
mount:error mounting /dev/root on /sysroot as ext3:Invalid argument
setuproot:moving /dev failed:no such file or directory
setuproot:error mounting /proc:no such file or direcotry
setuproot:.......
.............!!!!
kernel panic-not sysncing:Attempted to kill init!

Please help me???
Thanks!!!Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies

2. Linux

Mount reiserfs .dsk image failed: can't read superblock

I have a failed 160 GB Western Digital Netcenter NAS disk and its image after failing in .DSK format. When I connect the disk to my ubuntu machine and typed: # losetup -o 512006144 /dev/loop1 /dev/sdc # mkdir /tmp/sdc # mount -r -t reiserfs /dev/loop1 /tmp/sdc I get my folders and... (0 Replies)
Discussion started by: jalil1408
0 Replies

3. UNIX for Dummies Questions & Answers

Removing directory with leading hyphen from root directory

I know that this basic question has been asked many times and solutions all over the internet, but none of the are working for me. I have a directory in the root directory, named "-p". # ls -l / total 198 <snip> drwxr-xr-x 4 root root 4096 Dec 3 14:18 opt drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: edstevens
2 Replies

4. Web Development

What is a root directory

Hey guys. I am learning PHP and I just started a few minutes ago and it said after you maked your first hello world php file to upload it to your root directory in your webserver. What is your root directory? Is it where like all the appearance of the website is held (like what we see when we enter... (6 Replies)
Discussion started by: orszhak
6 Replies

5. Ubuntu

Root directory not available!

I am using Ubuntu 10.10. I want to access root home directory (~) through GUI and want access to its content. I login from administrator who is the only login user and have all rights for it. I can access the content through terminal but can't do it through GUI. Remedy my problem (5 Replies)
Discussion started by: nixhead
5 Replies

6. UNIX for Dummies Questions & Answers

How to display only Owner and directory/sub directory names under particular root

hai, I am new to Unix, I have a requirement to display owner name , directory or sub directory name, who's owner name is not equal to "oasitqtc". (here "oasitqtc" is the owner of the directory or sub directory.) i have a command (below) which will display all folders and sub folders, but i... (6 Replies)
Discussion started by: gagan4599
6 Replies

7. UNIX for Dummies Questions & Answers

root directory

root directory is going out of space. how can i free up memory by deleting unwanted file. which files are safe to remove.i checked tmp dir. also. but no files. thanks (1 Reply)
Discussion started by: ajantha
1 Replies

8. Filesystems, Disks and Memory

ReiserFS vs ext3 vs anything else?

As i'm sure you all know, ext2 (and then ext3) is the most widely used linux fs... but some distros (SUSE & Debian) are now chosing to either use by default, or at least give the option of using ReiserFS. What is it about ReiserFS that's so great exactly? I understand that it has a limitless... (6 Replies)
Discussion started by: fishsponge
6 Replies

9. UNIX for Advanced & Expert Users

Grub and Reiserfs

Hi all I just installed Fedora Core 3 onto my pc which is running slackware as the 'main' os I have been using LILO as the boot loader for a long time but thought I'd swap to GRUB for a change. Fedora boots fine. I have a seperate /boot partition for my slackware install ......its... (0 Replies)
Discussion started by: silvaman
0 Replies

10. UNIX for Advanced & Expert Users

Convert filesystem from reiserfs to ext2

Hi, My current linux server's filesystems is reiserfs. Unfortunately I need to enable quota for my users and as far as I know quota won't run on reiserfs. So, can I convert the filesystem types to ext2 from reiserfs without having to re-install my o/s? Or, is there any quota applications... (1 Reply)
Discussion started by: vancouver_joe
1 Replies
Login or Register to Ask a Question
REISERFSTUNE(8) 					      System Manager's Manual						   REISERFSTUNE(8)

NAME
reiserfstune SYNOPSIS
reiserfstune [ -f ] [ -j | --journal-device FILE ] [ --no-journal-available ] [ --journal-new-device FILE ] [ -s | --journal-new-size N ] [ -o | --journal-new-offset N ] [ -t | --max-transaction-size N ] [ -u | --uuid UUID ] [ -l | --label LABEL ] device DESCRIPTION
reiserfstune is used for tuning the ReiserFS journal. It can change two parameters (journal size and maximum transaction size), and it can move the journal's location to a new specified block device. (The old ReiserFS's journal may be kept unused, or discarded at the user's option.) Note: At the time of writing this feature was implemented for a special release of ReiserFS, and was not expected to be put into the mainstream kernel until approximately Linux 2.5. This means that if you have the stock kernel you must apply a special patch. Without this patch the kernel will refuse to mount the newly modified file system. We will charge $25 to explain this to you if you ask us why it doesn't work. Perhaps the most interesting application of this code is to put the journal on a solid state disk. device is the special file corresponding to the newly specified block device (e.g /dev/hdXX for IDE disk partition or /dev/sdXX for the SCSI disk partition). OPTIONS
-j | --journal-device FILE FILE is the file name of the block device the file system has the current journal (the one prior to running reiserfstune) on. This option is required when the journal is already on a separate device from the main data device (although it can be avoided with --no- journal-available). If you don't specify journal device by this option, reiserfstune suppose that journal is on main device. --no-journal-available allows reiserfstune to continue when the current journal's block device is no longer available. This might happen if a disk goes bad and you remove it (and run fsck). --journal-new-device FILE FILE is the file name of the block device which will contain the new journal for the file system. If you don't specify this, reis- erfstune supposes that journal device remains the same. -s | --journal-new-size N N is the size parameter for the new journal. When journal is to be on a separate device - its size defaults to number of blocks that device has. When journal is to be on the same device as the filesytem - its size defaults to amount of blocks allocated for journal by mkreiserfs when it created the filesystem. Minimum is 513 for both cases. -o | --journal-new-offset N N is an offset in blocks where journal will starts from when journal is to be on a separate device. Default is 0. Has no effect when journal is to be on the same device as the filesystem. Most users have no need to use this feature. It can be used when you want the journals from multiple filesystems to reside on the same device, and you don't want to or cannot partition that device. -t | --maximal-transaction-size N is the maximum transaction size parameter for the new journal. The default, and max possible, value is 1024 blocks. It should be less than half the size of the journal. If specifed incorrectly, it will be adjusted. -f | --force Normally reiserfstune will refuse to change a journal of a file system that was created before this journal relocation code. This is because if you change the journal, you cannot go back (without special option --make-journal-standard) to an old kernel that lacks this feature and be able to use your filesytem. This option forces it to do that. Specified more than once it allows to avoid ask- ing for confirmation. --make-journal-standard As it was mentioned above, if your file system has non-standard journal, it can not be mounted on the kernel without journal reloca- tion code. The thing can be changed, the only condition is that there is reserved area on main device of the standard journal size 8193 blocks (it will be so for instance if you convert standard journal to non-standard). Just specify this option when you relo- cate journal back, or without relocation if you already have it on main device. -u | --uuid UUID Set the universally unique identifier ( UUID ) of the filesystem to UUID (see also uuidgen(8)). The format of the UUID is a series of hex digits separated by hypthens, like this: "c1b9d5a2-f162-11cf-9ece-0020afc76f16". -l | --label LABEL Set the volume label of the filesystem. LABEL can be at most 16 characters long; if it is longer than 16 characters, reiserfs- tune will truncate it. POSSIBLE SCENARIOS OF USING REISERFSTUNE
: 1. You have ReiserFS on /dev/hda1, and you wish to have it working with its journal on the device /dev/journal boot kernel patched with special "relocatable journal support" patch reiserfstune /dev/hda1 --journal-new-device /dev/journal -f mount /dev/hda1 and use. You would like to change max transaction size to 512 blocks reiserfstune -t 512 /dev/hda1 You would like to use your file system on another kernel that doesn't contain relocatable journal support. umount /dev/hda1 reiserfstune /dev/hda1 -j /dev/journal --journal-new-device /dev/hda1 --make-journal-standard mount /dev/hda1 and use. 2. You would like to have ReiserFS on /dev/hda1 and to be able to switch between different journals including journal located on the device containing the filesystem. boot kernel patched with special "relocatable journal support" patch mkreiserfs /dev/hda1 you got solid state disk (perhaps /dev/sda, they typically look like scsi disks) reiserfstune --journal-new-device /dev/sda1 -f /dev/hda1 Your scsi device dies, it is three in the morning, you have an extra IDE device lying around reiserfsck --no-journal-available /dev/hda1 or reiserfsck --rebuild-tree --no-journal-available /dev/hda1 reiserfstune --no-journal-available --journal-new-device /dev/hda1 /dev/hda1 using /dev/hda1 under patched kernel AUTHOR
This version of reiserfstune has been written by Vladimir Demidov <vova@namesys.com> and Edward Shishkin <edward@namesys.com>. BUGS
Please repoort bugs to the ReiserFS mail list <reiserfs-list@namesys.com> SEE ALSO
reiserfsck(8), debugreiserfs(8), mkreiserfs(8) Reiserfsprogs-3.6.4 January 2002 REISERFSTUNE(8)