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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
07-19-2006, 10:27 PM
#1
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Rep:
Problems with mount
Hello,
I'm having a strange situation, when my cdrom is not mounted, i get those permissions:
drwxr-xr-x 2 root cdrom 48 2006-06-06 11:50 cdrom1
Then when i try the cdrom, permissions change to this...
drwx------ 5 400 401 4096 2003-10-05 16:41 cdrom1
What can i do to fix this????
Here is fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / reiserfs notail 0 1
/dev/hda1 /home/fernando/hd reiserfs defaults 0 2
/dev/hdc /media/cdrom0 iso9660 users,ro,noauto,noexec 0 0
/dev/hdd /media/cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0
thanks
07-20-2006, 02:24 AM
#2
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Try this:
Code:
dev/hdd /media/cdrom1 iso9660 users ,ro,user,exec ,noauto 0 0
and post the results...
07-20-2006, 06:17 AM
#3
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Original Poster
Rep:
Quote:
Originally Posted by JZL240I-U
Try this:
Code:
dev/hdd /media/cdrom1 iso9660 users ,ro,user,exec ,noauto 0 0
and post the results...
Same thing, the permissions/owner when i mount changes to:
Code:
drwx------ 5 400 401 4096 2003-10-05 16:41 cdrom1
Thanks for you answer.
07-20-2006, 07:23 AM
#4
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
How do you mount (exact command)? What output do you show us when you post the permissions, "ls -l"? Did you umount before you tried my suggestion?
07-20-2006, 07:30 AM
#5
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Original Poster
Rep:
I'm pasting what i am exactly doing...
Code:
debian-fernando:/media# ls -l
total 0
lrwxrwxrwx 1 root cdrom 6 2006-06-06 11:50 cdrom -> cdrom0
drwxrwxrwx 2 root cdrom 48 2006-06-06 11:50 cdrom0
drwxr-xr-x 2 root cdrom 48 2006-06-06 11:50 cdrom1
debian-fernando:/media# mount /dev/hdd
debian-fernando:/media# ls -l
total 4
lrwxrwxrwx 1 root cdrom 6 2006-06-06 11:50 cdrom -> cdrom0
drwxrwxrwx 2 root cdrom 48 2006-06-06 11:50 cdrom0
drwx------ 5 400 401 4096 2003-10-05 16:41 cdrom1
debian-fernando:/media#
07-20-2006, 07:46 AM
#6
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Oh. Assuming you made the change in/etc/fstab I suggested above, try
and check again...
07-20-2006, 09:04 AM
#7
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Original Poster
Rep:
Here it is
Code:
debian-fernando:/home/fernando# umount -a
umount: /home/fernando/hd: device is busy
umount: /dev: device is busy
umount: /: device is busy
debian-fernando:/home/fernando# mount -a
debian-fernando:/home/fernando# cd /media
debian-fernando:/media# ls -l
total 0
lrwxrwxrwx 1 root cdrom 6 2006-06-06 11:50 cdrom -> cdrom0
drwxrwxrwx 2 root cdrom 48 2006-06-06 11:50 cdrom0
drwxr-xr-x 2 root cdrom 48 2006-06-06 11:50 cdrom1
debian-fernando:/media# mount /dev/hdd
debian-fernando:/media# ls -l
total 4
lrwxrwxrwx 1 root cdrom 6 2006-06-06 11:50 cdrom -> cdrom0
drwxrwxrwx 2 root cdrom 48 2006-06-06 11:50 cdrom0
drwx------ 5 400 401 4096 2003-10-05 16:41 cdrom1
debian-fernando:/media# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / reiserfs notail 0 1
/dev/hda1 /home/fernando/hd reiserfs defaults 0 2
/dev/hdc /media/cdrom0 iso9660 users,ro,noauto,noexec 0 0
#/dev/hdd /media/cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/hdd /media/cdrom1 iso9660 users,ro,user,exec,noauto 0 0
07-20-2006, 09:21 AM
#8
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Why do you want to mount something which is already mounted, namely /dev/hdd? Well, if this is what you want, try
Code:
mount -o,remount /dev/hdd
{man mount on the syntax for the -o and remount flags,
I'm not sure whether I remember that correctly... }
07-20-2006, 09:29 AM
#9
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Original Poster
Rep:
i'm not trying to mount something that is already mounted, take a look:
Code:
debian-fernando:/media# umount -a
umount: /home/fernando/hd: device is busy
umount: /dev: device is busy
umount: /: device is busy
debian-fernando:/media# mount -a
debian-fernando:/media# df
Sist. Arq. 1K-blocos Usad Dispon. Uso% Montado em
/dev/hda2 28835784 16538128 12297656 58% /
udev 10240 76 10164 1% /dev
/dev/hda1 51197536 16625504 34572032 33% /home/fernando/hd
debian-fernando:/media# ls -l
total 0
lrwxrwxrwx 1 root cdrom 6 2006-06-06 11:50 cdrom -> cdrom0
drwxrwxrwx 2 root cdrom 48 2006-06-06 11:50 cdrom0
drwxr-xr-x 2 root cdrom 48 2006-06-06 11:50 cdrom1
debian-fernando:/media# mount /dev/hdd
debian-fernando:/media# df
Sist. Arq. 1K-blocos Usad Dispon. Uso% Montado em
/dev/hda2 28835784 16538128 12297656 58% /
udev 10240 76 10164 1% /dev
/dev/hda1 51197536 16625504 34572032 33% /home/fernando/hd
/dev/hdd 639328 639328 0 100% /media/cdrom1
debian-fernando:/media# ls -l
total 4
lrwxrwxrwx 1 root cdrom 6 2006-06-06 11:50 cdrom -> cdrom0
drwxrwxrwx 2 root cdrom 48 2006-06-06 11:50 cdrom0
drwx------ 5 400 401 4096 2003-10-05 16:41 cdrom1
07-20-2006, 09:34 AM
#10
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Hm, yes you're right. Now, try it with "-o,remount" it should use the parameters from your fstab...
07-20-2006, 09:43 AM
#11
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Original Poster
Rep:
same things...
Code:
debian-fernando:/media# mount -o,remount /dev/hdd
debian-fernando:/media# ls -l
total 4
lrwxrwxrwx 1 root cdrom 6 2006-06-06 11:50 cdrom -> cdrom0
drwxrwxrwx 2 root cdrom 48 2006-06-06 11:50 cdrom0
drwx------ 5 400 401 4096 2003-10-05 16:41 cdrom1
07-20-2006, 10:03 AM
#12
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Grrr. What happens when you issue a "chmod 755 /media/cdrom"?
Last edited by JZL240I-U; 07-20-2006 at 10:15 AM .
07-20-2006, 11:05 AM
#13
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Original Poster
Rep:
Quote:
Originally Posted by JZL240I-U
Grrr. What happens when you issue a "chmod 755 /media/cdrom"?
I can't do this, because cdrom is mounted as a write-protected fs
07-20-2006, 03:44 PM
#14
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Original Poster
Rep:
where can i set which user cdrom will be mounted as?
07-21-2006, 02:05 AM
#15
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Quote:
Originally Posted by stormrider_may
I can't do this, because cdrom is mounted as a write-protected fs
Huh? What's that got to do with another?
Quote:
Originally Posted by stormrider_may
debian-fernando:/media# ls -l
...
drw xr-xr-x 2 root cdrom 48 2006-06-06 11:50 cdrom1
What is the error message, when you issue chmod?
Quote:
Originally Posted by stormrider_may
where can i set which user cdrom will be mounted as?
In /etc/fstab. But you allow groups to mount (in my earlier post it was the group "users"), so if you want one single user to be able to mount, you create a group like "cdmounter" or some such and add the special user to this group. root is allowed to mount, too.
All times are GMT -5. The time now is 12:22 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News