LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2005, 10:31 AM   #1
rado_london
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu5.04
Posts: 16

Rep: Reputation: 0
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!!!
 
Old 09-03-2005, 10:39 AM   #2
n3tw0rk
Member
 
Registered: Sep 2003
Location: Rawalpindi, Pakistan
Distribution: Slackware
Posts: 86

Rep: Reputation: 15
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.
 
Old 09-03-2005, 11:00 AM   #3
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 86
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
 
Old 09-03-2005, 11:57 AM   #4
petespin27
Member
 
Registered: Aug 2005
Location: Lansing, IL
Distribution: Opensuse 11
Posts: 140

Rep: Reputation: 15
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.
 
Old 09-03-2005, 01:49 PM   #5
rado_london
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu5.04
Posts: 16

Original Poster
Rep: Reputation: 0
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
 
Old 09-03-2005, 03:32 PM   #6
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
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.
 
Old 09-05-2005, 11:19 AM   #7
rado_london
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu5.04
Posts: 16

Original Poster
Rep: Reputation: 0
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?
 
Old 09-05-2005, 03:31 PM   #8
pruhnke
LQ Newbie
 
Registered: Aug 2005
Distribution: RH9, FC4
Posts: 13

Rep: Reputation: 0
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!
 
Old 09-05-2005, 03:38 PM   #9
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 86
Have you seen this?

http://ubuntuguide.org/#automountntfs
 
Old 09-06-2005, 04:49 AM   #10
rado_london
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu5.04
Posts: 16

Original Poster
Rep: Reputation: 0
yes i have seen it and now everything is working!Thank u all for the help
 
  


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
Help the newbie...:D Got some questions... desperate_penguin Linux - Software 8 11-22-2005 08:34 AM
3 newbie questions Bry Linux - Newbie 13 02-22-2005 06:09 AM
a few newbie questions prosh0t Linux - Software 3 07-30-2004 12:04 AM
Some newbie questions... koswo Linux - Newbie 7 02-04-2004 11:34 PM
Newbie Questions Bucolic Buffalo Linux - Newbie 4 01-08-2003 09:53 AM


All times are GMT -5. The time now is 09:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration