Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mac-fdisk not working? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
quickshiftin
Guru
Guru


Joined: 27 Jul 2004
Posts: 345
Location: Denver, CO

PostPosted: Mon Jul 24, 2006 7:04 pm    Post subject: mac-fdisk not working? [SOLVED] Reply with quote

so, i accidentally used fdisk on a drive bound for my powerbook. then i used fdisk to delete all those partitions and fired up mac-fdisk.
i have created the partitions following the handbook here is output from mac-fdisk
Code:
Command (? for help): p
/dev/sda
        #                    type name                length   base    ( size )  system
/dev/sda1     Apple_partition_map Apple                   63 @ 1       ( 31.5k)  Partition map
/dev/sda2         Apple_Bootstrap bootstrap             1600 @ 64      (800.0k)  NewWorld bootblock
/dev/sda3         Apple_UNIX_SVR2 swap               2097152 @ 1664    (  1.0G)  Linux swap
/dev/sda4         Apple_UNIX_SVR2 root               2095488 @ 2098816 (1023.2M)  Linux native

Block size=512, Number of Blocks=4194304
DeviceType=0x0, DeviceId=0x0


i use the w command to write the map to the disk, but then, even after a reboot i cant create filesystems on the disk.
mkswap and mkreiserfs are complaining:
Code:
localhost ~ # mkswap /dev/sda3
/dev/sda3: No such file or directory

localhost ~ # mkreiserfs /dev/sda4
mkreiserfs 3.6.19 (2003 www.namesys.com)

A pair of credits:
Vladimir Demidov wrote the parser for sys_reiser4(), the V3 alpha port, part of
the V3  journal  relocation code,  and helped  Hans keep  the business  side of
things running.

Elena Gryaznova performed testing and benchmarking.


Stat of the device '/dev/sda4' failed.


here is some additional evidence of the issue
Code:
localhost ~ # cat /proc/partitions
major minor  #blocks  name

   3     0   78184008 hda
   3     1   25599546 hda1
   3     2          1 hda2
   3     5      40131 hda5
   3     6     506016 hda6
   3     7   52034503 hda7
   8     0   97685784 sda


see, sda is there, but what about sda1, sda2, sda3, sda4 that mac-fdisk shows?

i have even used the i command in mac-fdisk to re-initialize the partion map and i am still having this issue, can someone shed some light on this for me?


Last edited by quickshiftin on Mon Jul 24, 2006 7:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Mon Jul 24, 2006 7:30 pm    Post subject: Reply with quote

mac-fdisk will likely create a mac-ish partition table; are you sure you have support for that in your kernel?
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
quickshiftin
Guru
Guru


Joined: 27 Jul 2004
Posts: 345
Location: Denver, CO

PostPosted: Mon Jul 24, 2006 7:39 pm    Post subject: Reply with quote

long story short, i moved the drive to an x86 system with mac-fdisk to try and eliminate some variables (cause ive been having issues with the ppc live cd and this usb disk [several threads on this]). i ran the mac-fdisk i command on the x86 machine and then checked /proc/partitions to recieve the output on my last post.
now i have it plugged back into my mac and furthermore have the filesytems installed!
thanks.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Mon Jul 24, 2006 8:10 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo on PPC.

[mod]Since this is an issue with mac-fdisk and macs, I believe it belongs in [i]Gentoo on PPC.[/mod][/i]
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum