LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Once agian: Problems with mounting ntfs (https://www.linuxquestions.org/questions/slackware-14/once-agian-problems-with-mounting-ntfs-110033/)

Wonderer 10-29-2003 02:06 PM

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
:)

Tinkster 10-29-2003 02:14 PM

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

Wonderer 10-30-2003 03:05 AM

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?
:confused:

robartes 10-30-2003 03:12 AM

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.

Wonderer 10-30-2003 03:41 AM

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.

:(

robartes 10-30-2003 04:12 AM

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'?

Wonderer 10-30-2003 04:16 AM

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?

:confused:

robartes 10-30-2003 04:24 AM

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?

:confused:

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).

Wonderer 10-30-2003 06:20 AM

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..............|
-------------------------------------------------------

:confused:

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

robartes 10-30-2003 06:35 AM

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

Wonderer 10-30-2003 07:02 AM

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. :D



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

:cry: :scratch:

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

littleking 10-30-2003 07:19 AM

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

Wonderer 10-30-2003 07:41 AM

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 :o

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.
:newbie:

robartes 10-30-2003 07:48 AM

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. :)


All times are GMT -5. The time now is 08:56 AM.