On Fri, Jun 11, 2010 at 7:32 AM, Dave Howorth
I'm trying to re-partition a disk, and am getting errors that I don't understand. So I have a bunch of questions :(
It's a new disk that I already partitioned but I've now changed my mind and want to completely reallocate the space. It's a 500 GB WD5001AALS-0 and appears as /dev/sdf.
I was using yast partitioner in 11.2 and set up the new partitions I wanted but when it tried to create them, it gave me a message about system error code -1008 (I forget the exact text I'm afraid). I haven't managed to find any useful information about the error so my first question is whether anybody recognizes it?
Now when I start yast partitioner it says:
"The partitioning on disk /dev/sdf is not readable by the partitioning tool parted, which is used to change the partition table.
You can use the partitions on disk /dev/sdf as they are. You can format them and assign mount points to them, but you cannot add, edit, resize, or remove partitions from that disk with this tool."
Does anybody know what this actually means?
Is there any documentation for the partitioner, as I haven't managed to find any?
The drive passes the SMART health test. The partitioner shows two partitions (it's another annoying GUI that doesn't provide any way to export the text that I can see!):
/dev/sdf1 1.01 GB Linux native Ext4 suse-11,2 1 132 /dev/sdf2 9.77 GB Linux native Swap swap * 133 1407
[ Note that sdf1 is not the running system, and I did swapoff /dev/sf2 before starting. ]
When I run parted / print on the command line I see something different:
Model: ATA WDC WD5001AALS-0 (scsi) Disk /dev/sdf: 500GB Sector size (logical/physical): 512B/512B Partition Table: msdos
Number Start End Size Type File system Flags 1 32.3kB 1086MB 1086MB primary ext4 type=83 2 1086MB 11.8GB 10.7GB primary type=82 3 11.8GB 22.6GB 10.7GB primary type=83
fdisk and cfdisk both report the same info as parted.
y2log has some information apparently from when the partitioner tried to repartition the disk:
2010-06-10 17:17:59 <1> scop4(11801) [libstorage] SystemCmd.cc(execute):90 SystemCmd Executing:"/usr/sbin/parted -s '/dev/sdf' mklabel msdos" 2010-06-10 17:18:00 <1> scop4(11801) [libstorage] SystemCmd.cc(addLine):574 Adding Line 1 "Warning: Parted could not inform the kernel about eventual changes to partitions(s) 2 on /dev/sdf. This most likely means that the partition(s) is/are in use and parted could not determine whether the partition(s) have changed. As a result, the old partition(s) will remain in use until after reboot. If you know the partition(s) listed above have not changed, you can ignore this warning. Otherwise, you should reboot now before making further changes." 2010-06-10 17:18:00 <1> scop4(11801) [libstorage] SystemCmd.cc(getUntilEOF):540 pid:12937 added lines:1 stderr:false 2010-06-10 17:18:00 <1> scop4(11801) [libstorage] SystemCmd.cc(doExecute):296 system() Returns:0
There's a huge amount of information in that file, most of which looks like gobbledygook at first glance. I'll happily post some more if you can tell me what would be useful.
Any thoughts on where to find more information or on what to do next would be appreciated!
Thanks, Dave
IIRC, if you change the partition setup outside of yast, it gets confused and won't allow you to "modify" the partition setup. My assumption is that the yast-partitioner keeps config info somewhere and it compares that to the actual partition table. If they disagree you get the message your seeing. So your choice is to continue maintaining your partition setup outside of yast, or let yast blow away the current setup and start from scratch. Assuming your using a traditional partition table, you can also manually blow it away with: dd if=/dev/zero of=/dev/sdf count=1 Then force the kernel to re-read the partition table. I don't recall how, so I just reboot. Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org