Solved

Encrypted Reiserfs Fails to Mount -- Reiserfsck Fails as Well

Posted on 2004-07-30
9
777 Views
Last Modified: 2013-12-15
This is rather sordid...

I formatted a reiserfs /Crypt directory (40GB of files that I would like to retrieve) with encryption (I'm using SuSE 8.2).

Booting the system gives the friendly output of:

fsck failed. Please repair maually and reboot. The root file system is currently mounted read-only. To remount it read-write do:
bash#mount -n -o remount,rw /

I've tried running fsck and reiserfsck, which says "reiserfs_open: neither new nor old reiserfs format found on /dev/hda4
reiserfsck: Cannot open filesystem on "/dev/hda4"

Just to be sure, I also checked it with e2fsck and jfs_fsck to no avail.

So, I need to be able to mount this system. What can I do?
0
Comment
Question by:AtomAntic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 2
9 Comments
 

Author Comment

by:AtomAntic
ID: 11681387
I used the SuSE install/rescue boot to run reiserfsck on /dev/hda2 (the / system) and it returned no bad blocks -- looked ok.

badblocks /dev/hda4 returned no bad blocks found...
Still can't run it on /dev/hda4, though.

one more thing...

boot logs show this as well:

reiserfsck: Cannot open filesystem on "/dev/hda4"
Warning... fsck.reiserfs for device /dev/hda4 exited with signal 6.
fsck.reiserfs /dev/hda4 failed (status 0x8). Run manually!

0
 

Author Comment

by:AtomAntic
ID: 11681412
I also get this

# mount /Crypt

sh-2021: reiserfs_read_super: can not find reiserfs on ide0(3,4)
mount: wrong fs type, bad option, bad superblock on /dev/hda4, or too many mounted file systems
0
 
LVL 9

Expert Comment

by:e-tsik
ID: 11685050
Hi :-)

It could be a problem that happens during the format process.
Can you post the output of
fdisk -l /dev/hda

Can you also post the exact command you use to format your partition and the output of it?
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

Author Comment

by:AtomAntic
ID: 11686363
It has data on it and worked for a while after I formatted it.

The main problem is really not that the /Crypt partition won't mount but that the system itself won't boot.

I've run fsck on /dev/hda2 (the root partition) and it outputs fine in read-only mode. This doesn't change anything...
In read-write it uses reiserfsck to claim:

Partition /dev/hda2 is mounted w/ write permissions, cannot check it.
0
 
LVL 9

Expert Comment

by:e-tsik
ID: 11686664
First, your problems with /dev/hda4 seem to be serious - data may have been erased.

You can have the /Crypt file system not automatically mounted by changing /etc/fstab
Look for the line representing /Crypt , change the mount options (4th column) from "defaults" to "noauto" .

This should prevent the startup problem.
0
 

Author Comment

by:AtomAntic
ID: 11687069
OK,

New update:

I wiped the system (it wasn't important to keep that part anyhow)

Now I just want to get /dev/hda4 (the encrypted reiserfs) mounted.

(now that I have the system up and running, I can give you system outputs :)


so... System boots and from the terminal (expecting that it will ask for my password to access the encrypted filesystem--as it does on my laptop):

# mount /crypt

mount: wrong fs type, bad option, bad superblock on /dev/hda4,
       or too many mounted file systems

---------- So I try...

# fsck /dev/hda4
fsck 1.28 (31-Aug-2002)
reiserfsck 3.6.4 (2002 www.namesys.com)
Will read-only check consistency of the filesystem on /dev/hda4
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
reiserfs_open: neither new nor old reiserfs format found on /dev/hda4

reiserfsck: Cannot not open filesystem on "/dev/hda4"
Warning... fsck.reiserfs for device /dev/hda4 exited with signal 6.
fsck.reiserfs /dev/hda4 failed (status 0x8). Run manually!

---------- So I try...

# reiserfsck /dev/hda4
reiserfsck 3.6.4 (2002 www.namesys.com)
Will read-only check consistency of the filesystem on /dev/hda4
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
reiserfs_open: neither new nor old reiserfs format found on /dev/hda4

reiserfsck: Cannot not open filesystem on "/dev/hda4"


HERE'S WHERE I'M STUCK :~.



0
 

Author Comment

by:AtomAntic
ID: 11689019
and...

# badblocks -v /dev/hda4
Checking for bad blocks in read-only mode
From block 0 to 43190752
Pass completed, 0 bad blocks found.
0
 
LVL 6

Accepted Solution

by:
de2Zotjes earned 500 total points
ID: 11697475
you use mount /Crypt, can you tell what is in your /etc/fstab?

also you keep insisting that this is an encrypted filesystem, normally that would mean that you first run losetup to create a loop device and then mount the loop:

losetup -e <enc> /dev/loop0 /dev/hda4
(passwd asked)
mount -t reiserfs /dev/loop0 /Crypt
0
 

Author Comment

by:AtomAntic
ID: 11698518
I figured it out, that was it...

I needed a /etc/cryptotab file with the loop devices.

:)
0

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question