LinuxQuestions.org
Visit Jeremy's Blog.
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 07-11-2010, 07:42 AM   #1
brinesharks
LQ Newbie
 
Registered: Jul 2010
Distribution: Kubuntu 10.04
Posts: 11

Rep: Reputation: 0
How to access fstab to automount in Kubuntu?


I searched this forum and a few others - all good advice but I can't work out what I'm doing wrong. Here's my logic so far...

Other users can't access my second SATA HDD until I have logged in and clicked on it (or saved or opened a file, etc) and it asks for a password. Once I enter a password then I can access it and so can other users.

I figure I need to auto mount the drive.

I can't seem to view the fstab. In a terminal it says 'permission denied'. I've tried changing to root but get 'Authentication failed'

Can any suggest what I am doing wrong?

P.S. I was sure under Kubuntu 7 or 9 you could right click on the icon and select 'automount'. Or was it MEPIS...?
 
Old 07-11-2010, 07:46 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
If you want to edit your fstab, run this in the terminal:
Code:
gksudo gedit /etc/fstab
 
Old 07-11-2010, 08:42 AM   #3
t1nm@n
Member
 
Registered: Aug 2009
Location: Trivandrum, Kerala, India.
Distribution: Slackware 14.2 x86_64
Posts: 96
Blog Entries: 3

Rep: Reputation: 25
Fstab it’s located in “/etc/fstab”, and it’s a plain text file which contains the information about our disks, and the how they should be mounted in the system.from a terminal type quoting brianL
Quote:
gksu gedit /etc/fstab
If you want to add a NTFS partition you must type this:

/dev/hda[X] /mnt/[folder_name] ntfs ro,user,auto,noexec,umask=0 0 0

Where:

* ro = Read Only
* user = Allow to mount the partition if you’re a limited user
* auto = This means that the partition will be mounted at the system bootup
* noexec = You’ll not be able to execute binaries (Highly recommended to Win partitions)
* “umask=0″ = Means everybody can do everything with the files on the disk [See more]
* 0(first) = The partition will not be backed up
* 0 (second) = Put 1 if you want to check that partition with fcsk at the bootup (No necessary to Win)

replace /dev/hda[X] with /dev/sda[X] or accordingly.

Last edited by t1nm@n; 07-11-2010 at 08:45 AM.
 
Old 07-11-2010, 09:49 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
I got it wrong ( ), for Kubuntu it would be:
Code:
kdesudo kwrite /etc/fstab
 
Old 07-12-2010, 08:11 AM   #5
brinesharks
LQ Newbie
 
Registered: Jul 2010
Distribution: Kubuntu 10.04
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks guys. Got this fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=529d884a-8cc2-4620-9e75-d9ebd442713e / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=e3bf748c-a297-43e4-b81c-293d298b53c8 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

I used Partition Manager to find the drive is /dev/sdb1 with mount point /media/storage500. Do I just add a line '/dev/sdb1 /media/storage500 rw,user,auto,noexec,umask=0 0 0'?

P.S. - didn't have kwrite installed and got a confusing error message. Substituted 'kate' instead and it worked fine.

Last edited by brinesharks; 07-12-2010 at 08:23 AM.
 
  


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
NFS automount using fstab priyarao Linux - Newbie 1 08-05-2008 11:13 AM
CentOS 5.2 Automount isos in fstab \other methods that work?automount iso Frankly3D Linux - General 6 07-13-2008 01:34 PM
Automount dmraid volume in fstab jaygee02 Linux - Software 3 06-13-2007 01:45 AM
fstab, automount usb flash HPB Linux - Newbie 10 05-31-2006 06:35 PM
automount vs fstab Walter Sobchek Linux - Networking 10 08-16-2004 10:23 AM


All times are GMT -5. The time now is 01:25 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