creating ext2/3 fs on cryptsetup/luks usb hdd partition hangs system
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)
Creating a vfat filesystem works, I can mount the volume, although it is limited to 7.5Gb.