> You get's what you pays for. I got my hd for free, 'cuz it stopped
> working in a windows box. I formatted it and put linux on it and have
> used it for 2 years. When it is very hot and humid sometimes it won't
> work at all until I unplug all the cables and plug them back in again,
> then it works fine.
Cool! That wouldn't be a problem for me either. Because I
have pals coming over to my place with their hard drives or other
peripherials my computer case is opened most of the time.
> Early on in this piece, I think you mentioned that you had a
> dos-extended partition that linux couldn't see, and thought that might
> be the problem. I should have paid better attention, maybe. Then later
Here is another problem. I don't know if both problems are
related. But it's about windoze95 osr2... with dos 7.1... 7.0. Not
sure if 7.1 comes with OSR2 or 98.
There are some changes from the 6.22 or earlier dos. This
is a sure thing. OSR2 is the one that introduced fat32 for example.
This means that it can make fat32, but it can't convert it. Anyway,
all dosutils are addapted to work with fat32 as well.
Back to partitioning problem. So there is one extended
partition. And its code is 0x05. This is what I did in the first
place. I did all partitioning with Linux. And after some time my
dos disks from the extended partition dissapeared. This happened a
couple of times. So I followed the fdisk man page and did the dos
stuff in dos and the linux stuff in linux. It was damn painful. It
was something like boot dos from a floppy. Run dos fdisk. Reboot.
Boot linux from two floppies. make a linux partition. And this was
done once more. The result was that I have (dos view) two extended
partitions. But because dos is so fxxxn dumb it reads only the
first extended partition. That isn't a real extended partition.
And because of the dos way... there is one primary partition and one
'dos extended'. From linux I can see this is an 'unknown'
partition. Which has the 0x0f code. Linux can't see the two logic
partitions inside that.
Now, to me, that begin field seems important. Because begin
and end fileds are correct. And they respect all the rules. There
isn't any problem with overlaping. And so far I ignored the begin
filed. Please tell me a way to make a copy of a screen (not x
related). I know /dev/vcs[1-9]. But it uses a weird way of
formatting output.
> you said cfdisk refused to touch it, saying FATAL ERROR: Bad primary
> partition. You might want to use the x and d commands of fdisk to dump
> the raw partition table and see if you or I or someone can make sense of
> it. script is a handy way to capture a session to a file so you could
Oops! I had no idea. _This_ is why I need a distribution.
You showed me in the last days how little I know about linux and
its utilities. So here I go:
Disk /dev/hda: 16 heads, 63 sectors, 16383 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Begin Start End Blocks Id System
/dev/hda1 * 1 1 610 307408+ 6 DOS 16-bit >=32M
/dev/hda2 611 611 1220 307440 83 Linux native
/dev/hda3 1024 1025 9151 4096008 f Unknown
/dev/hda4 8192 9152 16383 3644928 5 Extended
/dev/hda5 8192 9152 11232 1048792+ 83 Linux native
/dev/hda6 10240 11233 11281 24664+ 82 Linux swap
/dev/hda7 11264 11282 13362 1048792+ 83 Linux native
/dev/hda8 13312 13363 16383 1522552+ 83 Linux native
Here you see that the start/end is correct. But begin
isn't. This can be the source of that thing with partition 2
overlaps partition 3 and so on. Although I don't see how 2 overlaps
3. Maybe 3 -> 4...
Expert command (m for help): d
Device: /dev/hda
0x000: EB 65 4C 49 4C 4F 01 00 12 00 5A 00 00 00 00 00
0x010: 58 B5 5E 37 E9 88 80 03 01 EA 88 80 03 01 E8 88
0x020: 80 03 01 01 00 00 00 00 00 00 00 FE 88 80 02 01
0x030: FF 88 80 02 01 C1 88 80 03 01 C2 88 80 03 01 C3
0x040: 88 80 03 01 C4 88 80 03 01 C5 88 80 03 01 C6 88
0x050: 80 03 01 00 00 00 00 00 00 00 00 00 00 00 00 00
0x060: 00 00 00 00 00 00 00 B8 C0 07 8E D8 8C 06 62 00
0x070: 89 36 60 00 89 1E 64 00 88 16 66 00 B8 00 9A 8E
0x080: C0 B9 00 01 29 F6 29 FF FC F3 A5 EA 90 00 00 9A
0x090: FA 8E D8 8E C0 BC 00 B0 B8 00 90 8E D0 FB B0 0D
0x0A0: E8 57 00 B0 0A E8 52 00 B0 4C E8 4D 00 BE 2B 00
0x0B0: BB 00 10 FC AD 89 C1 AD 89 C2 09 C8 74 20 46 E8
0x0C0: 43 00 72 06 81 C3 00 02 EB EA 50 B0 20 E8 2A 00
0x0D0: 58 88 E0 E8 12 00 31 C0 88 C2 CD 13 EB CF B0 49
0x0E0: E8 17 00 EA 00 00 00 9B 50 C0 E8 04 E8 01 00 58
0x0F0: 24 0F 04 30 3C 3A 72 02 04 07 30 FF B4 0E CD 10
0x100: C3 5A 59 5B C3 F6 C2 40 74 52 80 E2 BF 53 51 52
0x110: B4 08 CD 13 72 EB 88 F3 5A 88 16 69 01 88 F2 30
0x120: F6 88 F7 58 51 86 CD D0 C5 D0 C5 80 E5 03 89 0E
0x130: 67 01 59 83 E1 3F F7 F1 FE C2 88 16 6A 01 31 D2
0x140: 43 F7 F3 88 D6 8A 16 69 01 3B 06 67 01 77 13 86
0x150: C4 D0 C8 D0 C8 0A 06 6A 01 89 C1 5B B8 01 02 CD
0x160: 13 C3 5B 31 C0 F9 C3 00 00 00 00 00 00 00 00 00
0x170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 01
0x1C0: 01 00 06 0F BF 61 3F 00 00 00 A1 61 09 00 00 00
0x1D0: 81 62 83 0F FF FF E0 61 09 00 E0 61 09 00 00 00
0x1E0: C1 FF 0F 0F FF FF 00 C0 0F 00 10 00 7D 00 00 0F
0x1F0: FF FF 05 0F FF FF 10 C0 8C 00 00 3C 6F 00 55 AA
0x000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F
0x1C0: FF FF 83 0F FF FF 3F 00 00 00 B1 01 20 00 00 0F
0x1D0: FF FF 05 0F FF FF F0 01 20 00 F0 C0 00 00 00 00
0x1E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA
0x000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F
0x1C0: FF FF 82 0F FF FF 3F 00 00 00 B1 C0 00 00 00 0F
0x1D0: FF FF 05 0F FF FF E0 C2 20 00 F0 01 20 00 00 00
0x1E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA
0x000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F
0x1C0: FF FF 83 0F FF FF 3F 00 00 00 B1 01 20 00 00 0F
0x1D0: FF FF 05 0F FF FF D0 C4 40 00 30 77 2E 00 00 00
0x1E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA
0x000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F
0x1C0: FF FF 83 0F FF FF 3F 00 00 00 F1 76 2E 00 00 00
0x1D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA
This is only for you. For me, at least for now these
numbers don't mean a thing. So far I used only utilities like fdisk
to operate on the partition table. I never used a disk editor. And
I don't have the knowledge to alter manually a partition table.
> mail that. I'm wondering if the dos extended partition doesn't land on
> top of your linux / partition. That would account for what you've
> observed. There's a struct partition in <linux/genhd.h> that describes
> the entries, which start at 0x1be of the MBR, and/or put it in the mail
> and I'll have a look at it.
I see the struct. But I guess there is some math with
starting head/sector/cylinder...
> Maybe we are starting to get somewhere. :-)
That will be something great!
Raider
--
``Liberate tu-temet ex inferis''