Re: How do I "see" a hard drive?



On 2006-04-24, Anton Ertl <anton@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
"JohnW" <news@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes:
1. Having booted the Mac with Linux, should I be able to "see" the Mac hard
drive?

Just type

fdisk /dev/hda

at a shell command line. By pressing "p", you can see the partitions.

This might not work if the Mini is PPC. Try

mac-fdisk -l /dev/hda

2. If I should be able to "see" it, how do I go about that? ie do I need to
mount it from the command prompt before starting Xwindows? If so, exactly
what should I type in?

If your CD does not mount the partitions automatically, you can mount
them manually with

mkdir /mnt/hda2 #make a mount point
mount /dev/hda2 -t ext3 -o ro /mnt/hda2

That's assuming you have an ext3 file system on the partition hda2,
and you want to mount it read-only.

The OP mentioned that there's at least one OS X install on the disk.
It's probably HFS+, so -t hfs or -t hfs+ may or may not work. The
hfstools utilities might work for plain HFS, or his live CD might
include hfs+tools.

However, what I would do is to get an USB disk of at least the size of
the internal disk, and then just copy it over as a whole, like this:

dd if=/dev/hda of=/dev/sda

Assuming the USB disk is known to Linux as sda (you can check this
with dmesg). After you get your new disk, just dump the data back on
the internal disk with

dd if=/dev/sda of=/dev/hda

This isn't a bad idea. If the OP has a spare OS X box lying around, he
can verify that the dd worked by trying to mount the USB disk on that
machine.

--keith

--
kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information

.



Relevant Pages

  • Re: Accessing partitions using FIXIT/Live-System-CDROM?
    ... It will scan a disk and recover any data it can. ... The reason I couldn't mount the partitions, ... Thanks neverthelss for the hint with atacontrol - I'll keep in in my ...
    (freebsd-questions)
  • Re: mount --bind question.
    ... I would *highly* suggest more than two partitions; ... something specific for whatever disk space you have left. ... >back into the right place in the filesystem through symlinks in the root ... but I'm wondering if it would be better to use mount ...
    (comp.os.linux.misc)
  • Re: Using a Separate Home
    ... binding a certain directory to /srv/blahblah and then unmounts /dev/hdbX. ... You can not even mount disks or partitions, ... tree of directories and then unmount the disk, ...
    (alt.os.linux.suse)
  • Mount error: "Specified device does not match mounted device"
    ... them to the shiny new partitions. ... with 'mount -f /', which has always worked for me. ... Do the drives ... I was also wondering if maybe the problem is related to disk partitioning ...
    (freebsd-questions)
  • LVM on SW RAID for sarge - success
    ... I've just had success migrating Debian Sarge to root on LVM on RAID. ... First make sure the SCSI BIOS boots from the first disk. ... I made reiserfs on all the filesystem partitions and completed the ... The remaining two disks were partitioned and used to create RAID arrays ...
    (Debian-User)