Re: Mounting an iPod

2005-11-05 Thread James Seward
On 11/4/05, edward <[EMAIL PROTECTED]> wrote:
> Assistance welcome, James. I finally gave up trying to mount the iPod as
> an HFS+ device and reformated it in FAT32. Now I can mount it and access
> its content (I use mount -t msdos /dev/da0s2 /mnt/ipod).
> However, I can unmount it using umount /mnt/ipod, but I'm not quite sure
> how to get it to understand its not connected anymore. I wouldn't mind
> taking a look at the scripts you mentionned early on.
> "The camcontrol utility can cause a loss of data and/or system crashes
> if used improperly.  Even expert users are encouraged to exercise
> caution when using this command.  Novice users should stay away from
> this utility" says the man page. With such an invitation, I can't wait
> to get my hands into this one :).
> Thanks,
> Edward

Here's my script, which I put in /usr/local/bin. You will have to
change the mount point and device for camcontrol to suit your setup.
You may also want to change permissions on things in /dev so that you
can do this as a user. Don't forget that you need to change passN and
xpt0, not just the da device. Look in /etc/devfs.conf to see how to
make the chanages stick, and change the vfs.usermount sysctl to 1. I
based my setup of this on the various documents out there about
user-mounting CDs.

---CUT---
#!/bin/sh

case "$1" in
start)
echo "Mounting ipod..."
mount /ipod
;;
stop)
echo "Ejecting ipod..."
umount /ipod && camcontrol eject 0:0
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac
---CUT---

I just modified one of the rc scripts to make it :) Now I can do "ipod
start" and "ipod stop" to mount and umount/eject it.

On a sort of related note, anyone had problems with gtkpod reporting
double the free space on the ipod? "df" and my iPod agree about the
free space, but gtkpod says that double that amount is free. I've had
this on 5.4 and 6.0 and on both i386 and amd64.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting an iPod

2005-11-04 Thread Garrett Cooper

edward wrote:

Assistance welcome, James. I finally gave up trying to mount the iPod 
as an HFS+ device and reformated it in FAT32. Now I can mount it and 
access its content (I use mount -t msdos /dev/da0s2 /mnt/ipod).
However, I can unmount it using umount /mnt/ipod, but I'm not quite 
sure how to get it to understand its not connected anymore. I wouldn't 
mind taking a look at the scripts you mentionned early on.
"The camcontrol utility can cause a loss of data and/or system crashes 
if used improperly.  Even expert users are encouraged to exercise 
caution when using this command.  Novice users should stay away from 
this utility" says the man page. With such an invitation, I can't wait 
to get my hands into this one :).

Thanks,
Edward

James Seward wrote:


On 10/29/05, edward <[EMAIL PROTECTED]> wrote:


The iPod uses an HFS+ file system. It's been loaded from a Mac.
I would like to mount it to /mnt/ipod




A quick Google suggests you can try
http://people.freebsd.org/~yar/hfs/ to add HFS support to FreeBSD,
otherwise you're going to have to reformat your iPod for Windows and
then mount it as FAT.

I then added this line:
/dev/da0s2  /ipod   msdos   rw,noauto   
0   0


to my fstab, and wrote myself a little ipod script I can use to mount
and umount/eject it.

To mount it it just mounts /ipod, and to eject it, i umounts /ipod and
then calls camcontrol eject on the right device ID to eject it (so the
iPod stops thinking it's connected).

I can offer further assistance with the 2nd half but not the 1st half 
of this :)


/JMS



Edward,
   You can use camcontrol to reset the device, which will make it think 
that it has been removed, ie the little checkmark will show up on the 
screen and the hard disk will spin down. See man camcontrol for details.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting an iPod

2005-11-04 Thread edward
Assistance welcome, James. I finally gave up trying to mount the iPod as 
an HFS+ device and reformated it in FAT32. Now I can mount it and access 
its content (I use mount -t msdos /dev/da0s2 /mnt/ipod).
However, I can unmount it using umount /mnt/ipod, but I'm not quite sure 
how to get it to understand its not connected anymore. I wouldn't mind 
taking a look at the scripts you mentionned early on.
"The camcontrol utility can cause a loss of data and/or system crashes 
if used improperly.  Even expert users are encouraged to exercise 
caution when using this command.  Novice users should stay away from 
this utility" says the man page. With such an invitation, I can't wait 
to get my hands into this one :).

Thanks,
Edward

James Seward wrote:

On 10/29/05, edward <[EMAIL PROTECTED]> wrote:


The iPod uses an HFS+ file system. It's been loaded from a Mac.
I would like to mount it to /mnt/ipod



A quick Google suggests you can try
http://people.freebsd.org/~yar/hfs/ to add HFS support to FreeBSD,
otherwise you're going to have to reformat your iPod for Windows and
then mount it as FAT.

I then added this line:
/dev/da0s2  /ipod   msdos   rw,noauto   0   0

to my fstab, and wrote myself a little ipod script I can use to mount
and umount/eject it.

To mount it it just mounts /ipod, and to eject it, i umounts /ipod and
then calls camcontrol eject on the right device ID to eject it (so the
iPod stops thinking it's connected).

I can offer further assistance with the 2nd half but not the 1st half of this :)

/JMS




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting an iPod

2005-10-31 Thread edward

OK, this is the status :

- I have built HFS/HFS+ support into the kernel as described in :
http://people.freebsd.org/~yar/hfs/

- My iPod is recognised on ad0 when I plug it in under console mode :
firewire0: New S400 device ID:000a270002b6bcd8
da0 at sbp0 bus 0 target 0 lun 0
da:  Removable Simplified Direct Access SCSI-0 device
da0: 50.000MB/s transfers
da0: 3906MB (7999488 512 byte sectors: 255H 63S/T 497C)

- But I connot mount it as a volume :
# mount -t hfs /dev/da0s3 /mnt
hfs: /dev/da0s3: Operation not supported by device

- I installed hfsutils from the ports collection. Using the hmount 
utility from this package seems to mount the iPod, but the volume is 
empty (although there are many songs on my iPod) :

# hmount /dev/daOs3 /mnt/ipod
Volume name is "iPod" (locked)
Volume was created on Thu Jan 15 18:55:34 2004
Volume was last modified on Thu Jan 15 18:55:34 2004
Volume has 0 bytes free
# ls /mnt/ipod
(nothing listed)

Suggestions warmly welcome...
Edward


Eric F Crist wrote:
If you attach the device as the root user, you should get a console  
message indicating that a new device was found on such-and-such  port.  
Also, I believe it will be listed in either /var/log/messages  or 
/var/log/all.log.



On Oct 30, 2005, at 10:11 AM, edward wrote:


It should be. How do I check ?
Edw.

Eric F Crist wrote:


On Oct 30, 2005, at 9:03 AM, edward wrote:


I rebuilt the kernel with HFS/HFS+ support and it boots and loads  OK.
But no luck mounting the iPod on the firewire port. No luck on  the  
USB port either :

# mount -t hfs /dev/da0s1 /mnt
hfs: /dev/da0s1: Operation not supported by device

Same happens with /dev/da0s2 and /dev/da0s3
Any ideas ?
Edward



Are you sure your ipod is on /dev/daX?
-
Eric F Crist
Secure Computing Networks
http://www.secure-computing.net







-
Eric F Crist
Secure Computing Networks
http://www.secure-computing.net







___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting an iPod

2005-10-31 Thread Edward Lichtner
> On Sun, Oct 30, 2005 at 04:03:02PM +0100, edward wrote:
>> I rebuilt the kernel with HFS/HFS+ support and it boots and loads OK.
> 
> May I ask how you got this to work and which FreeBSD version you are
> using?
> On my FreeBSD 6.0 system the hfs-freebsd-03p2 port fails to build
> after printing some warning messages.
> The complete source code is installed under /usr/src as suggested.
> 
> TIA
> 
> Christopher
> 
> 
Hi Christopher,
I run 5.4 Stable. I adjusted the kernel config file (added 'option
GEOM_APPLE'), then downloaded the hfs-freebsd-03p2 port and it built and
installed exactly as described. I then rebuilt the kernel and voilà.
I can't start boasting about it too much though. I still fail to mount my
iPod and I just crashed my installŠ Don't know if it's linked to my playing
around with the kernel yet.
I'll let you know.
Edward


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting an iPod

2005-10-31 Thread 莫雪涛
I wonder when i can download the 6.0-release version?
 wait for it for a long time.
I am glad to use freebsd for my daily job.
 2005/10/31, Christopher Illies <[EMAIL PROTECTED]>:
>
> On Sun, Oct 30, 2005 at 04:03:02PM +0100, edward wrote:
> > I rebuilt the kernel with HFS/HFS+ support and it boots and loads OK.
>
> May I ask how you got this to work and which FreeBSD version you are
> using?
> On my FreeBSD 6.0 system the hfs-freebsd-03p2 port fails to build
> after printing some warning messages.
> The complete source code is installed under /usr/src as suggested.
>
> TIA
>
> Christopher
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>



--
copyright 莫雪涛。
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Mounting an iPod

2005-10-31 Thread Christopher Illies
On Sun, Oct 30, 2005 at 04:03:02PM +0100, edward wrote:
> I rebuilt the kernel with HFS/HFS+ support and it boots and loads OK.

May I ask how you got this to work and which FreeBSD version you are
using?
On my FreeBSD 6.0 system the hfs-freebsd-03p2 port fails to build
after printing some warning messages.
The complete source code is installed under /usr/src as suggested.

TIA

Christopher

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting an iPod

2005-10-30 Thread Andrew Diakin
2005/10/30, edward <[EMAIL PROTECTED]>:
> I rebuilt the kernel with HFS/HFS+ support and it boots and loads OK.
> But no luck mounting the iPod on the firewire port. No luck on the USB
> port either :
> # mount -t hfs /dev/da0s1 /mnt
> hfs: /dev/da0s1: Operation not supported by device
>
> Same happens with /dev/da0s2 and /dev/da0s3
> Any ideas ?
> Edward
>
> James Seward wrote:
> > On 10/29/05, edward <[EMAIL PROTECTED]> wrote:
> >
> >>The iPod uses an HFS+ file system. It's been loaded from a Mac.
> >>I would like to mount it to /mnt/ipod
> >
> >
> > A quick Google suggests you can try
> > http://people.freebsd.org/~yar/hfs/ to add HFS support to FreeBSD,
> > otherwise you're going to have to reformat your iPod for Windows and
> > then mount it as FAT.
> >
> > I then added this line:
> > /dev/da0s2  /ipod   msdos   rw,noauto   0   0
> >
> > to my fstab, and wrote myself a little ipod script I can use to mount
> > and umount/eject it.
> >
> > To mount it it just mounts /ipod, and to eject it, i umounts /ipod and
> > then calls camcontrol eject on the right device ID to eject it (so the
> > iPod stops thinking it's connected).
> >
> > I can offer further assistance with the 2nd half but not the 1st half of 
> > this :)
> >
> > /JMS
> >
> >
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

You data must be in /dev/daX is it written at
http://people.freebsd.org/~yar/hfs/ :
"The entire disk of your iPod will be accessible as /dev/daX, where X
is a number assigned to this new device upon plugging it. The
GEOM_APPLE module will further split the disk into /dev/daXs1, a
partition map partition (yes, it's self-contained); /dev/daXs2, a
firmware partition; and /dev/daXs3, an HFS Plus volume partition.
Obviously, you should mount the latter."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting an iPod

2005-10-30 Thread Eric F Crist
If you attach the device as the root user, you should get a console  
message indicating that a new device was found on such-and-such  
port.  Also, I believe it will be listed in either /var/log/messages  
or /var/log/all.log.



On Oct 30, 2005, at 10:11 AM, edward wrote:


It should be. How do I check ?
Edw.

Eric F Crist wrote:


On Oct 30, 2005, at 9:03 AM, edward wrote:

I rebuilt the kernel with HFS/HFS+ support and it boots and loads  
OK.
But no luck mounting the iPod on the firewire port. No luck on  
the  USB port either :

# mount -t hfs /dev/da0s1 /mnt
hfs: /dev/da0s1: Operation not supported by device

Same happens with /dev/da0s2 and /dev/da0s3
Any ideas ?
Edward



Are you sure your ipod is on /dev/daX?
-
Eric F Crist
Secure Computing Networks
http://www.secure-computing.net







-
Eric F Crist
Secure Computing Networks
http://www.secure-computing.net



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting an iPod

2005-10-30 Thread Eric F Crist


On Oct 30, 2005, at 9:03 AM, edward wrote:


I rebuilt the kernel with HFS/HFS+ support and it boots and loads OK.
But no luck mounting the iPod on the firewire port. No luck on the  
USB port either :

# mount -t hfs /dev/da0s1 /mnt
hfs: /dev/da0s1: Operation not supported by device

Same happens with /dev/da0s2 and /dev/da0s3
Any ideas ?
Edward



Are you sure your ipod is on /dev/daX?

-
Eric F Crist
Secure Computing Networks
http://www.secure-computing.net



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting an iPod

2005-10-30 Thread edward

I rebuilt the kernel with HFS/HFS+ support and it boots and loads OK.
But no luck mounting the iPod on the firewire port. No luck on the USB 
port either :

# mount -t hfs /dev/da0s1 /mnt
hfs: /dev/da0s1: Operation not supported by device

Same happens with /dev/da0s2 and /dev/da0s3
Any ideas ?
Edward

James Seward wrote:

On 10/29/05, edward <[EMAIL PROTECTED]> wrote:


The iPod uses an HFS+ file system. It's been loaded from a Mac.
I would like to mount it to /mnt/ipod



A quick Google suggests you can try
http://people.freebsd.org/~yar/hfs/ to add HFS support to FreeBSD,
otherwise you're going to have to reformat your iPod for Windows and
then mount it as FAT.

I then added this line:
/dev/da0s2  /ipod   msdos   rw,noauto   0   0

to my fstab, and wrote myself a little ipod script I can use to mount
and umount/eject it.

To mount it it just mounts /ipod, and to eject it, i umounts /ipod and
then calls camcontrol eject on the right device ID to eject it (so the
iPod stops thinking it's connected).

I can offer further assistance with the 2nd half but not the 1st half of this :)

/JMS




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting an iPod

2005-10-30 Thread edward

Hi James,
Thanks for your interest. The page you indicate mentions rebuiding the 
kernel with HFS/HFS+ support. I found a chapter on rebuilding kernels in 
The Complete FreeBSD and I suppose the handbook also has something to 
say about it.
I'll sort this out first and will come back to you about the scripts you 
mentioned.

Edward

James Seward wrote:

On 10/29/05, edward <[EMAIL PROTECTED]> wrote:


The iPod uses an HFS+ file system. It's been loaded from a Mac.
I would like to mount it to /mnt/ipod



A quick Google suggests you can try
http://people.freebsd.org/~yar/hfs/ to add HFS support to FreeBSD,
otherwise you're going to have to reformat your iPod for Windows and
then mount it as FAT.

I then added this line:
/dev/da0s2  /ipod   msdos   rw,noauto   0   0

to my fstab, and wrote myself a little ipod script I can use to mount
and umount/eject it.

To mount it it just mounts /ipod, and to eject it, i umounts /ipod and
then calls camcontrol eject on the right device ID to eject it (so the
iPod stops thinking it's connected).

I can offer further assistance with the 2nd half but not the 1st half of this :)

/JMS




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting an iPod

2005-10-29 Thread James Seward
On 10/29/05, edward <[EMAIL PROTECTED]> wrote:
> The iPod uses an HFS+ file system. It's been loaded from a Mac.
> I would like to mount it to /mnt/ipod

A quick Google suggests you can try
http://people.freebsd.org/~yar/hfs/ to add HFS support to FreeBSD,
otherwise you're going to have to reformat your iPod for Windows and
then mount it as FAT.

I then added this line:
/dev/da0s2  /ipod   msdos   rw,noauto   0   0

to my fstab, and wrote myself a little ipod script I can use to mount
and umount/eject it.

To mount it it just mounts /ipod, and to eject it, i umounts /ipod and
then calls camcontrol eject on the right device ID to eject it (so the
iPod stops thinking it's connected).

I can offer further assistance with the 2nd half but not the 1st half of this :)

/JMS
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Mounting an iPod

2005-10-29 Thread edward

Hi all,
I'm not quite sure how to mount an iPod mini on a x86 machine under 5.4
Stable, to use with gtkpod.
I installed gtkpod, then connected the iPod through firewire. But I'm 
not sure how to adjust my fstab file to make the iPod mount when connected.

My fstab currently is :
# DeviceMountpoint  FStype  Options DumpPass#
/dev/ad0s3b noneswapsw  0   0
/dev/ad0s3a /   ufs rw  1   1
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0

The iPod uses an HFS+ file system. It's been loaded from a Mac.
I would like to mount it to /mnt/ipod

I'm not sure if this is helpful :
# ls /sbin/mount_*
/sbin/mount_cd9660  /sbin/mount_msdosfs /sbin/mount_std
/sbin/mount_devfs   /sbin/mount_nfs /sbin/mount_udf
/sbin/mount_ext2fs  /sbin/mount_nfs4/sbin/mount_umapfs
/sbin/mount_fdescfs /sbin/mount_ntfs/sbin/mount_unionfs
/sbin/mount_linprocfs   /sbin/mount_nullfs
/sbin/mount_mfs /sbin/mount_procfs

Thanks all,
Edward


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"