LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What do I add to my fstab to get my iPod to mount??? (http://www.linuxquestions.org/questions/linux-newbie-8/what-do-i-add-to-my-fstab-to-get-my-ipod-to-mount-203741/)

Ausar 07-11-2004 12:49 PM

What do I add to my fstab to get my iPod to mount???
 
Hello guys and girls, what do I add to my fstab to get my ipod to mount when I run GTKpod? I have searche dthe forums and did a few instructions to get the mount points right in disk drake and the mount point is "/dev/sda2/" Now when I try to mount the ipod in a terminal I get this message, "mount: can't find /mnt/ipod in /etc/fstab or /etc/mtab" So now I assume I am supposed to add something to fstab to make it work. What am I supposed to add?

Caeda 07-11-2004 05:14 PM

The howto...
Plug in iPod...
run hard drive and disk drive partition software.
Select ipod from list.
Tell it where you want it to mount...

Not sure why you would be messing with anything in your config files when you could just run the partition manager and have it done automatically...

Jose Muņiz 07-11-2004 05:32 PM

Or you can be a real man and edit your /etc/fstab by hand :P (just kidding here)
Code:

/dev/sda2        /mnt/ipod    vfat        noauto,owner        0  0

This means it will mount "/dev/sda2" with filesystem format "vfat" into directory "/mnt/ipod". This won't happen at boot time and the device owner is able to mount the filesystem.

If you wish more information you can

Code:

man fstab
man mount

However, I'm not an iPod owner and I'm not completely sure about the options that you should mount your device with. :)

Ausar 07-11-2004 06:11 PM

Quote:

Originally posted by Jose Muņiz
Or you can be a real man and edit your /etc/fstab by hand :P (just kidding here)
Code:

/dev/sda2        /mnt/ipod    vfat        noauto,owner        0  0

This means it will mount "/dev/sda2" with filesystem format "vfat" into directory "/mnt/ipod". This won't happen at boot time and the device owner is able to mount the filesystem.

If you wish more information you can

Code:

man fstab
man mount

However, I'm not an iPod owner and I'm not completely sure about the options that you should mount your device with. :)

Okay, I added the /dev/sda2 /mnt/ipod vfat etc... to the fstab. What next? Must I reboot and start GTKpod to see if it works? I think i'm missing something here that you guys are explaining. Sorry for sounding stupid. Okay, from step one, what do I do after I plug my ipod into the dock?

Ausar 07-11-2004 06:17 PM

Also, when I go into the folder, "/mnt/ipod, there is nothing there. Is there supposed to be something there. (I feel like a real idiot with this)

Another thing before I forget, under the Mandrake Linux Control Center>Partitions> the ipod is recognized in there as Mount point /sda2
Device: sda2
Dos Drive Letter: C (just a guess) <----it actually says that
Type: Fat32
Size: 13GB (99%)
Formatted
Mounted

I do not know how to make sense of it all.

Jose Muņiz 07-12-2004 11:46 AM

Ok... your iPod is just some sort of storage device. The same thing goes with CDs , Memory Sticks, Digital Cameras, etc. Hence, think of it as a hard drive.

Hard drives are mounted into your filesystem so that you can view its content and possibly modify it. Hence, at bootup, Linux mounts your root partition so that you can view your files and programs and write to them.

The same thing happens with other units. To be able to use them, you have to make sure they are there somewhere in your filesystem. Take a CD for instance. FIrst you mount the CD

Code:

mount -t vfat /dev/cdrom /mnt/cdrom
Then you can go to /mnt/cdrom and you will find all the content of your CD ROM. Now... notice that the mount was too large and maybe you'd like to only say mount /mnt/cdrom or maybe mount /dev/cdrom. Then, as some things are missing (type and device), your mount command will look in the file called /etc/fstab for more information. This information will be provided by the fstab which will help your system mount the unit.

Now... you have your iPod entry in your fstab. Now mount it (mount /mnt/iPod or whatever the directory was called). You should be able to see something in there :P

And btw.. no need to restart in this kind of things...

leosgb 02-15-2005 03:01 PM

shuffle and flash drive
 
Hello,

I was just wondering if you guys could help me. I have only one USB port in my laptop and i connect to it many different devices, like my mouse, ipod shuffle and my flash drive. I have an entry in my /etc/fstab that says:
/dev/sda1 /mnt/usb-storage auto noauto,users,rw 0 0

That would mount all gadgets connected to sda1 to /mnt/usb-storage which works for me but aint what i want. I want my ipod 9and only the ipod) to be autimattically mounted to /mnt/ipod and the rest of mass storage devices mounted to /mnt/usb-storage. Is it possible?

If not i am consideringn to have a script for the gtkpod startup that would unmount the device and then mountn it again at the desired point9if that is possible too).

I know this thread is old but i hope someone reads this question before i give up :)

thanks


All times are GMT -5. The time now is 12:31 PM.