erlug
[Top] [All Lists]

Re: [Erlug] Partizioni e filesystems su PPC

To: erlug@xxxxxxxxxxxxxx
Subject: Re: [Erlug] Partizioni e filesystems su PPC
From: Ivan <darthxiong@xxxxxxxxx>
Date: Wed, 6 Nov 2002 10:36:40 +0100
On Wed, 6 Nov 2002 10:07:32 +0100
Enzo <enzo.gupi@xxxxxxxxxx> wrote:

> 
> Vorrei capire un po' meglio come funzionano gli hd Apple.
> Sull'iMac della mia ragazza ci sono MacOS 9 e YellowDog2.2 in dual
> boot.

non applico il word-wrap cosi' magari copy/pasty meglio

> Se parto con YD e entro come root vedo che il rootfs e lo swap sono
> su hda11 e hda12

be' ne hai ancora poche di partizioni :)

ivan@runner:~$ cat /proc/partitions 
major minor  #blocks  name

   3     0   19535040 ide/host0/bus0/target0/lun0/disc
   3     1         31 ide/host0/bus0/target0/lun0/part1
   3     2         27 ide/host0/bus0/target0/lun0/part2
   3     3         37 ide/host0/bus0/target0/lun0/part3
   3     4         27 ide/host0/bus0/target0/lun0/part4
   3     5         37 ide/host0/bus0/target0/lun0/part5
   3     6        100 ide/host0/bus0/target0/lun0/part6
   3     7        256 ide/host0/bus0/target0/lun0/part7
   3     8        256 ide/host0/bus0/target0/lun0/part8
   3     9        800 ide/host0/bus0/target0/lun0/part9
   3    10    1048576 ide/host0/bus0/target0/lun0/part10
   3    11    6291456 ide/host0/bus0/target0/lun0/part11
   3    12    2097152 ide/host0/bus0/target0/lun0/part12
   3    13     524288 ide/host0/bus0/target0/lun0/part13
   3    14     524288 ide/host0/bus0/target0/lun0/part14
   3    15    3145728 ide/host0/bus0/target0/lun0/part15
   3    16    4194304 ide/host0/bus0/target0/lun0/part16
   3    17    1572864 ide/host0/bus0/target0/lun0/part17
   3    18     134812 ide/host0/bus0/target0/lun0/part18


ivan@runner:~$ mount
/dev/hda14 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda15 on /home type ext3 (rw,nosuid)
/dev/hda16 on /usr type ext3 (rw)
/dev/hda17 on /var type ext3 (rw)
/dev/hda18 on /tmp type ext2 (rw,nosuid)
/dev/hda12 on /mac2 type hfs (rw,noexec,nosuid,nodev,user=ivan)
/home/opt/secrets on /mnt/secrets type ext2
(rw,nosuid,loop=/dev/loop1,encryption=AES)

> Se poi provo a dare un "fdisk -l /dev/hda" e non visualizza niente!

fdisk in realta' deve essere un link a mac-fdisk, programma apposito.
inoltre, se ricompili il kernel, abilita il supporto alle partizioni 
mac

root@runner:~# mac-fdisk -l /dev/hda
/dev/hda
        #                    type name                 length   base    
( size )  system dump: name /dev/hda len 8 /dev/hda1    
Apple_partition_map Apple                    63 @ 1        ( 31.5k) 
Partition map/dev/hda2          Apple_Driver43 Macintosh               
54 @ 64       ( 27.0k)  Driver 4.3/dev/hda3          Apple_Driver43
Macintosh                74 @ 118      ( 37.0k)  Driver 4.3/dev/hda4    
   Apple_Driver_ATA Macintosh                54 @ 192      ( 27.0k) 
Unknown/dev/hda5        Apple_Driver_ATA Macintosh                74 @
246      ( 37.0k)  Unknown/dev/hda6          Apple_FWDriver Macintosh   
           200 @ 320      (100.0k)  Unknown/dev/hda7     
Apple_Driver_IOKit Macintosh               512 @ 520      (256.0k) 
Unknown/dev/hda8           Apple_Patches Patch Partition         512 @
1032     (256.0k)  Unknown/dev/hda9         Apple_Bootstrap bootstrap   
          1600 @ 18875912 (800.0k)  NewWorld bootblock/dev/hda10        
     Apple_HFS senza titolo        2097152 @ 1544     (  1.0G) 
HFS/dev/hda11              Apple_HFS senza titolo 2     12582912 @
2098696  (  6.0G)  HFS/dev/hda12              Apple_HFS senza titolo 3  
   4194304 @ 14681608 (  2.0G)  HFS/dev/hda13        Apple_UNIX_SVR2
swap                1048576 @ 18877512 (512.0M)  Linux swap/dev/hda14   
    Apple_UNIX_SVR2 root                1048576 @ 19926088 (512.0M) 
Linux native/dev/hda15        Apple_UNIX_SVR2 usr                
6291456 @ 20974664 (  3.0G)  Linux native/dev/hda16       
Apple_UNIX_SVR2 home                8388608 @ 27266120 (  4.0G)  Linux
native/dev/hda17        Apple_UNIX_SVR2 var                 3145728 @
35654728 (  1.5G)  Linux native/dev/hda18        Apple_UNIX_SVR2 tmp    
             269624 @ 38800456 (131.7M)  Linux native

Block size=512, Number of Blocks=39070079
DeviceType=0x0, DeviceId=0x0
Drivers-
1: @ 64 for 23, type=0x1
2: @ 118 for 36, type=0xffff
3: @ 192 for 21, type=0x701
4: @ 246 for 33, type=0xf8ff
 
> La mia curiosità è... ma che tipo di filesystems usano i vari
> MacOS 9 e MaxOS X ?
rispettivamente hfsplus e "non lo so ma penso hfsplus"

> E qualcuno si spiega come mai non visualizzo nè riesco a montare
> le altre partizioni dell'HD ?
le altre partizioni contengono roba che serve a macos per avviarsi, e al
firmware per capire cosa caricare e da dove. la partizione 9, bootstrap,
e' una specie di boot record, che contiene il bootloader yaboot ( il
lilo dei mac, per interderci )

le partizioni hfs si montano se hai il supporto apposito nel kernel, 
come la fat del resto. per hfsplus ci sono dei tools userspace ( 
pacchetto hfsplus in debian ). io infatti ho una partizione in
hfs che la uso come "ponte" tra i due sistemi, perche' viene letta
sia da linux che da OS9 

> Grazie,
prego, spero che serva.


-- 
   (@_  Ivan Fabris, S. Sofia (FC)  PowerPC & Linux Debian Sarge  _*)
   //\      www.darthxiong.net   setiathome.ssl.berkeley.edu      /\\
   V_/_     www.folug.linux.it   pgp key @ www.keyserver.net     _\_V
        Socio Fondatore e Consigliere del Forli Linux User Group 

<Prev in Thread] Current Thread [Next in Thread>