LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-19-2004, 03:52 PM   #1
lil_slice
LQ Newbie
 
Registered: Sep 2003
Location: Minneapolis
Distribution: Redhat9, FedoraC1
Posts: 20

Rep: Reputation: 0
ejecting ipod as user


Here I mount my ipod and unmount it then try to eject it as user and root.



staph% mount /mnt/ipod
staph% ls /mnt/ipod/
Calendars/ Contacts/ Files/ iPod_Control/
staph% umount /mnt/ipod
staph% eject -v ipod
eject: device name is `ipod'
eject: expanded name is `/dev/ipod'
eject: `/dev/ipod' is a link to `/dev/sdb2'
eject: `/dev/sdb2' is not mounted
eject: `/dev/sdb2' is not a mount point
eject: `/dev/sdb2' is a multipartition device
eject: trying to eject `/dev/sdb2' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/sdb2' using SCSI commands
eject: SCSI eject failed
eject: trying to eject `/dev/sdb2' using floppy eject command
eject: floppy eject command failed
eject: trying to eject `/dev/sdb2' using tape offline command
eject: tape offline command failed
eject: unable to eject, last error: Invalid argument
staph% ssh root@localhost
Last login: Mon Jul 19 15:34:46 2004 from localhost.localdomain
[root@staph root]# eject -v ipod
eject: device name is `ipod'
eject: expanded name is `/dev/ipod'
eject: `/dev/ipod' is a link to `/dev/sdb2'
eject: `/dev/sdb2' is not mounted
eject: `/dev/sdb2' is not a mount point
eject: `/dev/sdb2' is a multipartition device
eject: trying to eject `/dev/sdb2' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/sdb2' using SCSI commands
eject: SCSI eject succeeded

at this point the ipod displays "ok to disconnect"
The sbp2 module is still hanging around, but i
dont mind that.

Now heres what happens when i tell eject specifically
to use the SCSI command (the one that worked as root
above):

staph% mount /mnt/ipod
Calendars/ Contacts/ Files/ iPod_Control/
staph% umount /mnt/ipod
staph% eject -vs ipod
eject: device name is `ipod'
eject: expanded name is `/dev/ipod'
eject: `/dev/ipod' is a link to `/dev/sdb2'
eject: `/dev/sdb2' is not mounted
eject: `/dev/sdb2' is not a mount point
eject: `/dev/sdb2' is a multipartition device
eject: trying to eject `/dev/sdb2' using SCSI commands
eject: SCSI eject failed
eject: unable to eject, last error: Permission denied

Here are the relevent portions of some other files:

/etc/updfstab.conf:

device ipod {
symlink true
partition 2
match hd Apple
}


/etc/security/console.perms

#device classes
<ipod>=/mnt/ipod*

#permission definitions
<console> 0600 <ipod> 0660 root.disk


The system is RedHat 8




So in summary, when the iPod gets plugged in a symlink is
created from /dev/ipod to the second partition, /mnt/ipod
is created and an entry in fstab is made. I can mount and
unmount as a user no problem. However I get Permission
Denied when I try (as user) to eject a device that I OWN
and is NOT mounted.

I'm stumped... any ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't eject iPod as normal user, but works as root FreeThinkerJim Linux - Hardware 3 11-18-2005 08:19 PM
ipod/ipod shuffle woes (lack of permissions to edit files) Lechium Linux - Software 1 04-13-2005 03:14 PM
Install Suse on Ipod and boot from Ipod??? lemuel Linux - Newbie 4 12-27-2004 07:04 AM
ipod detected and added by kudzu but no files in /mnt/ipod gtan Linux - Hardware 5 08-31-2004 09:19 AM
CD-ROM not ejecting xtree Linux - Software 3 02-20-2004 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration