creating ext2/3 fs on cryptsetup/luks usb hdd partition hangs system

Bug #379508 reported by David Rekowski
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cryptsetup (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

What I did:
using an external USB HDD 500Gb (Hitachi 3.5")
created a single linux partition via cfdisk
formatted disk with mkfs.ext3 for testing -> works

cryptsetup:
$ losetup /dev/loop1 /dev/sdb1
$ cryptsetup luksFormat /dev/loop1
$ cryptsetup luksOpen /dev/loop1 usb500

device /dev/mapper/usb500 exists, so this far is fine

now watch this:
$ mkfs.ext2 /dev/mapper/usb500

After writing 600-800 of about 3700 blocks, the system freezes. This is repeatable.

Second time I had gdm running and did this on tty1, so I got some system messages that hint at not having enough memory (though I have 2Gb working) and thus it started killing processes like gnome-panel, etc.

I did repeatedly format external usb disks that were luks encrypted

System Information:
IBM Thinkpad T42p @1800Mhz
2Gb Ram
Ubuntu 9.04
cryptsetup 1.0.6
mkfs (util-linux-ng 2.14.2)

Revision history for this message
David Rekowski (david-rekowski) wrote :

Creating a vfat filesystem works, I can mount the volume, although it is limited to 7.5Gb.

Revision history for this message
David Rekowski (david-rekowski) wrote :

Please ignore and delete the previous comment (and this one afterwards)

Revision history for this message
David Rekowski (david-rekowski) wrote :

After fixing the accidentially overwritten usb key I managed to format the external hdd with vfat, reiserfs and then tried ext4, which failed in the same manner. The last output I have tells me it's writing the inode tables:

Schreibe Inode-Tabellen: 655/3727

Revision history for this message
David Rekowski (david-rekowski) wrote :

Most interestingly, using mkfs.ext4dev does work. I have to mount the device as -t ext4, since ext4dev is not recognized, but besides, it's fine. This doesn't solve the problem, though. It only shows it's not a hardware or direct cryptsetup problem, although it doesn't happen with a nonencrypted device.

Revision history for this message
Lars Heer (l-heer) wrote :

Hi,

I've got an equal problem.

Architecture: amd64
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: nvidia
Package: cryptsetup 2:1.1.0~rc2-1ubuntu13

If I try luksformat (ext3/ext4) on an 166GB partition the system freezes.
Format freezes after 900 of 1300 blocks
I cannot login onto another shell. If the wlan driver (iwlagn) is loaded it permanently reports something like "no buffer left".

A smaller partition on the same system is no problem!

Please let me know if more information is needed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cryptsetup (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.