* pdisk weirdness
@ 2001-01-11 21:13 Martin Costabel
2001-01-12 2:28 ` Ethan Benson
2001-01-13 15:41 ` Harald Welte
0 siblings, 2 replies; 4+ messages in thread
From: Martin Costabel @ 2001-01-11 21:13 UTC (permalink / raw)
To: linuxppc-dev
Having observed for a while that pdisk (linux) doesn't work on my iBook,
I tried to understand what is going on. It's weird.
Doesn't work means that 'pdisk /dev/hda' (or 'pdisk -l' likewise) gives
me the output:
pdisk: Can't read block 0 from '/dev/hda'
Edit /dev/hda -
Command (? for help): p
No partition map exists
Command (? for help): q
Segmentation fault
This is pdisk version 0.8a2 (16 May 2000) from the pdisk-0.8-1.ppc.rpm
as it is contained in LinuxPPC 2000 and LinuxPPC 2000 Q4 aka Halloween.
When I downgrade to the pdisk-0.7-2 RPM from LinuxPPC 1999, it works as
it is supposed to. Also I think I remember that the new pdisk works when
run with a 2.2 kernel. Only the combination of new pdisk and 2.4 kernel
doesn't work.
What is weirder is that there is (almost) no source to be found for this
pdisk-0.8-1! On the LPPC 2000 source CD, there is no pdisk at all, and
in the LPPC 2000 Q4 source directory, there is the SRPM for the old
pdisk-0.7-2. I finally found the sources at the defunct dev-rel CVS
repository at gate.crashing.org.
There is a llseek-patch (by Tom Rini, IIUC) which seems to be the origin
of the problem. If I back it out, pdisk works again.
Is anyone successfully running pdisk-0.8-1 with kernel 2.4?
--
Martin
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pdisk weirdness
2001-01-11 21:13 pdisk weirdness Martin Costabel
@ 2001-01-12 2:28 ` Ethan Benson
2001-01-13 15:41 ` Harald Welte
1 sibling, 0 replies; 4+ messages in thread
From: Ethan Benson @ 2001-01-12 2:28 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 2089 bytes --]
On Thu, Jan 11, 2001 at 10:13:10PM +0100, Martin Costabel wrote:
>
> Having observed for a while that pdisk (linux) doesn't work on my iBook,
> I tried to understand what is going on. It's weird.
pdisk sucks, deal with it.
> Doesn't work means that 'pdisk /dev/hda' (or 'pdisk -l' likewise) gives
> me the output:
>
> pdisk: Can't read block 0 from '/dev/hda'
> Edit /dev/hda -
> Command (? for help): p
> No partition map exists
> Command (? for help): q
> Segmentation fault
see above. you can probably create a new partition table with the `i'
command, though i have seen this has a tendency to create wildly bogus
partition tables (tables wtih the size of the disk being 500GB or some
such bollocks)
> This is pdisk version 0.8a2 (16 May 2000) from the pdisk-0.8-1.ppc.rpm
> as it is contained in LinuxPPC 2000 and LinuxPPC 2000 Q4 aka Halloween.
> When I downgrade to the pdisk-0.7-2 RPM from LinuxPPC 1999, it works as
> it is supposed to. Also I think I remember that the new pdisk works when
> run with a 2.2 kernel. Only the combination of new pdisk and 2.4 kernel
> doesn't work.
i have been told that some versions of pdisk do not use the ioctl to
the kernel correctly, perhaps thats why.
> What is weirder is that there is (almost) no source to be found for this
> pdisk-0.8-1! On the LPPC 2000 source CD, there is no pdisk at all, and
> in the LPPC 2000 Q4 source directory, there is the SRPM for the old
> pdisk-0.7-2. I finally found the sources at the defunct dev-rel CVS
> repository at gate.crashing.org.
i don't know.
> There is a llseek-patch (by Tom Rini, IIUC) which seems to be the origin
> of the problem. If I back it out, pdisk works again.
>
> Is anyone successfully running pdisk-0.8-1 with kernel 2.4?
why use pdisk when you can use GNU parted? here is the correct
solution to pdisk:
rm -rf pdisk
get ftp://ftp.gnu.org/gnu/parted/parted-1.4.5.tar.gz
tar -zxvf parted-1.4.5.tar.gz
cd parted-1.4.5
./configure && make && make install
--
Ethan Benson
http://www.alaska.net/~erbenson/
[-- Attachment #2: Type: application/pgp-signature, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pdisk weirdness
2001-01-11 21:13 pdisk weirdness Martin Costabel
2001-01-12 2:28 ` Ethan Benson
@ 2001-01-13 15:41 ` Harald Welte
1 sibling, 0 replies; 4+ messages in thread
From: Harald Welte @ 2001-01-13 15:41 UTC (permalink / raw)
To: Martin Costabel; +Cc: linuxppc-dev
On Thu, Jan 11, 2001 at 10:13:10PM +0100, Martin Costabel wrote:
>
> This is pdisk version 0.8a2 (16 May 2000) from the pdisk-0.8-1.ppc.rpm
> as it is contained in LinuxPPC 2000 and LinuxPPC 2000 Q4 aka Halloween.
> When I downgrade to the pdisk-0.7-2 RPM from LinuxPPC 1999, it works as
> it is supposed to. Also I think I remember that the new pdisk works when
> run with a 2.2 kernel. Only the combination of new pdisk and 2.4 kernel
> doesn't work.
I am experiencing _exaclty_ the same problem and solved it exactly the
same way. My machine is a 2-month old G4
> --
> Martin
--
Live long and prosper
- Harald Welte / laforge@gnumonks.org http://www.gnumonks.org
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <200101120559.XAA27690@lists.linuxppc.org>]
end of thread, other threads:[~2001-01-13 15:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-11 21:13 pdisk weirdness Martin Costabel
2001-01-12 2:28 ` Ethan Benson
2001-01-13 15:41 ` Harald Welte
[not found] <200101120559.XAA27690@lists.linuxppc.org>
2001-01-12 16:09 ` alex avriette
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).