Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-19-2010, 10:53 AM   #1
LQ Newbie
Registered: Mar 2010
Posts: 22

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:

# 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:

# 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:

# 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:

# 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:

[   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, 11:34 AM   #2
LQ Newbie
Registered: Mar 2010
Posts: 22

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, 10:44 AM   #3
LQ Newbie
Registered: Mar 2010
Posts: 22

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.


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? Linux - Newbie 4 01-28-2009 02:00 PM
Wrong partition type- how to fix? dough Linux - Hardware 4 02-08-2008 11:13 AM
FC5 Reading wrong Mime Type Mathias Cervantes Fedora 2 04-25-2006 05:41 PM
mount: wrong fs type sbrewer Linux - Hardware 3 12-10-2004 11:10 AM
wrong fs type, bad option, etc. etc. lyceum Linux - Newbie 4 06-28-2004 03:18 PM

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration