Mailinglist Archive: opensuse-bugs (3882 mails)
| < Previous | Next > |
[Bug 754789] sfdisk fails when using on empty-null written drive
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Sun, 1 Apr 2012 10:01:43 +0000
- Message-id: <20120401100143.3238BCC7D8@soval.provo.novell.com>
https://bugzilla.novell.com/show_bug.cgi?id=754789
https://bugzilla.novell.com/show_bug.cgi?id=754789#c1
Petr Uzel <puzel@xxxxxxxx> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEEDINFO
InfoProvider| |dan.mares@xxxxxxxxxxxxxxxxx
--- Comment #1 from Petr Uzel <puzel@xxxxxxxx> 2012-04-01 10:01:40 UTC ---
I tried to reproduce. It is true that sfdisk spits out an ERROR
about missing msdos signature, but creates the partition table and
partition entry anyways (see the transcript below).
Could you please be more specific on what exactly is the problem
in your case? Thanks in advance.
dhcp12:~ # lsscsi
[3:0:0:0] disk Linux scsi_debug 0004 /dev/sda
dhcp12:~ # cat /etc/SuSE-release
openSUSE 12.1 (i586)
VERSION = 12.1
CODENAME = Asparagus
dhcp12:~ # rpm -q util-linux
util-linux-2.20.1-1.8.1.i586
dhcp12:~ # dd if=/dev/zero of=/dev/sda bs=4096
dd: writing `/dev/sda': No space left on device
2049+0 records in
2048+0 records out
8388608 bytes (8.4 MB) copied, 0.0187378 s, 448 MB/s
dhcp12:~ # cat /root/input
,,7
dhcp12:~ # sfdisk /dev/sda < input
Checking that no-one is using this disk right now ...
OK
Disk /dev/sda: 64 cylinders, 8 heads, 32 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sda: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = cylinders of 131072 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 0+ 63 64- 8191+ 7 HPFS/NTFS/exFAT
/dev/sda2 0 - 0 0 0 Empty
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table
Re-reading the partition table ...
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
dhcp12:~ # parted -s /dev/sda unit s print
Model: Linux scsi_debug (scsi)
Disk /dev/sda: 16384s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1s 16383s 16383s primary type=07
dhcp12:~ # cat /proc/partitions | grep sda
8 0 8192 sda
8 1 8191 sda1
dhcp12:~ # ll /dev/sda
brw-rw---- 1 root disk 8, 0 Apr 1 11:56 /dev/sda
dhcp12:~ # ll /dev/sda1
brw-rw---- 1 root disk 8, 1 Apr 1 11:55 /dev/sda1
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |