Results 1 to 10 of 12
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:
...
- 07-12-2008 #1
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=
# dmesg | tail=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
I know this partition is ext3 file system. Is there an extra step or different procedure for mounting an encrypted partition in Knoppix?Code:VFS: Can't find ext3 filesystem on dev hdb5
Thank you! and best regards from (smoky) Northern California USA
bezdomny
- 07-12-2008 #2Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 658
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...To be good, you must first be bad. "Newbie" is a rank, not a slight.
- 07-12-2008 #3
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!
- 07-12-2008 #4Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 658
That should be enough for us to try and fix this.
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.Code:cryptsetup luksOpen /dev/hdb5 enc <Should ask for passphrase here> mount /dev/mapper/enc /media/hdb5
Let us know how you get on,
Chris...To be good, you must first be bad. "Newbie" is a rank, not a slight.
- 07-12-2008 #5
knoppix 5.1-- how to mount an encrypted partition?
Thanks, Chris! I think we're almost there.
cryptsetup luksOpen /dev/hdb5 enc=
mount /dev/mapper/enc /media/hdb5=Code:Enter LUKS passphrase: [note-- passphrase entered-- bezdomny] key slot 0 unlocked. Command successful.
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?Code:mount: you must specify the filesystem type
Looking forward to hearing from you!
best regards from (smoky) Northern California,
bezdomny
- 07-12-2008 #6Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 658
That should have done it. Try this then.
If that doesn't work then this should tell you what the filesystem is.Code:mount -t ext3 /dev/mapper/enc /media/hdb5
Then use whatever it tells you as the filesystem type for the mount command.Code:file -s /dev/mapper/enc
Let us know how you get on,
Chris...To be good, you must first be bad. "Newbie" is a rank, not a slight.
- 07-12-2008 #7
Thanks again, Chris.
# mount -t ext3 /dev/mapper/enc /media/hdb5=
#dmesg | tail=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
So I'm going to log off of knoppix, log into the hdd, enter the passphrase and then runCode: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.
at the command line.Code:file -s /dev/mapper/enc
I'll let you know how it goes.
best regards as always from (smoky) northern California USA,
bezdomny
- 07-13-2008 #8
Knoppix 5.1: how to mount an encrypted partition
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/enc
=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
Hope this helps!Code:LVM2 (Linux Logical Volume manager) UUID kPFhUCUJ4riuB0s2caSXwl00SLgYi6RS
best regards from (smoky) Northern California USA,
bezdomny
- 07-13-2008 #9Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 658
That does help, kind of. The stack goes:
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.Code:ext3 lvm cryptsetup disk
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...To be good, you must first be bad. "Newbie" is a rank, not a slight.
- 07-13-2008 #10
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


Reply With Quote
