debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #03942
[Bug 1531404] Re: nonexistent partition in /dev, & lsblk/disk util misbehaving with randomized disks
Sadly (as mentioned by psusi in comment 12) the kernel's Atari partition
detection is lax and triggers on lots of random data scenarios when
disks are big.
https://github.com/axboe/fio/issues/1942#issuecomment-3066162322 gathers
links to other "ADHI Atari partitions being created on disks containing
random data" discussions.
The problem was bad enough that Ubuntu disabled Atari partition support
in its *cloud* kernels in 2020 (see bug
https://bugs.launchpad.net/ubuntu/+source/linux-aws/+bug/1908264 ).
Other distros such as Fedora have disabled Atari partition support for a
long time (here's a link to a Fedora 13 kernel config showing
CONFIG_ATARI_PARTITION not being set:
https://src.fedoraproject.org/rpms/kernel/blob/f13/f/config-generic ).
Given how few people need Atari partition support perhaps Ubuntu should
just disable it in all its kernels? Because this issue has expired
perhaps this is not the place to request that...
** Bug watch added: github.com/axboe/fio/issues #1942
https://github.com/axboe/fio/issues/1942
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1531404
Title:
nonexistent partition in /dev, & lsblk/disk util misbehaving with
randomized disks
Status in util-linux package in Ubuntu:
Expired
Bug description:
I have two 2T disks with no partition table and which have been filled
with random data. GNU parted shows nothing on this disk:
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Error: /dev/sda: unrecognised disk label
Model: ATA WDC WD2002FAEX-0 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
but when I check with `lsblk`, I see one disk with partitions and the
other without:
Code:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
└─sda2 8:2 0 1.6T 0 part
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 1.8T 0 disk
and the Disks utility agrees (see: http://ibin.co/2SQv4KbH06Mz).
Also, /dev/disk/by-id contains an entry pointing to sda and one
pointing to sda2. So it really does think there's a second partition
there.
Thinking there was something wrong, I re-filled the disks with random
data. Now sda is properly (in the Disks utility as just an "unknown
disk"), but sdb shows a second partition, and identically to how sda
was showing it before (ie the Disks utility output is the same with
181GB at the beginning and 128GB at the end).
I am running all this from the Ubuntu Gnome 15.10 installer disk.
---
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: GNOME
DistroRelease: Ubuntu 15.10
InstallationDate: Installed on 2015-08-31 (130 days ago)
InstallationMedia: Ubuntu-GNOME 15.10 "Wily Werewolf" - Release amd64 (20151021)
Package: util-linux 2.26.2-6ubuntu3
PackageArchitecture: amd64
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 4.2.0-23.28-generic 4.2.6
Tags: wily
Uname: Linux 4.2.0-23-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1531404/+subscriptions