[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
with a raid0 disk - "Can't have a partition outside the disk"
From: |
Peter Maloney |
Subject: |
with a raid0 disk - "Can't have a partition outside the disk" |
Date: |
Mon, 27 Feb 2012 10:48:29 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 |
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
really was wrong with my request. An error is when there is a resulting
failure in doing something, rather than a belief that something is in
error. A partition table is just a bunch of numbers. If the numbers
don't make sense, that is my problem; parted's job is just to read and
write those numbers.
Solution:
Demote that to a "Warning" for read operations and do whatever is asked
anyway. If it is a write operation, optionally require a "--force" option.
fdisk instead correctly displays:
# fdisk -c -u /dev/sdd
Command (m for help): p
Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x78000000
Device Boot Start End Blocks Id System
/dev/sdd1 63 192779 96358+ de Dell Utility
/dev/sdd2 * 194560 1730559 768000 7 HPFS/NTFS
/dev/sdd3 1730560 3774871551 1886570496 7 HPFS/NTFS
If this was a large disk with a GPT table, I would be quite annoyed,
since fdisk wouldn't work.
--
--------------------------------------------
Peter Maloney
Brockmann Consult
Max-Planck-Str. 2
21502 Geesthacht
Germany
Tel: +49 4152 889 300
Fax: +49 4152 889 333
E-mail: address@hidden
Internet: http://www.brockmann-consult.de
--------------------------------------------
- with a raid0 disk - "Can't have a partition outside the disk",
Peter Maloney <=