$ sudo parted/parted --version
parted (GNU parted) 3.0
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by
<http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.

$ sudo parted/parted -s /dev/sdb unit s print
Error: Can't have a partition outside the disk!
Model: ATA ST31000528AS (scsi)
Disk /dev/sdb: 1953525168s
Sector size (logical/physical): 512B/512B
Partition Table: unknown


Also tried with a loop device. (this .img file is attached to this email
so you can test/debug)

$ sudo dd if=/dev/sdb bs=512 count=16 of=raidmbr.img
16+0 records in
16+0 records out
8192 bytes (8.2 kB) copied, 0.000697728 s, 11.7 MB/s

$ sudo losetup /dev/loop0 raidmbr.img

$ sudo parted/parted -s /dev/loop0 unit s print
Error: Can't have a partition outside the disk!
Model:  (file)
Disk /dev/loop0: 16s
Sector size (logical/physical): 512B/512B
Partition Table: unknown



On 02/27/2012 08:36 PM, Jim Meyering wrote:
> Peter Maloney wrote:
>> Problem:
>>
>> I tried to print the partition table of the first disk in a raid0 set
>> (using the raw disk rather than a RAID device), expecting the partitions
>> to be displayed with the partition outside the disk, but instead parted
>> refuses to work:
>>
>> # parted -s /dev/sdd unit s print
>> Error: Can't have a partition outside the disk!
>>
>> It is clearly not an error. And in my case it is even a read only
>> operation, which would not even have any side effects if something
> Thanks for the report.
> Which version of parted are you using?
>
> If it's not 3.0, can you see if the problem persists when
> using that newer version?
>
>     ftp://ftp.gnu.org/gnu/parted/parted-3.0.tar.xz


-- 

--------------------------------------------
Peter Maloney
Brockmann Consult
Max-Planck-Str. 2
21502 Geesthacht
Germany
Tel: +49 4152 889 300
Fax: +49 4152 889 333
E-mail: peter.malo...@brockmann-consult.de
Internet: http://www.brockmann-consult.de
--------------------------------------------

Attachment: raidmbr.img
Description: Binary data

Reply via email to