LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Afew questions regaurding mounting (https://www.linuxquestions.org/questions/linux-newbie-8/afew-questions-regaurding-mounting-518709/)

mrkawphy 01-12-2007 12:44 PM

Afew questions regaurding mounting
 
Good morning,

I have some questions about mounting my ntfs drive and a few other related questions about premissions related to the mounted drive.

I am using ntfs-3g to mount and unmount my /dev/sdb5 ntfs 160gig harddrive, I am able to mount the drive no problem after following the basic steps.

mkdir /mnt/ntfs (or whatever you want)

ntfs-3g /dev/sdb5 /mnt/ntfs

I am able to access and modify the drive no problem.

However when I reboot I get abunch of unable to unmount or umount the drive and other stuff that says it is not even mounted. Also saying something about block drives are not allowed.
(if someone could help me locate where I can find log files of startup / shut down I could post exact errors. I was unsuccessful in locating this information in the /var/ folder or using the log file program in gnome.)

I would also like to have this mounted at startup so I added the following line to my fstab

Code:

[Screw32@localhost /]$ cat /etc/fstab
/dev/VolGroup00/LogVol00 /                      ext3    defaults        1 1
LABEL=/boot            /boot                  ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                  /dev/shm                tmpfs  defaults        0 0
proc                    /proc                  proc    defaults        0 0
sysfs                  /sys                    sysfs  defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/dev/sdb5            /mnt/ntfs                ntfs-3g  defaults        0 0

That was taken from the website directly @ NTFS-3G Usage on offical website

I receive additional errors when I start up stating the drive cannot be mounted. Furthermore when I actually log into gnome I verify this by seeing nothing available in the /mnt/ntfs folder itself.

I am a little confused as to what the problem is as I am able to manually mount and umount the drive from the CLI.

The other semi-related question I have is about permissions regarding things in the /dev/ folder. As I mentioned above my NTFS drive is listed as /dev/sdb5/ and I can mount this. Now I am using this drive in VMware as a physical drive but to load it I need to chmod /dev/sdb5 to give my user permissions as it is only owned by root. BUt when I reboot the permissions also reset. Is there not a way to force the permissions to remain set to a customized setup or will I always have to chmod the device everytime I restart (or make a script of course)

And my final last newbish question of the day is about SELinux. I am not 100% positive but I wounder if SELinux is giving me a hard time about some of this stuff. (NTFS-3g states there was a bug with SELinux and automounting but I have the most update version of selinux so I don't think I should be affected) Would it be a terrible thing to disable SElinux since this is not a server or any type of production box but just my personal PC for goofing around on and such?

Thank you for your time!

Dan

Simon Bridge 01-13-2007 05:01 AM

Quote:

I could post exact errors. I was unsuccessful in locating this information in the /var/ folder or using the log file program in gnome.
The logfile you want is called "syslog". The most recent is accessed from commandline by "dmesg". Bear in mind: the syslog won't always show you the exact same message that appeared on the screen. You'll have to search through it for messages about the partition... i.e. "dmesg | grep sda5" and "dmesg | grep ntfs".

Quote:

will I always have to chmod the device everytime I restart
You can add the chmod command to /etc/rc.local

Quote:

Would it be a terrible thing to disable SElinux?
The ntfs-3g/SELinux issue is fixed (for fedora) in selinux-policy-2.4.6-23 ... check. If the automounting problem goes away when SELinux is in permissive mode, then this is your problem. If it doesn't, you can always reinstate SELinux.

Quote:

I thought having my own blog with notes about each process I complete
This is a good idea. Also look for other folks blogs. eg. www.mjmwired.net


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