LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-29-2003, 02:06 PM   #1
Wonderer
Member
 
Registered: Oct 2003
Location: London, UK
Distribution: Slackware 9.0
Posts: 58

Rep: Reputation: 15
Once agian: Problems with mounting ntfs


Hi

I realise that this question has been asked many time before and believe me I have read and tried the suggestions.

I am still having problems accessing ntfs partition on Slack 9.0

I trust that ntfs support is built in the kernel as I did not compile it myself. I only need read access to transfer my files.

Basic info:
Drvie 1: winxp 40gb
hda2 ntfs boots as drive C in win
hda5 fat boots as drive D in win [it is manufacturer's back up]

Drive 2: linux 120 gb


I have been able to mount partition D as
Code:
/dev/hda5 /fat-e vfat defaults,umask=000 0 0
but have problems with
Code:
/dev/hda2 /win ntfs defaults,umask=000 0 0

I have tried various methods ie:
Code:
/dev/hda5 /mnt/win ntfs defulats,umask=000 0 0
and done
Code:
# mkdir /mnt/win
# mount /mnt/win
# mount /dev/hda2
# mount /win
I have also tried other fstab settings ie
Code:
/dev/hda2 /mnt/win ntfs noauto,users,exec,ro,uid=xxx,gid=xxx 0 0
/dev/hda2 /mnt/win ntfs auto,users,exec,ro,uid=xxx,gid=xxx 0 0
/dev/hda2 /mnt/win ntfs ro,umask=0222 0 0
I am still not able to mount the partition.

I am sure I am missing something and after reading and searching all the posts here and elsewhere, I have not found out what.

Can you plz pint me in the right direction.

TIA

Last edited by Wonderer; 10-30-2003 at 03:05 AM.
 
Old 10-29-2003, 02:14 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What happens if you try it manually?
Putting the fstab aside for a second, try

[code]
mount -t ntfs /dev/hda2 /mnt/win noauto,user,users,uid=xxx
[/mount]

At least that way you should get a decent
error message ;)

Cheers,
Tink
 
Old 10-30-2003, 03:05 AM   #3
Wonderer
Member
 
Registered: Oct 2003
Location: London, UK
Distribution: Slackware 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
Tnx for the help.

fstab:
/dev/hda2 /winxp ntfs noauto,users,exec,ro,umask=0222 0 0



# mount -t ntfs /dev/hda2 /mnt/winxp noauto,user,users,uid=xxx
Come up with standard mount man.

# mount -t ntfs /dev/hda2 /mnt/winxp
mount: mount point /mnt/winxp does not exist

# mount /winxp
mount: mount point /winxp does not exist

# mount /mnt/winxp
mount: can't find /mnt/winxp in etc/fstab or /etc/mtab

# mount /dev/hda2
mount: mount point /winxp does not exist

# mount -t ntfs /dev/hda2 /winxp
mount: mount point /winxp does not exist

# cfdisk /dev/hda
Pri/Log Free Space 8.23
hda5 Logical FAT16 [BACKUP] 2097.45
hda2 Boot Primary NTFS [^D] 37926.77


# ls /winxp
/bin/ls: /winxp: No such file or directory


Any ideas?

Last edited by Wonderer; 10-30-2003 at 03:38 AM.
 
Old 10-30-2003, 03:12 AM   #4
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by Wonderer
fstab:
/dev/hda2 /mnt/winxp ntfs noauto,users,exec,ro,umask=0222 0 0

mount: mount point /mnt/winxp does not exist

Any ideas?
Yes. Your mount point does not exist. Do mkdir /mnt/winxp and then try again.
 
Old 10-30-2003, 03:41 AM   #5
Wonderer
Member
 
Registered: Oct 2003
Location: London, UK
Distribution: Slackware 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by robartes
Yes. Your mount point does not exist. Do mkdir /mnt/winxp and then try again.
Sorry my typing [copy] mistake [corrected].

It is currently:

fstab:
/dev/hda2 /winxp ntfs noauto,users,exec,ro,umask=0222 0 0


I had also tried it with /mnt/winxp and mkdir /mnt/winxp as per my first post.

 
Old 10-30-2003, 04:12 AM   #6
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by Wonderer
Sorry my typing [copy] mistake [corrected].

It is currently:

fstab:
/dev/hda2 /winxp ntfs noauto,users,exec,ro,umask=0222 0 0


I had also tried it with /mnt/winxp and mkdir /mnt/winxp as per my first post.

OK, then what's the error if it's not 'Mount point does not exist'?
 
Old 10-30-2003, 04:16 AM   #7
Wonderer
Member
 
Registered: Oct 2003
Location: London, UK
Distribution: Slackware 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
The following mounts fine.
/dev/hda5 /fat-e vfat defaults,umask=000 0 0


But this does not
/dev/hda2 /winxp ntfs defaults,umask=000 0 0

Why is that? They both have the same settings.
/fat-e mounts but /winxp does not.

# mount /fat-e
already mounted

#mount /winxp
mount: mount point /winxp does not exist

I have tried dif settings as per above but not successfull yet.
I know it is a mounting problem but what is it?

 
Old 10-30-2003, 04:24 AM   #8
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by Wonderer
The following mounts fine.
/dev/hda5 /fat-e vfat defaults,umask=000 0 0


But this does not
/dev/hda2 /winxp ntfs defaults,umask=000 0 0

Why is that? They both have the same settings.
/fat-e mounts but /winxp does not.

# mount /fat-e
already mounted

#mount /winxp
mount: mount point /winxp does not exist

I have tried dif settings as per above but not successfull yet.
I know it is a mounting problem but what is it?

Grrrmbl. I thought you said the mount point exists? OK - apparently it does not. Have you tried mkdir /winxp and then mounting ? If it doesn't work, report the error and we'll take it from there.

Don't worry - we'll get the thing mounted (even if we have to use a shoehorn to do so).
 
Old 10-30-2003, 06:20 AM   #9
Wonderer
Member
 
Registered: Oct 2003
Location: London, UK
Distribution: Slackware 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
Tnx

As per my first post. I initially had the entry as /mnt/winxp and then I created the mkdir /mnt/winxp and then tried to mount it but it did not work.

So I am not sure if the same process with /winxp and mkdir /winxp and mount /winxp would work.

How can I verify if Slack 9.0 bare.i is supporting ntfs?

Out of curiosity, hda has a weird partition set up. Could this be an element??

Code:
# cfdisk /dev/hda
.................Pri/Log...Free Space............8.23
hda5.............Logical...FAT16...[BACKUP]...2097.45
hda2...Boot......Primary...NTFS....[^D]......37926.77

-------------------------------------------------------
|.free.|.....D:.....|............C:winxp..............|
-------------------------------------------------------


ps. All the errors are mentioned in my second post in this thread.

Last edited by Wonderer; 10-30-2003 at 06:21 AM.
 
Old 10-30-2003, 06:35 AM   #10
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
If the problem is situated in the lack of FS support, you would get a different error. Nevertheless, to check for NTFS support, first do:

Code:
cat /proc/filesystems
If that does not list NTFS, do

Code:
modprobe ntfs
If that returns with "modprobe: Can't locate module ntfs", you don't have NTFS support.
If the modprobe works, do cat /proc/filesystems again to verify NTFS is now in there.

Also, to clear things up, what's the output from:

Code:
ls -l /winxp
 
Old 10-30-2003, 07:02 AM   #11
Wonderer
Member
 
Registered: Oct 2003
Location: London, UK
Distribution: Slackware 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
Before I forget, I am vey grateful for the help.

OK, I was posting from windos before but now I am in Slack.

Here is:
Code:
# cat /proc/filesystems
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   tmpfs
nodev   shm
nodev   pipefs
        ext3
        ext2
nodev   ramfs
        umsdos
        msdos
        vfat
        iso9660
nodev   nfs
        reiserfs
nodev   devpts
nodev   usbdevfs
nodev   usbfs
No 'ntfs' but 'nfs' ??

Next:
Code:
# modprobe ntfs
#
It simply takes me back to #

After that:
Code:
# cat /proc/filesystems
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   tmpfs
nodev   shm
nodev   pipefs
        ext3
        ext2
nodev   ramfs
        umsdos
        msdos
        vfat
        iso9660
nodev   nfs
        reiserfs
nodev   devpts
nodev   usbdevfs
nodev   usbfs
        ntfs
Wow ntfs is there now.



Finally,
Code:
# ls -l /winxp
ls: /winxp: No such file or directory
I am in X and su in konsole.

Code:
# mount /winxp
mount: mount point /winxp does not exist
# mount /dev/hda2
mount: mount point /winxp does not exist
Here is the complete fstab
Code:
dev/hdb2        swap             swap        defaults         0   0
/dev/hdb3        /                reiserfs    defaults         1   1
/dev/hdb1        /boot            ext3        defaults         1   2
/dev/hdb5        /usr/local       reiserfs    defaults         1   2
/dev/hdb6        /home            reiserfs    defaults         1   2
/dev/hda5        /fat-d           vfat        auto,ro,umask=000     1   0
/dev/hdb7        /fat-e           vfat        auto,umask=000        1   0
/dev/hda2        /winxp           ntfs        noauto,users,exec,ro,umask=0222     0 0

/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0


Q: Would changes in fstab require reboot to be applied?

Last edited by Wonderer; 10-30-2003 at 07:05 AM.
 
Old 10-30-2003, 07:19 AM   #12
littleking
Member
 
Registered: Jun 2003
Location: New Albany, OH
Posts: 190

Rep: Reputation: 30
your entire problem is that you do not have a directory called winxp

you need to do (as root):

mkdir /winxp

and for your fstab the entry would be


/dev/hda2 /winxp defaults 0 0
 
Old 10-30-2003, 07:41 AM   #13
Wonderer
Member
 
Registered: Oct 2003
Location: London, UK
Distribution: Slackware 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by littleking
your entire problem is that you do not have a directory called winxp
You are right. I have messed up somewhere.

It was already mentioned in other threads and here by robartes

I had tried it before but I guess at the time, due to the changes to the fstab, I did not set the dir correctly or the fstab were not correct/matching at the time of changes and it did not mount.

I later removed the directories created and started all over again and that is where I ended up.


I now created mkdir /winxp and mount /winxp worked fine. I changed the fstab to auto from noauto and rebooted and it is all there and mounted.

Thank you all for the help.

It was my own mistake that caused the problem.

Last edited by Wonderer; 10-30-2003 at 07:43 AM.
 
Old 10-30-2003, 07:48 AM   #14
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Code:
# ls -l /winxp
ls: /winxp: No such file or directory
So your mount point does not exist after all! What have you been doing when you said you did a 'mkdir /winxp'? As said before, the problem is exactly what the mount command says: your mount point does not exist. Create it, and then try again.

UPDATE: OK, you've got it working now. Good.

Last edited by robartes; 10-30-2003 at 07:50 AM.
 
  


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
problems mounting ntfs partition wisdom Linux - Software 3 11-11-2005 04:48 AM
NTFS mounting problems Gighen Linux - Newbie 2 01-05-2005 10:31 AM
problems mounting NTFS with webmin AVD_ZM Linux - Software 3 11-18-2004 12:12 PM
NTFS mounting problems thorax Linux - General 0 06-09-2004 08:57 AM
NTFS mounting problems! cnwillow Linux - Newbie 1 03-06-2004 09:18 AM

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

All times are GMT -5. The time now is 07:53 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