0x85

Άγγελος Οικονομόπουλος lydwigvernon at yahoo.co.uk
Sat Feb 9 21:55:11 EET 2002


Μάλλον είναι off-topic αλλά πράγματι δεν υπάρχει διαφορά και το patch λύνει το 
πρόβλημα (βάζοντας βεβαία και τη δεκαδική τιμή του 0x85 - δεν είχε ενεργήσει 
ακόμα ο καφές). Δεν υπάρχει στο -current άρα καιρός γιά ένα send-pr...

Στις Saturday 09 February 2002 17:21, ο/η Άγγελος Οικονομόπουλος έγραψε:
> Papadogiannakis Vagelis wrote:
> > Άγγελος Οικονομόπουλος <lydwigvernon at yahoo.co.uk> wrote:
> >> Sumfwna me to
> >> http://www.win.tue.nl/~aeb/partitions/partition_types-2.html alla kai me
> >> to linux/fs/partitions to 0x85 (extended linux) einai alias gia to
> >> 0x05(extended dos). Mporei kapoios (please!) na me diapseusei?
> >
> > Ase, oute mena mou aresei oti to linux kai kala exei ``danistei'' apo ta
> > windows :> Alla des to ``(fisio)logika'':
>
> kala re Baggelh, give me some credit! Fusika kai den ennoousa auto. E3allou
> h
>
> skepsh sou einai lan8asmenh:
> > Skepsou se ena dual boot sistima to eksis
> >
> > hda1 (primary) <- windows (gia games/dvd/whatever)
> > hda2 (extended dos){
> >   hda5 (logikal dos) <- edo exei ta mp3 tou
> >   hda6 (linux native) <- edo doulevei
> >   hda7 (linux swap) <- den tou xreiazetai, alla to xei ;)
> > }
> >
> > An, leo an, to extended linux den itan alias sto extended dos, tote
> > kanenas den 8a mporouse na xei pano apo 1 partition windows. As min
> > ksexname oti ta win, poso malon to dos vlepoun ena mono primary (ta
> > xp/2000 mipos to ftiaksane afto? de nomizo...)
>
> Basika to fdisk(dos) crasharei an exeis extended partition(0x05) meta ton
> 1024cyl kai mia aplh lush einai na th baftiseis 0x85 opote th blepei san
> foreign kai kaneis th douleia sou diathrontas th sumbatothta
>
> > Dedomenou loipon oti to ``extended partition'' einai ousiastika enas
> > ``8ilakas'' gia ta logical, den pistevo oti xreiazotan kapoia extra
> > leitourgikotita pou den tin parexei to extended dos oste na iparxei anagi
> > dimiourgias enos enalaktikou extended scheme partition - kai kat epektasi
> > krisi asimvatotitas me ola ta mixanakia tou planiti :)
>
> xmm.. exw thn entupwsh oti mia bsd slice parexei extra leitourgikothta kai
> diathrei aneta th sumbatothta
>
> > Mipos den ennoouses afto `h ego katalaba la8os? Mporei...
>
> Giati rwthsa: edw kai kati mhnes (apo thn teleutaia fora pou alla3a to
> primary pt) den eixa xreiastei prosbash apo to freebsd sto linux. x8es omws
> pou eipa na to balw sto fstab diapistwsa oti den mporw na dw tis
> partitions. (to pt einai kapws etsi:(se disk order)
>
> hda4   0x07
> hda2   0x85{
>    hda5   0x82
>    hda6   0x83
>    hda7   0x83
>    hda8   0x83
>    hda9   0x83
> }
> hda1   0xa5{
>    a
>    b
>    e
> }
>
> )
>
> H basikh diafora einai o tupos ths extended pou htan 0x05
>
> Meta apo ena tetarto sta sys/kern/sybr_diskmbr.c kai
> linux/fs/partitions/*.c exw thn entupwsh pws
> a) sto FreeBSD den uparxei problepsh gia 0x85
> b) pragmati h monh diafora anamesa stis 0x05, 0x85 einai to entry sto
> primary pt
>
> opote skeftomoun oti _kati_ tetoio 8a ekane th douleia (inline patch sto
> kmail. na doume pws 8a ftasei):
>
> ###################################
>
> diff -Nur sys~/kern/subr_diskmbr.c sys/kern/subr_diskmbr.c
> --- sys~/kern/subr_diskmbr.c	Sat Feb  9 16:20:00 2002
> +++ sys/kern/subr_diskmbr.c	Sat Feb  9 16:27:40 2002
> @@ -49,6 +49,7 @@
>  #include <sys/disklabel.h>
>  #define	DOSPTYP_EXTENDED	5
>  #define	DOSPTYP_EXTENDEDX	15
> +#define LINPTYP_EXTENDED	85
>  #define	DOSPTYP_ONTRACK		84
>  #include <sys/diskslice.h>
>  #include <sys/malloc.h>
> @@ -344,7 +345,8 @@
>  	sp -= NDOSPART;
>  	for (dospart = 0; dospart < NDOSPART; dospart++, sp++)
>  		if (sp->ds_type == DOSPTYP_EXTENDED ||
> -		    sp->ds_type == DOSPTYP_EXTENDEDX)
> +		    sp->ds_type == DOSPTYP_EXTENDEDX ||
> +		    sp->ds_type == LINPTYP_EXTENDED)
>  			mbr_extended(bp->b_dev, lp, ssp,
>  				     sp->ds_offset, sp->ds_size, sp->ds_offset,
>  				     max_nsectors, max_ntracks, mbr_offset, 1);
> @@ -434,7 +436,8 @@
>  		    && dp->dp_start == 0 && dp->dp_size == 0)
>  			continue;
>  		if (dp->dp_typ == DOSPTYP_EXTENDED ||
> -		    dp->dp_typ == DOSPTYP_EXTENDEDX) {
> +		    dp->dp_typ == DOSPTYP_EXTENDEDX ||
> +		    dp->dp_typ == LINPTYP_EXTENDED) {
>  			static char buf[32];
>
>  			sname = dsname(dev, dkunit(dev), WHOLE_DISK_SLICE,
>
> ############################################
>
> alla fusika an uphrxe ousiastikh diafora anamesa sta pt twn 0x05, 0x85 8a
> glutwna apo to psa3imo.
>
> Bebaia mporei gia ola auta na ftaine ta lhgmena kai na uparxei (diafora
> meta3u twn 05 kai 85 || uposthri3h 0x85 sto FreeBSD). Mallon 8a prepei na
> faw kati parapanw apo tetarto gia na to brw auto...
>
> >> --
> >> indent does _not_ solve the problem of:
> >> * buggers who think that MyVariableIsBiggerThanYourVariable is a
> >> good name
> >>
> >> - Alexander Viro on coding style
> >
> > --
> > Vagelis Papadogiannakis
> > http://www.wise.gr
> > papas at wise.gr
-- 
10.0 times 0.1 is hardly ever 1.0.
            - The Elements of Programming Style (Kernighan & Plaugher)


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




More information about the Linux-greek-users mailing list