LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 02-08-2008, 10:05 AM   #1
dkathrens77
LQ Newbie
 
Registered: Feb 2008
Location: Denver Colorado USA
Distribution: Ubuntu 11.04
Posts: 20

Rep: Reputation: 0
Question moved my question here from Newcomers forum - mount ntfs volumes in Debian Etch 4.0


I asked this question in my greeting post on the Member Inro forum.
I have a single 120gig hard drive, partitioned thusly:

Label "System" 20gig NTFS for Windows XP Pro 64 Bit
Label "Data" 40gig NTFS for all my data files


I used Norton Partition Magic 8.0 to create an ext3 partition and a swap partition in the remaining space on the drive

I used a Debian 4.0 Etch installation DVD from Linux Magazine to install. It apparently chose the amd64 version to install with no prompting.

All deskops (I set up 3 users) show System and Data when I click the Places>Computer menu bar item. I can drag them out onto the desktop but
when I try to open them I get this error


Unable to mount selected volume.

libhal-storagec 1401: info: called libhal_free_dbus_error but dbus error was not set.
process 1358: applications mustt not close shared connections -
see dbus_connection_close() docs. this is a bug in the application

error: device /dev/sda5 is not removable
error: could not execute pmount



I received a reply from leonscape in MemberIntro, quoted here:

Quote:
Originally Posted by leonscape View Post
mounting ntfs just for reading in Linux is quite easy

su to root
Code:
username@machine: ~$ su
Password: enter root password although nothing shows up
machine: /home/username# mkdir /mnt/windows
machine: /home/username# mount -t ntfs /dev/hdxx /mnt/windows
machine: /home/username# cd /mnt/windows
machine: /mnt/windows# ls
CONFIG.SYS            MSDOS.SYS     ntldr     Program Files  System Volume Information  WINDOWS
AUTOEXEC.BAT          Inetpub       MSOCache  NVIDIA         temp                       boot.ini
Documents and Settings  IO.SYS        NTDETECT.COM  pagefile.sys  RECYCLER
to make it permanent, add the line to /etc/fstab
Code:
/dev/hdxx	/mnt/windows	ntfs	users,auto,uid=1000,gid=1000	0	0
/dev/hdxx should be set to the correct partition of course.
I added this line to /etc/fstab as root:

dev/sda5 /media/sda5 ntfs,users,auto,uid=000,gid=1000 0 0

(with tabs between the items as appropriate-not visible in this post?) and entered the code quoted above in a terminal window to mount it

However, I still get the same error.

I did some checking.

In /dev, I only see HDC and HDD. I am not sure which partitions these refer to, but I am guessing thesese are my EXT# and SWAP partitions

In /mnt I see my Data directory (the one I created) but it is empty.

I don't understand why all my partitions don't appear in /dev

I don't understand why one place refers to HDx and the other to SDx.

Any help, please?
 
Old 02-08-2008, 11:39 AM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
/sd? Under new kernels include almost all block devices. Under older kernels, these were only SCSI, SATA, and USB devices. /hd? handled ATA.

What does "ls /dev/[sh]d*" show?
 
Old 02-08-2008, 11:44 PM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Quote:
I added this line to /etc/fstab as root:

dev/sda5 /media/sda5 ntfs,users,auto,uid=000,gid=1000 0 0

(with tabs between the items as appropriate-not visible in this post?) and entered the code quoted above in a terminal window to mount it

However, I still get the same error.

I did some checking.

In /dev, I only see HDC and HDD. I am not sure which partitions these refer to, but I am guessing thesese are my EXT# and SWAP partitions

In /mnt I see my Data directory (the one I created) but it is empty.
The line you put in /etc/fstab has partition sda5 mounted in /media/sda5 yet you say you made a mount point in /mnt. If you have/created a directory called /media/sda5, that's where your files should be. If not, change that section of the line highlighted above to the mount point you created in /mnt.
If you type this command in a terminal: fdisk -l, you would get a list of all drives and their partitions, if it has the Windows partition as hda, you must change the first part of that line in /etc/fstab to /dev/hdaX, (X) being the appropriate partition. If the output of the fdisk -l command has the partition you want to mount as /dev/sda5, then leave it as is. Just make sure it matches what the fdisk -l command shows.
 
Old 02-08-2008, 11:52 PM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Quote:
dev/sda5 /media/sda5 ntfs,users,auto,uid=000,gid=1000 0 0
I never use a specific UID with Debian, below is the line Debian set up for me a year ago in read only mode:
Code:
/dev/sda3       /mnt/data       ntfs umask=0,nls=utf8,ro        0       0
 
Old 02-08-2008, 11:54 PM   #5
dkathrens77
LQ Newbie
 
Registered: Feb 2008
Location: Denver Colorado USA
Distribution: Ubuntu 11.04
Posts: 20

Original Poster
Rep: Reputation: 0
Lightbulb

I didn't mention that my hard drive is an SATA device. Sorry. Your question

Quote:
what does 'ls /dev/[sh]d* show?'
threw me at first.

I typed it in exactly from your post and of course I got


ls: /dev/[sh]d*: no such file or directory

It took me a moment or two to realize that the brackets might indicate "s OR d".

ls dev/hd* returns hdc hdd hpet

ls /dev/sd* returns sda sda1 sd2 sda3 sda5 sda6 snapshot sndstat stderr stdin stdout

Armed with this information (thank you!) I can see in /etc/fstab that sda3 is my ext3 partition and sda6 is my swap partition

So I'm left with sda1 sda2 sda5 as candidates for my Windows partitions. I'm guessing sda refers to the entire hard drive, correct?





 
Old 02-09-2008, 12:10 AM   #6
dkathrens77
LQ Newbie
 
Registered: Feb 2008
Location: Denver Colorado USA
Distribution: Ubuntu 11.04
Posts: 20

Original Poster
Rep: Reputation: 0
Talking

Thank you Junior Hacker!

I modified the line in /etc/fstab as you suggested and now I have RO access to my Data partition.
 
Old 02-09-2008, 02:57 AM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
If you want read/write access to the data partition, install ntfs-3g with apt or synaptic or aptitude. There should be a couple other files needed as dependencies which apt will also install. Then change the line in /etc/fstab to look like this one I use now:
Code:
/dev/sda3	/data		ntfs-3g	defaults	0	0
 
  


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
how to mount freebsd partition from Debian GNU./Linux. (etch-4.0) foolagain Debian 4 10-16-2009 08:38 PM
Mount command update debian etch? addux Debian 3 01-14-2008 11:10 PM
since upgrade debian sarge>etch can't mount smb-shares with ads t0bias Linux - Server 0 06-20-2007 04:22 AM
how to mount NTFS volumes tsitras Debian 2 04-15-2004 09:09 AM
fails to mount one of two ntfs volumes nskn Linux - Software 1 04-03-2004 06:38 AM


All times are GMT -5. The time now is 12:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration