LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   3 newbie questions (https://www.linuxquestions.org/questions/linux-newbie-8/3-newbie-questions-359821/)

rado_london 09-03-2005 09:31 AM

3 newbie questions
 
Hi,im using ubuntu 5.04 with xfce and i have have 3 questions:

1. I have USB flash drive and when i am with GNOME it just appear on the desktop,but when im with xfce+nautilus it doesnt appear.Do u know how to make xfce to mount it automaticly?

2. I had run nautilus under xfce and saved the session,but now i want to kill it.Could u tell me the command please?

3.I would like to see my ntfs partition uder ubuntu.I heard something aboout /etc/fstab but i dont know what exactly to put in it.would u tell me please?

Thanks a lot!!!

n3tw0rk 09-03-2005 09:39 AM

1. I don't know how canone automatically mount a USB while in xfce.

2. pkill nautilus

3. Find the device name using fdisk

fdisk /dev/hda

enter 'p' (without quotes) and press enter. That would print the partition table. Once you know the name of your NTFS partition then you can make an entry in the /etc/fstab. Before that you need to create a mount point where your partition will be mounted. So,

mkdir /mnt/ntfs

Say, your NTFS partition is /dev/hda1 then you can should enter the following in the /etc/fstab

/dev/hda1 /mnt/ntfs ntfs defaults 1 0

Save the file and exit.

Then do,

mount -a

and your NTFS partition should be mounted. Note that you must have NTFS filesystem support in the kernel otherwise you won't be able to mount an NTFS partition.

aysiu 09-03-2005 10:00 AM

Re: 3 newbie questions
 
Quote:

Originally posted by rado_london
1. I have USB flash drive and when i am with GNOME it just appear on the desktop,but when im with xfce+nautilus it doesnt appear.Do u know how to make xfce to mount it automaticly?
There's no native support for hotplugging in XFCE. One way around it is to run the command gnome-volume-manager while in XFCE and then save your session--however, it doesn't allow for clean unmounting.

Quote:

2. I had run nautilus under xfce and saved the session,but now i want to kill it.Could u tell me the command please?
Even though, theoretically, you're supposed to just "kill" Nautilus, I've found it more effective to run the command xfdesktop.

Quote:

3.I would like to see my ntfs partition uder ubuntu.I heard something aboout /etc/fstab but i dont know what exactly to put in it.would u tell me please?
http://ubuntuguide.org/#automountntfs

petespin27 09-03-2005 10:57 AM

I use xfce as my wm/desktop. Here is how I got my usb stick working:

1. (as root, so you'll have to use sudo) mkdir /mnt/key.

2. I added the following line to my /etc/fstab file. Again, you'll have to do as root, (sudo gedit /etc/fstab)
/dev/sda1 /mnt/key vfat noauto,user,rw 0 0

3. Then, in xffm, under the fstab widget, you'll see /mnt/key, plug in your usb stick, right click on /mnt/key and select "mount". Your files will then show up.
After you're done, you'll have to right click on /mnt/key and select unmount. Anytime you use it in the future, simply repeat this last step.


This is the manual way to do things, though. I prefer to manually mount and unmount my media, so it works for me. You might want to check out ivman . For something that will work automatically. I don't know if it is in the ubuntu repositories, but it is worth a look.

rado_london 09-03-2005 12:49 PM

Thanks a lot!Ive done everything u told me.My usb flash memory works i killed nautilus.Ive got one more problem with the ntfs partition.I have /mnt/ntfs and i can see all my win files but onluy when i am root.i tried to change the permissions but it tells me that this is read only file and is inpossible.have u got any ideas?
Thanks again

koodoo 09-03-2005 02:32 PM

Quote:

Originally posted by rado_london
I have /mnt/ntfs and i can see all my win files but onluy when i am root.i tried to change the permissions but it tells me that this is read only file and is inpossible.have u got any ideas?
Thanks again

The partition has been mounted according to the entry you made in your fstab file. In this case only root has read permissions.

To enble read permissions for all users edit line that corresponds to the ntfs partition and make it look like this. Suppose your ntfs partition is /dev/hda1 , the corresponding entry in fstab would be :

Code:


/dev/hda1                  /mnt/ntfs                  ntfs            defaults, umask=333        0  0

This would give all users read (and only read) permissions on that partition.

Writing to ntfs partitions still lacks some support. There are drivers available that can do this but it'll take sometime untill it becomes more common.

Here, take a look at this . It has almost any information you would want concerning linux + ntfs.

Hope this helps.

rado_london 09-05-2005 10:19 AM

i wrote everything in /etc/fstab and my permissions are still denied.I ust dont know.Are there some other way s to mount it?

pruhnke 09-05-2005 02:31 PM

Here is a copy of my line in /etc/fstab to automount my Windows partiton...

I am using FAT32, i started with NTFS in RH9, but I moved it to FAT32 because I hate not being able to write to it both ways when I moved to FC4...

/dev/hda[your partiton] /mnt/[your directory] auto uid=[your UID],umask=0222 0 0

This is how mine mounts using this entry in fstab:

# ls -lt
dr-xr-xr-x 10 patrick root 4096 Dec 31 1969 data

It is giving me read and execute permissions to that directory which is all that I am aware that can be done with NTFS...

I also had to add NTFS support to the kernel to do so, i got that from here:

http://linux-ntfs.sourceforge.net/

I have yet to adjust the permissions to write for FAT, but thanks for the reminder!

aysiu 09-05-2005 02:38 PM

Have you seen this?

http://ubuntuguide.org/#automountntfs

rado_london 09-06-2005 03:49 AM

yes i have seen it and now everything is working!Thank u all for the help


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