On 10/28/05, Sven Luther <sven.luther at wanadoo.fr> wrote: > On Fri, Oct 28, 2005 at 09:24:25AM -0400, Dennis Clarke wrote: > > FYI : > > Also .. parted barely works but hits a bug with sector sizes other > > than 512 bytes : > > Its not a bug but a feature, and you are warned about it :)
cool > > [root at ppc ~]# parted /dev/hda > > GNU Parted 1.6.22 > > Ah, please use 1.6.24, or even 1.6.25 which i will release this WE. > /me wearing the parted upstream maintainer hat :) Well, I go with what I have at the moment. That's not really true, I built a toolchain first before building GRUB2 but I ran with the parted on hand at the time. > > The sector size on /dev/hdc is 2048 bytes. Parted is known not to work > > properly > > with drives with sector sizes other than 512 bytes > > Ignore/Cancel? Cancel > > Warning: Unable to open /dev/hdc read-write (Read-only file system). > > /dev/hdc > > has been opened read-only. > > Using /dev/hdc > > Well, /dev/hdc is the cdrom drive, so what do you expect ? Are you trying to > partition a CD ? oops [root at ppc ~]# parted /dev/hdd GNU Parted 1.6.22 Copyright (C) 1998 - 2005 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/hdd (parted) p Disk geometry for /dev/hdd: 0.000-4103.920 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags (parted) Gee .. thats better. Perhaps better still will be : [root at ppc ~]# ls -lap /home/dclarke/local/sbin/parted -rwxr-xr-x 1 dclarke csw 78929 Oct 28 09:27 /home/dclarke/local/sbin/parted [root at ppc ~]# /home/dclarke/local/sbin/parted /dev/hdd GNU Parted 1.6.24 Copyright (C) 1998 - 2005 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/hdd (parted) print Disk geometry for /dev/hdd: 0kB - 4303MB Disk label type: msdos Number Start End Size Type File system Flags (parted) OKay ... now the disk looks a little bit bigger. Great ! If I go to version 1.6.25 will it grow again ? :-) (parted) select /dev/hda Using /dev/hda (parted) print Disk geometry for /dev/hda: 0kB - 40GB Disk label type: amiga Number Start End Size File system Name Flags 1 2097kB 105MB 103MB dhx boot 2 105MB 210MB 105MB ext3 dhx 3 210MB 40GB 40GB dhx lvm (parted) This looks perfect. I hope to use the copy feature to create a boot partition on that secondary disk ( not the CDROM ). > > http://www.blastwave.org/dclarke/grub/grub_1.91/ > > Mmm, maybe you expected to find a second harddisk but found the cdrom ? Bingo ! Yep .. I landed on the wrong device and the sector size should have been a dead give away on that. Thanks. Okay .. well then .. continuing where I left off with GRUB2 now. Dennis
