LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-02-2013, 12:14 PM   #1
mdlinuxwolf
Member
 
Registered: Dec 2006
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 385

Rep: Reputation: 42
command line reiser4


I'm trying to mount a reiser4 drive that has years of my data on it. I was migrating from mint 12 and I wasn't sure if I wanted PC-BSD 9.2 or Mint 15 w. KDE. That's why I did Reiser4 in the first place. Besides, its supposed to be much faster for retrieval and uploading, a nice bonus.

What is the command line for using reiser4progs? Specifically, how do you use a shell to mount a reiser4 partition? I assume the the regular graphical tools will work once the partition is mounted properly, or so I've been led to believe.

Synaptic appears to have installed reiser4progs and its dependencies properly. Heck, I even installed the regular reiserprogs as well.

When I try to open the drive with dolphin, running from a window as root, it can't mount the drive because its doesn't know what the file is.

http://s1162.photobucket.com/user/wh...c205f.png.html

As you can see, it should just work but doesn't.

I have a demo version of Seagate's recovery tool running and it says that it has found thousands of files. The key costs around $100, assuming I don't have to buy a physical copy and have it mailed. I would rather not pay that. Besides, I would have to move the data to another external drive formatted as fat32 and then put the Linux drive back into the laptop and pull it down from there. Mint 15 probably has the same recovery tools as 12 does, if not better. This would be more time consuming as well.

Last edited by mdlinuxwolf; 12-02-2013 at 12:26 PM. Reason: additional info
 
Old 12-02-2013, 01:37 PM   #2
edorig
Member
 
Registered: Apr 2013
Location: France
Distribution: Slackware; Ubuntu
Posts: 119

Rep: Reputation: Disabled
The message is clear, you don't have a kernel driver for the reiser filesystem. What is the output of
cat /proc/filesystems ? Have you tried sudo modprobe reiserfs before mount -t reiser4fs /dev/sd[...] /mnt ?
Have you installed the appropriate kernel modules or only the reiserfs progs ?
If your distribution kernel lacks support for reiserfs, you will need to download kernel source from kernel.org
and compile a special kernel (that has reiserfs support either in kernel or as a module) by yourself.
If you want compatibility with BSD, it might be better to use ext2/ext3 instead of reiserfs as the former is supported by the BSD kernel (see https://wiki.freebsd.org/Ext2fs).
 
Old 12-02-2013, 02:14 PM   #3
mdlinuxwolf
Member
 
Registered: Dec 2006
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 385

Original Poster
Rep: Reputation: 42
I haven't done anything with the kernel. I thought reiser4progs was the patch. Exactly which kernel has the right patches and how do I force mint 15 to upgrade or downgrade to it?
 
Old 12-03-2013, 01:29 PM   #4
edorig
Member
 
Registered: Apr 2013
Location: France
Distribution: Slackware; Ubuntu
Posts: 119

Rep: Reputation: Disabled
Quote:
Originally Posted by mdlinuxwolf View Post
I thought reiser4progs was the patch.
Your assumption was wrong. reiserfsprogs is only a set of programs
  • mkreiserfs (to format partitions)
  • debugreiserfs (to fix damaged resierfs filesystems)
  • reseirfsck (to check filesystems at boot time)
and you need to have the correct kernel module to be able to mount reiser filesystems.

What you should do is type
Quote:
cat /proc/filesystems
in a terminal window
to check whether your kernel supports reiser or not. If not, you should ckeck whether
the kernel module is already on your system by examining the directory:
Quote:
/lib/modules/[kernel version number]/kernel/fs/reiserfs/
which should contain a resierfs.ko file.
If you don't have reiserfs.ko in that directory, you should check whether your distribution
has the proper kernel module in its repository. If yes, you will only need to install it with
apt-get. If not, you will have to compile your own kernel.
 
Old 03-05-2017, 02:18 AM   #5
Glenn D.
Member
 
Registered: May 2009
Location: ACT - Australia
Distribution: Opensuse x86_64 (Latest)
Posts: 132

Rep: Reputation: 26
Hello,

You need to boot with a reiser4 enabled kernel

build kernel with parameters

CONFIG_REISER4_DEBUG=n
CONFIG_REISER4_FS=m

kernels built r4 enabled
https://build.opensuse.org/package/b...=openSUSE_13.2

info:
https://en.wikipedia.org/wiki/Reis
http://www.spinics.net/lists/reiserfs-devel/


# fsck.reiser4 --help
Usage: fsck.reiser4 [ options ] FILE
Fsck options:
--check checks the consistency (default)
--fix fixes minor corruptions
--build-sb rebuilds the super block
--build-fs rebuilds the filesystem

-L, --logfile file complains into the file
-n, --no-log makes fsck to not complain
-a, --auto automatically checks the consistency
without any questions.
-q, --quiet supresses gauges
-r ignored
Plugins options:
--print-profile prints the plugin profile.
-l, --print-plugins prints all known plugins.
-o, --override TYPE=PLUGIN overrides the default plugin of the type
"TYPE" by the plugin "PLUGIN" in the
profile.
Common options:
-?, -h, --help prints program usage.
-V, --version prints current version.
-y, --yes assumes an answer 'yes' to all questions.
-f, --force makes fsck to use whole disk, not block
device or mounted partition.
-p, --preen automatically repair the filesysem.
-c, --cache N number of nodes in tree buffer cache

# debugfs.reiser4 /dev/sdb2 --print-super
debugfs.reiser4 1.1.0
Format release: 4.0.1
Copyright (C) 2001-2005 by Hans Reiser, licensing governed by reiser4progs/COPYING.

Master super block (16):
magic: ReIsEr4
blksize: 4096
format: 0x0 (format40)
uuid: 139d06a8-1886-44a0-a058-8f9da1ab88cf
label: <none>

Format super block (17):
plugin: format40
description: Disk-format plugin.
version: 1
magic: ReIsEr40FoRmAt
mkfs id: 0x14b9244f
flushes: 0
blocks: 85725440
free blocks: 57365574
root block: 28395039
tail policy: 0x2 (smart)
next oid: 0x10004
file count: 5
tree height: 3
key policy: LARGE

FS status block (21):
FS marked consistent



--Glenn
 
  


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
[SOLVED] Cursor does not move to the bottom line and overwrite to same line on command line mesuutt Linux - Newbie 3 02-25-2012 08:04 AM
Print all PID folders from /proc line-by-line with this format (( PID: command-line )) courteous Linux - Newbie 7 12-12-2010 04:47 PM
awk command line: blank line record sep, new line field sep robertmarkbram Programming 4 02-21-2010 05:25 AM
xine command line? or some other command line only engine? lumix Linux - Software 2 08-10-2007 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:46 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
Open Source Consulting | Domain Registration