--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: Doesn't abort when it cannot re-read partition table
- From: Martin Michlmayr <tbm@cyrius.com>
- Date: Sun, 2 May 2004 17:40:57 +0100
- Message-id: <20040502164057.GA17419@deprecation.cyrius.com>
Package: partman
Version: 34
Seerity: wishlist
I deleted my partition #7 (15 GB) with partman, and then created three
5 GB partitions (#7, #8, #9) of type LVM. I then went to the LVM
configuration, but it had problems with #8 and #9. I then found out
that the devices for part8 and part9 did not exist. Obviously the
kernel couldn't re-read the partition table, but partman did not
inform me about this. It should have asked me to reboot.
part8 and part9 are missing:
/var/log # ls -l /dev/ide/host0/bus0/target0/lun0/
brw------- 1 root root 3, 0 Jan 1 1970 disc
brw------- 1 root root 3, 1 Jan 1 1970 part1
brw------- 1 root root 3, 2 Jan 1 1970 part2
brw------- 1 root root 3, 3 Jan 1 1970 part3
brw------- 1 root root 3, 4 Jan 1 1970 part4
brw------- 1 root root 3, 5 Jan 1 1970 part5
brw------- 1 root root 3, 6 Jan 1 1970 part6
brw------- 1 root root 3, 7 Jan 1 1970 part7
/var/log #
Let's look at it with fdisk:
Command (m for help): p
Disk /dev/ide/host0/bus0/target0/lun0/disc: 30.7 GB, 30750031872 bytes
16 heads, 63 sectors/track, 59582 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 19 9544+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 20 9707 4882752 83 Linux
/dev/ide/host0/bus0/target0/lun0/part3 9708 10699 499968 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part4 10700 59582 24637032 5 Extended
/dev/ide/host0/bus0/target0/lun0/part5 10700 20388 4883255+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part6 20389 30076 4882720+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part7 30077 39764 4882720+ 8e Linux LVM
/dev/ide/host0/bus0/target0/lun0/part8 39765 49452 4882720+ 8e Linux LVM
/dev/ide/host0/bus0/target0/lun0/part9 49453 59582 5105488+ 8e Linux LVM
Command (m for help):
Let's save it again:
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
/var/log #
--
Martin Michlmayr
tbm@cyrius.com
BZh91AY&SYÒ:lè