Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Knoppix Help Forum
Reload this Page knoppix 5.1-- how to mount an encrypted partition?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Knoppix Help Forum For all discussions about Knoppix, the Linux "Live CD" that lets you run Linux without needing to install on your hard drive.

Reply
 
Thread Tools Display Modes
Old 07-12-2008   #1 (permalink)
Just Joined!
 
bezdomny's Avatar
 
Join Date: Apr 2007
Location: Central California
Posts: 61
Send a message via Skype™ to bezdomny
knoppix 5.1-- how to mount an encrypted partition?

Trying to mount an encrypted partition in Knoppix 5.1 so I can rescue my data as my GUI (X server?) no longer works and dpkg-reconfigure xserver-xorg doesn't seem to help:

# mount -t ext3 /dev/hdb5 /media/hdb5=
Code:
mount: wrong fs type, bad option, bad superblock on /dev/hdb5,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
# dmesg | tail=
Code:
VFS: Can't find ext3 filesystem on dev hdb5
I know this partition is ext3 file system. Is there an extra step or different procedure for mounting an encrypted partition in Knoppix?

Thank you! and best regards from (smoky) Northern California USA

bezdomny
bezdomny is offline   Reply With Quote
Old 07-12-2008   #2 (permalink)
Linux Enthusiast
 
Join Date: Apr 2004
Location: UK
Posts: 580
It may be possible, but we will need to know how the partition was encrypted before we can give you specific instructions.

The mount command will fail because it will not automatically detect encrypted partitions and you aren't giving it any options that tell it to expect one. All it can see is the encrypted data dumped on a partition that makes no sense.

Let us know how you get on,

Chris...
__________________
DRM keeps an honest user loyal
kakariko81280 is offline   Reply With Quote
Old 07-12-2008   #3 (permalink)
Just Joined!
 
bezdomny's Avatar
 
Join Date: Apr 2007
Location: Central California
Posts: 61
Send a message via Skype™ to bezdomny
knoppix 5.1-- how to mount an encrypted partition?

Thanks, Chris. It's been awhile since I setup this installation. I only know that during installation I chose one of the encryption options and when I logon, I'm prompted for the "LUKS passphrase". Does that help? Thanks again!
bezdomny is offline   Reply With Quote
Old 07-12-2008   #4 (permalink)
Linux Enthusiast
 
Join Date: Apr 2004
Location: UK
Posts: 580
That should be enough for us to try and fix this.

Code:
cryptsetup luksOpen /dev/hdb5 enc
<Should ask for passphrase here>
mount /dev/mapper/enc /media/hdb5
If that doesn't work then post the output of the commands here. It would also help if you could tell us what you were installing when it asked you, then we can look up default settings for it's encrypted partitions.

Let us know how you get on,

Chris...
__________________
DRM keeps an honest user loyal
kakariko81280 is offline   Reply With Quote
Old 07-12-2008   #5 (permalink)
Just Joined!
 
bezdomny's Avatar
 
Join Date: Apr 2007
Location: Central California
Posts: 61
Send a message via Skype™ to bezdomny
knoppix 5.1-- how to mount an encrypted partition?

Thanks, Chris! I think we're almost there.

cryptsetup luksOpen /dev/hdb5 enc=
Code:
Enter LUKS passphrase: [note-- passphrase entered-- bezdomny]
key slot 0 unlocked.
Command successful.
mount /dev/mapper/enc /media/hdb5=
Code:
mount: you must specify the filesystem type
Chris, I could swear this was ext3 but maybe I'm wrong. At any rate, I should be able to boot into the command line after the LUKS passphrase and run a command to identify the filesystem type, correct?

Looking forward to hearing from you!

best regards from (smoky) Northern California,

bezdomny
bezdomny is offline   Reply With Quote
Old 07-12-2008   #6 (permalink)
Linux Enthusiast
 
Join Date: Apr 2004
Location: UK
Posts: 580
That should have done it. Try this then.

Code:
mount -t ext3 /dev/mapper/enc /media/hdb5
If that doesn't work then this should tell you what the filesystem is.

Code:
file -s /dev/mapper/enc
Then use whatever it tells you as the filesystem type for the mount command.

Let us know how you get on,

Chris...
__________________
DRM keeps an honest user loyal
kakariko81280 is offline   Reply With Quote
Old 07-12-2008   #7 (permalink)
Just Joined!
 
bezdomny's Avatar
 
Join Date: Apr 2007
Location: Central California
Posts: 61
Send a message via Skype™ to bezdomny
Thanks again, Chris.

# mount -t ext3 /dev/mapper/enc /media/hdb5=
Code:
mount: wrong fs type, bad option, bad superblock on /dev/mapper/enc,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
#dmesg | tail=
Code:
Mobile IPv6
eth0: no IPv6 routers present
device-mapper: ioctl: 4.10.0-ioctl (2006-09-14) initialised: dm-devel@redhat.com
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
eth0: no IPv6 routers present
EFS: 1.0a - http://aeschi.ch.eu.org/efs/
VFS: Can't find ext3 filesystem on dev dm-0.
VFS: Can't find ext3 filesystem on dev dm-0.
So I'm going to log off of knoppix, log into the hdd, enter the passphrase and then run
Code:
file -s /dev/mapper/enc
at the command line.

I'll let you know how it goes.

best regards as always from (smoky) northern California USA,

bezdomny
bezdomny is offline   Reply With Quote
Old 07-13-2008   #8 (permalink)
Just Joined!
 
bezdomny's Avatar
 
Join Date: Apr 2007
Location: Central California
Posts: 61
Send a message via Skype™ to bezdomny
Knoppix 5.1: how to mount an encrypted partition

Code:
file -s /dev/mapper/enc
erred out complaining of no such file or directory. So I ran the command on the directories that are present at /dev/mapper:

Code:
file -s /dev/mapper/bezdomny-root
=
Code:
Linux rev1.0 ext3 filesystem (needs journal recovery) (large files)
Code:
file -s /dev/mapper/hdb5_crypt
=
Code:
LVM2 (Linux Logical Volume manager) UUID kPFhUCUJ4riuB0s2caSXwl00SLgYi6RS
Hope this helps!

best regards from (smoky) Northern California USA,

bezdomny
bezdomny is offline   Reply With Quote
Old 07-13-2008   #9 (permalink)
Linux Enthusiast
 
Join Date: Apr 2004
Location: UK
Posts: 580
That does help, kind of. The stack goes:

Code:
ext3
lvm
cryptsetup
disk
I wasn't expecting the lvm bit of that which is why the mount -t ext3 isn't working. Unfortunately my knowledge of lvm is almost non existent. I'm reading the LVM Howto to try and find out what you need to do to mount the volume, but it will take a little time to figure out. Perhaps someone with more experience than I can help us both out.

In the meantime, if you can boot your system can you not do a backup from the command line?

Let us know how you get on,

Chris...
__________________
DRM keeps an honest user loyal
kakariko81280 is offline   Reply With Quote
Old 07-13-2008   #10 (permalink)
Just Joined!
 
bezdomny's Avatar
 
Join Date: Apr 2007
Location: Central California
Posts: 61
Send a message via Skype™ to bezdomny
Knoppix 5.1: how to mount an encrypted partition?

Chris, thanks. Did I tell you I got my Xserver back? However, I'm still interested in solving this for future reference-- I'm sure it will come up again, if not with me, with someone I'm assisting.

At any rate, I don't know what you mean by backup from the command line. Backup what? Could you please indulge my poor understanding of Linux and be more specific?

Thanks!

best regards,

bezdomny
bezdomny is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 09:54 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0