touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #128918
[Bug 1531404] Re: nonexistent partition in /dev, & lsblk/disk util misbehaving with randomized disks
Yes, I have rebooted many times. Right now, I'm using them in a working
system. What's more, I have two systems prepared similarly, one with
raid and one without, and they are showing exactly the same problem.
Here, have a look at one of these systems (raid). All the disks
sd{a,b,c} are random filled with no luks header. They are mounted with
an external header. sd{a,b} contain root/home and sdc (not mounted) is
just data.
@Tyan-S2927:~$ ls -l /dev/disk/by-id/wwn-*
lrwxrwxrwx 1 root root 9 Jan 14 11:16 /dev/disk/by-id/wwn-0x50014ee207XXXXXX -> ../../sdb
lrwxrwxrwx 1 root root 9 Jan 14 11:16 /dev/disk/by-id/wwn-0x50014ee208XXXXXX -> ../../sdc
lrwxrwxrwx 1 root root 10 Jan 14 11:16 /dev/disk/by-id/wwn-0x50014ee208XXXXXX-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Jan 14 11:16 /dev/disk/by-id/wwn-0x50014ee208XXXXXX-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Jan 14 11:16 /dev/disk/by-id/wwn-0x50014ee208XXXXXX-part4 -> ../../sdc4
lrwxrwxrwx 1 root root 9 Jan 14 11:16 /dev/disk/by-id/wwn-0x50014ee25XXXXXX -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 14 11:16 /dev/disk/by-id/wwn-0x50014ee25XXXXXX-part2 -> ../../sda2
@Tyan-S2927:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
├─sda2 8:2 0 1.6T 0 part
└─luks.root1 252:0 0 1.8T 0 crypt /home
sdb 8:16 0 1.8T 0 disk
└─luks.root2 252:1 0 1.8T 0 crypt
sdc 8:32 0 1.8T 0 disk
├─sdc2 8:34 0 499.7G 0 part
├─sdc3 8:35 0 1000.3G 0 part
└─sdc4 8:36 0 130.7G 0 part
sdd 8:48 1 28.9G 0 disk
└─sdd1 8:49 1 28.9G 0 part /boot
@Tyan-S2927:~$ sudo blkid -p /dev/sda
@Tyan-S2927:~$ sudo blkid -p /dev/sdb
@Tyan-S2927:~$ sudo blkid -p /dev/sdc
@Tyan-S2927:~$ mount | column -t
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=12326324k,nr_inodes=3081581,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=2475548k,mode=755)
/dev/mapper/luks.root1 on / type btrfs (rw,noatime,nodiratime,compress=lzo,space_cache,autodefrag,subvolid=258,subvol=/@)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,clone_children)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=21,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sdd1 on /boot type btrfs (rw,noatime,nodiratime,ssd_spread,space_cache,subvolid=257,subvol=/@s2927boot)
/dev/mapper/luks.root1 on /home type btrfs (rw,noatime,nodiratime,compress=lzo,space_cache,autodefrag,subvolid=259,subvol=/@home)
tmpfs on /run/user/120 type tmpfs (rw,nosuid,nodev,relatime,size=2475548k,mode=700,uid=120,gid=127)
gvfsd-fuse on /run/user/120/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=120,group_id=127)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=2475548k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded 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:
Incomplete
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