LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-25-2005, 03:31 AM   #1
ssabljic
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Rep: Reputation: 0
mounting problems


Ok here is the thing i mounted cdrom it works as the two other hard discs but i can mount disc-c (windows ntfs) but i can't mount disc-d (fat32). D is the one that is nead because my music and stuff is there. I can read it and mount it as root but not as ssabljic (user). I get not enought permisions but i changed permisions in /mnt/hd/... and when it's not mounted the permisions are ok as I set them but when it's mounted the permisions change...
dr-xr--r-x 1 ssabljic users 8192 2005-11-22 11:32 disc-c/
d--x--x--x 14 ssabljic users 16384 1970-01-01 01:00 disc-d/
these are when it's mounted
and these are when it's umounted
drwxr-xr-x 2 ssabljic users 4096 2005-11-25 00:09 disc-c/
drwxrwxrwx 2 ssabljic users 4096 2005-11-25 00:57 disc-d/

This is my fstab
/dev/hda5 / ext3 defaults 1 1
/dev/hda1 /mnt/hd/disc-c ntfs ro,users,uid=1000,gid=100,umask=666 1 0
/dev/hda6 /mnt/hd/disc-d vfat ro,users,uid=1000,gid=100,umask=666 1 0
/dev/cdrom /mnt/cdrom auto noauto,owner,ro,users 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,users 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults

So can you tell me where is the problem...

And another one i have CDRW Plextor and DVDRW _NEC the thing is i would like to use them bouth but my CD is my DVD so how to make them bouth availabe mening which one is which in /dev...

Thanx ...
Btw my ICQ is 57544893 and if someone would have the time to talk to me that way it would make things much easyer i guess ...

p.s. sorry for my english ...
 
Old 11-25-2005, 03:59 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,435

Rep: Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629
Re: mounting problems

Quote:
Originally posted by ssabljic

This is my fstab
Code:
/dev/hda5        /                       ext3        defaults                             1   1
/dev/hda1        /mnt/hd/disc-c          ntfs        ro,users,uid=1000,gid=100,umask=666                  1   0
/dev/hda6        /mnt/hd/disc-d          vfat        ro,users,uid=1000,gid=100,umask=666                  1   0
/dev/cdrom       /mnt/cdrom              auto        noauto,owner,ro,users                0   0
/dev/fd0         /mnt/floppy             auto        noauto,owner,users                   0   0
devpts           /dev/pts                devpts      gid=5,mode=620                       0   0
proc             /proc                   proc        defaults
First, your device /dev/cdrom actually is a symbolic link to the real device. Try to see what it points to (mostly with IDE drives, that will be /dev/hdb or /dev/hdc or /dev/hdd). Run
Code:
ls -l /dev/cdrom
.
Now you know what your DVDRW is: it is the device that /dev/cdrom is pointing to. You say that this link should rather be pointing to your CDRW drive instead... that would be nicer indeed.
So, the next thing would be to discover what device is your CDRW? You can run the command
Code:
dmesg
and look in the output if you can discover the device name of the CDRW, or perhaps you already know it. Remember, in the Linux console you can scroll up by using <SHIFT><PgUp> and <SHIFT><PgDn> keys. In an X terminal such as Konsole, scrolling back will be much easier of course.

Now, for the sake of example, suppose that your CDRW drive is /dev/hdb and the DVDRW drive is /dev/hdd . If yours are different, you just substitute the correct device names in the examples that follow.
First, create the correct links to the two drives, we will call the CDRW /dev/cdrom and the DVDRW /dev/dvd .
Run these commands as user root:
Code:
cd /dev
ln -sf hdb cdrom
ln -sf hdd dvd
Now, you have two correctly pointing symbolic links. Verify that by running:
Code:
ls -l /dev/cdrom
ls -l /dev/dvd
Also, create the mount point for your DVD drive if it does not yet exist:
Code:
mkdir /mnt/dvd
Finally, this is what your /etc/fstab file should look like if you want to use the DVD and CD drive, and also get write permissions on your D-drive (FAT32):
Code:
/dev/hda5        /                       ext3        defaults                             1   1
/dev/hda1        /mnt/hd/disc-c          ntfs        ro,users,uid=1000,gid=100,umask=000                  1   0
/dev/hda6        /mnt/hd/disc-d          vfat        rw,users,uid=1000,gid=100,umask=000                  1   0
/dev/cdrom       /mnt/cdrom              auto        noauto,owner,ro,users                0   0
/dev/dvd         /mnt/dvd                auto        noauto,owner,ro,users                0   0
/dev/fd0         /mnt/floppy             auto        noauto,owner,users                   0   0
devpts           /dev/pts                devpts      gid=5,mode=620                       0   0
proc             /proc                   proc        defaults
Hope this helps a little.
Also, if you run a 2.4 kernel, you might have to use ide-scsi for the CD and DVD writer, to be able and burn CD's and DVD's with them (the devices will get a SCSI name like /dev/sr0 and /dev/sr1). The following line should be placed in the top section of /etc/lilo.conf:
Code:
append=" hdb=ide-scsi hdd=ide-scsi"
Please remember to use the correct device names here, I only use hdb and hdd as examples. After modifying /etc/lilo.conf you will need to run the "lilo" command and then reboot:
Code:
lilo
With 2.6 kernels, you can use the ATA driver (the drives keep their name hdb hdd etc...)
 
Old 11-25-2005, 04:18 AM   #3
ssabljic
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Original Poster
Rep: Reputation: 0
ok my discs work now all of them... why can't i have bouth cd and dvd mounted at the same time ... ???
 
Old 11-25-2005, 04:27 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,435

Rep: Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629Reputation: 7629
Of course you can mount your CD and DVD at the same time! Just not mount them on the same moint point.
If your mounting does not work, it is probably because you make a mistake somewhere when creating symbolic links and/or mount points and/or "fstab" entries.

Eric
 
  


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
Mounting problems NRHBasher Linux - Hardware 12 04-13-2004 02:20 PM
Mounting Problems broxys Linux - Newbie 4 07-10-2003 12:33 PM
mounting problems im1crazyassmofo Linux - General 5 03-25-2003 02:41 PM
Mounting problems tsitras Linux - Newbie 3 03-23-2003 03:40 PM
Mounting Problems! Chalky723 Linux - Newbie 4 10-27-2001 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:09 AM.

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
Open Source Consulting | Domain Registration