Bug#613592: /sbin/fdisk: Can't create at sector 63

2011-06-30 Thread Olaf van der Spek
On Wed, Jun 29, 2011 at 6:52 PM, Alexander Kurtz
 wrote:
> On Wed, 2011-06-29 at 18:24 +0200, Olaf van der Spek wrote:
>> So what's the advantage of c/sfdisk?
>
> Well, it's smaller, has fewer dependencies and is installed on almost
> every system. And since most administrators are familiar with it and it
> is more than sufficient for most of the common tasks, there is no reason
> not to keep it...

Fair enough.
It's still bad that I had trouble resizing a partition. :p
-- 
Olaf



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#613592: /sbin/fdisk: Can't create at sector 63

2011-06-29 Thread Alexander Kurtz
On Wed, 2011-06-29 at 18:24 +0200, Olaf van der Spek wrote:
> So what's the advantage of c/sfdisk?

Well, it's smaller, has fewer dependencies and is installed on almost
every system. And since most administrators are familiar with it and it
is more than sufficient for most of the common tasks, there is no reason
not to keep it...

Best regards

Alexander Kurtz


signature.asc
Description: This is a digitally signed message part


Bug#613592: /sbin/fdisk: Can't create at sector 63

2011-06-29 Thread Olaf van der Spek
On Wed, Jun 29, 2011 at 6:18 PM, Alexander Kurtz
 wrote:
>> Isn't it kind of silly to have so many tools that try to do the same thing?
>
> GNU parted has way more features than {c,s,}fdisk  will probably ever
> have; the most popular being perhaps support for a lot of different
> partition layouts[1] including the future standard GPT. And it can
> actually resize partitions...

So what's the advantage of c/sfdisk?

Olaf



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#613592: /sbin/fdisk: Can't create at sector 63

2011-06-29 Thread Alexander Kurtz
On Tue, 2011-06-28 at 14:05 +0200, Olaf van der Spek wrote:
> True, but deleting and recreating was advised in a number of how to's.

Yeah, fdisk is kind of limited, see below.

> Isn't it kind of silly to have so many tools that try to do the same thing?

GNU parted has way more features than {c,s,}fdisk  will probably ever
have; the most popular being perhaps support for a lot of different
partition layouts[1] including the future standard GPT. And it can
actually resize partitions...

> It wasn't clear to me at all what DOS-compatibility meant, so I had no
> idea that'd allow me to create a partition at sector 63.

Basically DOS-compatible means aligning partitions to cylinder
boundaries, since DOS requires that. And since the default is 63
sectors/track this means that the first partition normally starts at
sector 63, i.e. at the beginning of the second cylinder.

Hope this makes the situation more clear! Tell me if you're still having
problems with fdisk!

Best regards

Alexander Kurtz

[1] http://www.gnu.org/software/parted/manual/parted.html#mklabel


signature.asc
Description: This is a digitally signed message part


Bug#613592: /sbin/fdisk: Can't create at sector 63

2011-06-28 Thread Olaf van der Spek
On Tue, Jun 28, 2011 at 7:58 AM, Alexander Kurtz
 wrote:
> That's hardly a bug:

True

>      * If you delete something, data loss is the expected outcome.

True, but deleting and recreating was advised in a number of how to's.

>      * If you want to do advanced operations like resizing a partition,
>        use more advanced tools like parted.

Isn't it kind of silly to have so many tools that try to do the same thing?

>      * The fact that fdisk doesn't let you start partitions before
>        sector 2048 is a feature, not a bug ;-). This is used to ensure
>        the correct alignment of partitions on modern hard drives with a
>        (physical) sector size of more than 512 bytes.
>      * However, fdisk will still let you create partitions that start
>        at sector 63, if you are in DOS-compatible mode, i.e. don't
>        specify -c as parameter.

It wasn't clear to me at all what DOS-compatibility meant, so I had no
idea that'd allow me to create a partition at sector 63.

Greetings,

Olaf



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#613592: /sbin/fdisk: Can't create at sector 63

2011-02-15 Thread Olaf van der Spek
Package: util-linux
Version: 2.17.2-9
Severity: serious
File: /sbin/fdisk
Justification: Near Data Loss

Hi,

I wanted to resize a partition, so I deleted it and recreated it (is there no 
better way?). After this, the system no longer booted...

Turns out the old partition started at sector 63 and the new partition can't 
start before sector 2048. Not so good.

Greetings,

Olaf

-- System Information:
Debian Release: wheezy/sid
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'unstable'), (1, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages util-linux depends on:
ii  debconf [debconf-2.0]   1.5.38   Debian configuration management sy
ii  dpkg1.15.8.10Debian package management system
ii  initscripts 2.88dsf-13.1 scripts for initializing and shutt
ii  install-info4.13a.dfsg.1-6   Manage installed documentation in 
ii  libblkid1   2.17.2-9 block device id library
ii  libc6   2.11.2-11Embedded GNU C Library: Shared lib
ii  libncurses5 5.7+20100313-5   shared libraries for terminal hand
ii  libselinux1 2.0.96-1 SELinux runtime shared libraries
ii  libslang2   2.2.2-4  The S-Lang programming library - r
ii  libuuid12.17.2-9 Universally Unique ID library
ii  lsb-base3.2-27   Linux Standard Base 3.2 init scrip
ii  tzdata  2011a-1  time zone and daylight-saving time
ii  zlib1g  1:1.2.3.4.dfsg-3 compression library - runtime

util-linux recommends no packages.

Versions of packages util-linux suggests:
ii  console-tools1:0.2.3dbs-69.1 Linux console and font utilities
pn  dosfstools (no description available)
pn  util-linux-locales (no description available)

-- debconf information:
  util-linux/noauto-with-nonzero-passnum:



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org