Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Encrypted Reiserfs Fails to Mount -- Reiserfsck Fails as Well

Posted on 2004-07-30
9
Medium Priority
?
795 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
  • 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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 1500 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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
Course of the Month9 days, 13 hours left to enroll

927 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