Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-20-2009, 11:29 PM   #1
tejaswi kalawatia
LQ Newbie
Registered: Feb 2009
Posts: 14

Rep: Reputation: 0
access denied to view the contents of d drive in slackware 12.1


i recently installed slackware 12.1 on my dell vostro laptop.when i open the d drive where i have stored all my media files it displays the message access denied.
also where can i find the slackbook
Old 02-21-2009, 12:19 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Enter "sudo /sbin/fdisk -l" to get a list of the drives and partitions on your system. "D drive" is an MSDOS term. Linux partitions will be called something like /dev/sda1 or /dev/hda1 depending on your kernel version. Do you have only one drive in your laptop, with 2 or more partitions? If so it will probably be /dev/hda2 or /dev/sda2. The output of the fdisk -l command will indicate the filetype.
You can also use "udevinfo -q env -n /dev/hda2" to find what filesystem is on the second partition.

Is this the second partition on your internal drive or an external drive?

Is it formatted using either fat32 or NTFS? If so then you need to change some mount options. Use &quot;uid=<your_user_name>,gui=<your_group>&quot;. This will determine the ownership of the files and directories. Use &quot;fmask=0117,dmask=0007&quot; to allow read and write access for the owner and group.
sudo mount -t vfat /dev/sda2 /mnt/movies -o rw,uid=teja,gid=teja,fmask=0117,dmask=007

If the filesystem is a native filesystem, then after mounting, use the &quot;chown&quot; command to change the ownership, and the &quot;chmod&quot; to change the permissions. This needs to be done while the filesystem is mounted.
E.G.: sudo chown teja.teja /mnt/movies
sudo chmod ug=rwx /mnt/movies


I used the google terms: slackbook ext:pdf

Last edited by jschiwal; 02-21-2009 at 12:21 AM.
Old 02-21-2009, 12:20 AM   #3
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
What is the d: drive? Is it a windows drive? If it is then you will need to mount the drive in slax first to use it.


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
unable to view the contents!!! a1ora0 Slackware 1 09-29-2007 01:58 PM
access denied on /mnt/removable with an external USB drive dasch Mandriva 4 09-02-2005 06:30 PM
smbmount works but I get permission denied when access the drive jeickal Linux - Networking 0 12-17-2004 12:22 PM
Access contents of Linux drive from Windows???? welchdoc Linux - Newbie 3 11-15-2003 09:19 PM
how to view contents of cd Synth218 Linux - Newbie 7 05-25-2003 07:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:54 PM.

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