[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installing on extended partition



Parodper, le sam. 28 août 2021 14:35:16 +0200, a ecrit:
> O 28/08/21 ás 11:33, Samuel Thibault escribiu:
> > Parodper, le sam. 28 août 2021 10:56:07 +0200, a ecrit:
> > > I still get the unknown partition table, and doing head /dev/hd0s1 fails
> > > with a «Input/Output error». head /dev/hd0 works fine.
> > > 
> > > Tried doing settrans -a /dev/hd0s1 /hurd/storeio -T typed part:1:device:hd0;
> > > head /dev/hd0s1 and still getting IO error. The command also ends and does
> > > not output any error.
> > 
> > Looking at hurd/libstore/part.c, I see
> > 
> > if (run.start % source->block_size != 0)
> >    err = EIO;
> > if (run.length % source->block_size != 0)
> >    err = EIO;
> > 
> > could it be that your partitions are not aligned on 4096 bytes?

Scratch that, the block size returned by the mach block driver is 512 bytes,
so that cannot be a problem.

> /dev/sda1 : start=          63, size=     4208967, type=b, bootable #FreeDOS
> partition
> /dev/sda2 : start=     4209030, size=    71682030, type=a6	#OpenBSD
> partition
> /dev/sda3 : start=    75891060, size=    30716280, type=81	#Minix3 partition
> /dev/sda4 : start=   106607401, size=   205967877, type=f	#Extended
> partition
> /dev/sda5 : start=   106607403, size=    40965687, type=6	#HaikuOS

I tried building this partition table, and didn't have any problem.

> Something that I just noticed on this test was that, on boot, the kernel (I
> guess?) showed the hd0 disk and all the partitions.

Yes, that's coherent with the node built by MAKEDEV being fine with the
partition table.

> The thing is parted does not recognize the partition table

Does it have trouble when run from other OSes as well?  Then I'd say
debug it from there.

Samuel


Reply to: