parted: Weird characters and hang
As this looks really weird I'll post it first here, to see if anyone else
is having the same problems, before submitting as a bug :
Subject: parted: Weird characters and hang
Package: parted
Version: 1.6.11-8
Severity: normal
*** Please type your report below this line ***
parted prints weird characters in prompts after "mkpart".
After entering all arguments for "mkpart" it hangs :
antracit:~# parted /dev/hdc
GNU Parted 1.6.11 with HFS shrink patch 12.5
Copyright (C) 1998 - 2004 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public
License.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more
details.
Using /dev/hdc
Warning: Unable to align partition properly. This probably means that
another
partitioning tool generated an incorrect partition table, because it
didn't have
the correct BIOS geometry. It is safe to ignore,but ignoring may cause
(fixable) problems with some boot loaders.
Ignore/Cancel? i
(parted) pr
Disk geometry for /dev/hdc: 0.000-58644.140 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 10001.403 primary ntfs boot
2 10001.742 21445.593 extended lba
5 10001.773 11908.968 logical linux-swap
6 11909.000 21445.593 logical ext3
3 21999.797 40000.078 primary ext2
4 40000.078 49999.851 primary ext2
(parted) mkpart
°ition type? [logical]
¸ system type? [ext2]?
Start? 50000
End? 51000
--it hangs here--
strace shows this :
read(0, "5", 1) = 1
write(1, "5", 1) = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(0, "1", 1) = 1
write(1, "1", 1) = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(0, "0", 1) = 1
write(1, "0", 1) = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(0, "0", 1) = 1
write(1, "0", 1) = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(0, "0", 1) = 1
write(1, "0", 1) = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(0, "\r", 1) = 1
write(1, "\n", 1) = 1
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo
...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo
...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x804f340, [INT], SA_RESTART}, {0x4009e8c0, [],
0}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL}, {0x4009e8c0, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {0x4009e8c0, [], 0}, 8) = 0
rt_sigaction(SIGALRM, {SIG_DFL}, {0x4009e8c0, [], 0}, 8) = 0
rt_sigaction(SIGTSTP, {SIG_DFL}, {0x4009e8c0, [], 0}, 8) = 0
rt_sigaction(SIGTTOU, {SIG_DFL}, {0x4009e8c0, [], 0}, 8) = 0
rt_sigaction(SIGTTIN, {SIG_DFL}, {0x4009e8c0, [], 0}, 8) = 0
rt_sigaction(SIGWINCH, {SIG_DFL}, {0x4009e990, [], 0}, 8) = 0
More info :
antracit:~# fdisk -l /dev/hdc
Disk /dev/hdc: 61.4 GB, 61492838400 bytes
16 heads, 63 sectors/track, 119150 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 20321 10241406 7 HPFS/NTFS
/dev/hdc2 20322 43572 11718504 f W95 Ext'd
(LBA)
/dev/hdc3 44699 81270 18432288 83 Linux
/dev/hdc4 81271 101587 10239768 83 Linux
/dev/hdc5 20322 24196 1952968+ 82 Linux swap
/dev/hdc6 24197 43572 9765472+ 83 Linux
antracit:~# sfdisk -l /dev/hdc
Disk /dev/hdc: 119150 cylinders, 16 heads, 63 sectors/track
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hdc1 * 0+ 20320- 20321- 10241406 7 HPFS/NTFS
/dev/hdc2 20321 43571 23251 11718504 f W95 Ext'd (LBA)
/dev/hdc3 44698 81269 36572 18432288 83 Linux
/dev/hdc4 81270 101586 20317 10239768 83 Linux
/dev/hdc5 20321+ 24195 3875- 1952968+ 82 Linux swap
/dev/hdc6 24196+ 43571 19376- 9765472+ 83 Linux
antracit:~# sfdisk -d /dev/hdc
# partition table of /dev/hdc
unit: sectors
/dev/hdc1 : start= 63, size= 20482812, Id= 7, bootable
/dev/hdc2 : start= 20483568, size= 23437008, Id= f
/dev/hdc3 : start= 45055584, size= 36864576, Id=83
/dev/hdc4 : start= 81920160, size= 20479536, Id=83
/dev/hdc5 : start= 20483631, size= 3905937, Id=82
/dev/hdc6 : start= 24389631, size= 19530945, Id=83
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages parted depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libncurses5 5.4-4 Shared libraries for terminal hand
ii libparted1.6-0 1.6.11-8 The GNU Parted disk partitioning s
ii libreadline4 4.3-11 GNU readline and history libraries
-- no debconf information
Reply to: