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

Re: iPod mount: Re: hfs+ fs with linux - only ro after some time error



on Mon, 27 Sep 2004 11:26:37PM -0700, Brad Boyer insinuated:
> On Mon, Sep 27, 2004 at 03:08:16PM -0400, Nori Heikkinen wrote:
> > it seems that i want to use hpmount and hpumount to mount and
> > unmount the iPod now (that's kind of weird, but okay).  but maybe
> > i'm misunderstanding how it works.  when i say:
> > 
> > homeruns:~# hpmount /dev/sda /mnt/ipod
> > 
> > i get:
> > 
> > hpmount: /dev/sda: Neither Wrapper nor native HFS+ volume header
> > found (Unknown error 4294967295)
> > 
> > so, i'm not sure what is going on with /dev/sda ... am i doing
> > something wrong?
> 
> The fact that /dev/sda works with the regular mount command is
> purely by accident. The disk has a partition map, and you should be
> using the device that matches the correct partition. For example, if
> the hfsplus filesystem is the only thing on the disk, it is most
> likely /dev/sda2. Use "mac-fdisk -l /dev/sda" to get a listing of
> the partitions on the drive.
> 
> There is a horrible hack in both hfs and hfsplus in the linux kernel
> to support hfs/hfsplus formatted CD-ROMs. Since the linux kernel
> cannot handle a partitioned CD-ROM, but all Mac style CD-ROMs are
> partitioned, the hfs and hfsplus drivers read the partition map for
> you and find the correct part of the drive. The hfsplus utilities
> don't have that, so you need to specify the correct device.

ahh, thanks for the clarification.  i was indeed surprised to see that
i could just mount a device without specifying a partiton to mount ...
but then again, i've never worked with these fancy apple things
before, and was able to rationalize away that niggling detail somehow.
this makes sense.


on Tue, 28 Sep 2004 08:46:58AM +0200, Jens Schmalzing insinuated:
> Hi,
> 
> Nori Heikkinen writes:
> 
> > i just got a new iPod, and have been happily mounting and
> > unmounting it on my debian box (x86) with the mount command all
> > morning.
> 
> [confusion galore]

you're not kidding :)

> Let me try to clear up things a bit.
> 
> 1. Regarding device nodes.  You are accessing the iPod either via
>    Firewire or via USB.  No matter what, it will appear to the Linux
>    kernel as a SCSI disk.  All SCSI disks known to the Linux kernel
>    are numbered /dev/sda, /dev/sdb and so on in the order they are
>    found.  If you are not sure where to find your iPod, check the file
>    /proc/scsi/scsi, it contains information on all connected devices.

yeah, i think i figured that out (though it took a bit of googling to
get it put half as straightforwardly as that).

>    Also, check the dmesg output to see what was found last and how
>    it was named.

right, i've been tail -f'ing /var/log/syslog and /var/log/messages.
been _quite_ helpful, i must say!

> 2. Regarding partitions.  /dev/sda is the whole iPod, complete with
>    partition table, firmware, data, everything.  Do not attempt to
>    mount it unless you have very good reasons to do so.  Instead,
>    mount the data partition only.  Since you have a Mac iPod, it is
>    called /dev/sda3.  /dev/sda1 holds the partition table (yes, the
>    partition table is in its own partition), /dev/sda2 contains the
>    firmware.

looks like it's /dev/sda2 on mine ... but thanks, and to Brad, for the
clarification on this point.

> 3. Regarding read-write mounts.  Support for HFS+ exists both in the
>    Linux kernel itself ('mount -t hfsplus') and in the userland tools
>    packaged as hfsplus ('hpmount').  The former is evolving fast, the
>    latter is as good as dead upstream.  For these very different
>    reasons, both should be used with the same large amount of caution.
>    Do not mount your iPod read-write unless you absolutely have to.

okay -- here you mean "don't mount your iPod r-w using HFS* unless you
have to," right?  i mean, in order to interface the thing with my
computer, i have to mount it read-write ...

> 4. Regarding HFS+ on the iPod.  Given the state of HFS+ support in
>    Linux, you may be better off converting your iPod to FAT.  Even
>    though this will turn it into a so-called Windows iPod, it will
>    remain usable from Mac OS X.

excellent.  that sounds like the best solution here.

i just took over a windows machine at work, and installed iTunes, and
let it convert the hfsplus fs to vfat (deceptive -- it says
"configuring iPod."  i wish they'd be more transparent!).  just
mounted it on my debian box using vfat and /dev/sda2, and although it
erraticalyl tells me that /dev/sda2 is not a valid block device, if i
cross my fingers and close my eyes, it works.  maybe my problem is
that i'm using USB 1 instead of even USB 2 ;)

thanks a lot!

</nori>

-- 
    .~.      nori @ sccs.swarthmore.edu
    /V\  http://www.sccs.swarthmore.edu/~nori
   // \\          @ maenad.net
  /(   )\       www.maenad.net/jnl
   ^`~'^
  
++     Sponsor me as I run my SECOND marathon for AIDS:       ++
++ http://www.aidsmarathon.com/participant.asp?runner=DC-2844 ++

Attachment: signature.asc
Description: Digital signature


Reply to: