Misdetects SWAP partition as FAT partition and mounts it rw
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-meta (Ubuntu) |
Fix Released
|
Medium
|
Matt Zimmerman |
Bug Description
Warty LiveCD, i386:
warty@ubuntu:~ $ sudo fdisk -l /dev/sda
This disk has both DOS and BSD magic.
Give the 'b' command to go to BSD mode.
Disk /dev/sda: 1080 MB, 1080735744 bytes
255 heads, 63 sectors/track, 131 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 131 1052226 82 Linux swap
warty@ubuntu:~ $ grep -A1 -B1 sda /etc/fstab
/dev/sda1 /mnt/sda1 vfat noauto,
/dev/sda1 /mnt/sda1 auto noauto,
(The first occurrence is preceded by a comment "Added by Morphix", the second not.)
The only reason this would not lead to data loss is that the partition is swap
and not ext3/xfs/whatever. If it happens with another partition type, severity
should be critical.
The Hoary live CD doesn't attempt to automatically mount partitions, so this is
no longer a problem.