Mounting C: Drive


Recommended Posts

Hi everybody.

This seems to have stumped everyone in the chat, so lets see what we can think of here. I am trying to mount my C drive, so that I can access it through Ubuntu. I have it set up like this:

/dev/hda1 /mnt/Windows ntfs ro,user,unmask=0222 0 0

we have also tried hda2, hda3, hda4, and hda5; but they all return the following error:

mount: wrong fs type, bad option, bad superblock on /dev/hda1,

missing codepage or other error

In some cases useful info is found in syslog - try

dmesg | tail or so

I am almost 100% sure my other harddrive is ntfs.. because its running windows... I also know its hda, because linux is on hdb. Any ideas?

Matt

Link to post
Share on other sites

I think i see the problem, your options are a little askew

you have

ro,user,unmask=0222

try this instead

ro,users,umask=0222

if you use users with a s, it will allow regular users to mount it. It is also umask not unmask.

edit added later//

from man mount

            user  Allow  an  ordinary  user  to mount the file system.  The

                    name of the mounting user is written to mtab so  that  he

                    can  unmount  the file system again.  This option implies

                    the options noexec, nosuid, and nodev (unless  overridden

                    by  subsequent  options,  as  in  the  option  line

                    user,exec,dev,suid).

              users  Allow every user to mount and unmount  the  file  system.

                    This option implies the options noexec, nosuid, and nodev

                    (unless overridden  by  subsequent  options,  as  in  the

                    option line users,exec,dev,suid).

if I am understanding the man page using users will allow you to unmount it even if user root mounted it. where user will only allow the user who mounted it to unmount it. using user like you had it , should also have been ok. The only real problem I spotted was misspelling umask :-)

Edited by shanenin
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...