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 06-19-2010, 09:53 AM   #1
mwjones
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Rep: Reputation: 0
Unhappy Upgrade to 10.04 wrong fs type


Just upgraded from 9.10 to 10.04 and cannot mount one of my partitions. It is encrypted/decrypted in the following fashion:

Code:
# dd if=/dev/random bs=4k count=1 | gpg -a --cipher-algo AES256 -c - > /mnt/usb/keys/fs.gpg
# gpg -q -o - /mnt/usb/keys/fs.gpg | cryptsetup -v -h sha512 -c aes-xts-plain -s 512 create crypto /dev/md1
# mkfs.ext4 /dev/mapper/crypto 
# mount /dev/mapper/crypto /crypto
It has been this way for a long time, survived several release upgrades. Now when I decrypt it, I have to use gpg in one command to decrypt the key to a file, then use cat in a second command to pipe to cryptsetup, as such:

Code:
# gpg -q /mnt/usb/keys/fs.gpg
# cat /mnt/usb/keys/fs | cryptsetup -v -h sha512 -c aes-xts-plain -s 512 create crypto /dev/md1
Ok a pain, but no big deal. However, I can no longer mount the device:

Code:
# mount /dev/mapper/crypto /store/
mount: you must specify the filesystem type
This is how it's always been mounted. Well I know it's ext4, so I supplied that and was greeted with:

Code:
# mount -t ext4 /dev/mapper/crypto /store/
mount: wrong fs type, bad option, bad superblock on /dev/mapper/crypto,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
The only item in dmesg is:

Code:
[   78.212761] EXT4-fs (dm-0): VFS: Can't find ext4 filesystem
What's the deal? How do I fix this?
 
Old 06-19-2010, 10:34 AM   #2
mwjones
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Original Poster
Rep: Reputation: 0
8.10 works fine

I have a netbook running 8.10 and an external hdd that is used for backup and encrypted/decrypted in the same manner. Plugging the external hdd into the netbook, the normal decryption process on the external hdd worked fine. So to me that indicates that something changed in 10.04 causing this to be an issue, as there were no issues with 8.10 and 9.10.

How can I narrow down the root cause?
 
Old 06-21-2010, 09:44 AM   #3
mwjones
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Original Poster
Rep: Reputation: 0
I decided to wipe the drives and restore from backups. This time, though, I used the -d option in cryptsetup. FML.
 
  


Reply

Tags
cryptsetup, device, ext4, filesystem, mount


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
I can't type on the internet what is wrong and how can I fix it? fldolphinlover@yahoo.com Linux - Newbie 4 01-28-2009 01:00 PM
Wrong partition type- how to fix? dough Linux - Hardware 4 02-08-2008 10:13 AM
FC5 Reading wrong Mime Type Mathias Cervantes Fedora 2 04-25-2006 04:41 PM
mount: wrong fs type sbrewer Linux - Hardware 3 12-10-2004 10:10 AM
wrong fs type, bad option, etc. etc. lyceum Linux - Newbie 4 06-28-2004 02:18 PM


All times are GMT -5. The time now is 12:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration