[Bug 667514] New: fdisk tries to start at cylinder 2048
https://bugzilla.novell.com/show_bug.cgi?id=667514 https://bugzilla.novell.com/show_bug.cgi?id=667514#c0 Summary: fdisk tries to start at cylinder 2048 Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: i586 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: sboyce@blueyonder.co.uk QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Same problem on x86_64. I returned a SDHC as bad because of the problem on 3 x86_64 boxes. Yesterday while partitioning a 160G IDE HD on the x86 I saw it again. I used cfdisk which worked.# rpm -qf /sbin/fdisk util-linux-2.18.91-10.1.i586 Reproducible: Always Steps to Reproduce: 1. fdisk /dev/sda 2. Tried setting primary partition 1. 3. Actual Results: Insists 2048 is first cylinder and fails to set up 150G on a 160G HD. Expected Results: Should start at first cylinder. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c1
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c2
Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c3
--- Comment #3 from Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c4
--- Comment #4 from Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c
wei wang
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c5
Petr Uzel
fdisk failed to partition the drive but cfdisk worked.
Could you please elaborate more on this? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c6
Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c7
--- Comment #7 from Petr Uzel
# df -h Filesystem Size Used Avail Use% Mounted on rootfs 147G 55G 85G 39% / devtmpfs 490M 428K 489M 1% /dev tmpfs 502M 4.0K 502M 1% /dev/shm /dev/sda1 147G 55G 85G 39% /
OK, so if I understand correctly, you cannot achieve the above partition table with fdisk, so I assume you partitioned your drive by sth else than fdisk (cfdisk??), right?
Using fdisk to partition the drive, it thinks it's a much smaller drive. I could not get anywhere close to 147G, from memory it was about 1/2 the size available. With the 16GB SDHC it said the size was only 8GB. fdisk is obviously correctly reading what was written by cfdisk, but it couldn't allocate it.
I would need complete transcript of the session where you are partitioning the drive (or SDHC card), preferably starting with the empty disk (no partitions). I still have no clue what's wrong... -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c8
Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c9
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c10
Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c11
--- Comment #11 from Petr Uzel
However, explicitly giving a 63 as starting sector results in "Value out of range." which could be considered a bug.
I'll look into this. @Sid: Apart from ^^^, is there anything else which you consider a bug? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c12
Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c13
Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c14
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c15
--- Comment #15 from Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c16
Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c17
--- Comment #17 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c18
--- Comment #18 from Petr Uzel
The "error 16: Device or resource busy." indicates that you had those partitions mounted before fdisk, so you can get arbitrary corruption from the kernel writing out old FS data to your disk. This is unrelated to fdisk. you must umount before fdisk/mkfs
Or reboot after fdisk as suggested, .. or use parted, which isn't as strict wrt mounted partitions (uses different logic to inform the kernel about partition table changes). -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c19
--- Comment #19 from Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c20
--- Comment #20 from Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c21
--- Comment #21 from Petr Uzel
That's the problem, the /dev/sdf partitions weren't mounted. I can delete the partitions, do a write, then do fdisk again and set up new partitions, mkfs and afterwards I get the same errors when I run fsck.
Is fdisk complaining that "Re-reading the partition table failed" even if none of the partitions on sdf is mounted? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c22
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c23
Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c24
--- Comment #24 from Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c25
Petr Uzel
Rebooting or moving the SD to another system doesn't help. Either way round, creating with openSUSE and trying to mount on Kubuntu or creating on Kubuntu and trying to mount on openSUSE.
I'm not sure I understand correctly the steps you did/want to do. AFAIU, you are trying to 1/ create new parition (or modify existing one) on SDHC card with fdisk 2/ mkfs.ext4 3/ fsck.ext4 4/ mount it But the problem is that 3/ fails (as in comment #15). Is this right? If it is [*], please 1/ make sure none of the partitions on the SDHC card is mounted (check in /proc/mounts) 2/ run fdisk and let me know if it complains that "Re-reading the partition table failed" 3/ reboot, to be sure that kernel rereads the partition table 4/ run fsck.ext4 with "-c" - this will scan for bad blocks on the card (I suspect this might be HW issue). 5/ post here any interesting output form fsck 6/ try to mount the partition [*] and if not, please be more verbose in describing what you tried, expected and what failed. Thanks. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c26
Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c27
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c28
Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c29
--- Comment #29 from Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c30
--- Comment #30 from Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c31
Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c32
Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c33
--- Comment #33 from Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c34
--- Comment #34 from Sid Boyce
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c35
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=667514
https://bugzilla.novell.com/show_bug.cgi?id=667514#c36
--- Comment #36 from Sid Boyce
participants (1)
-
bugzilla_noreply@novell.com