LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-11-2013, 08:56 AM   #1
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Rep: Reputation: 31
edit fstab to mount all drives automatically at boot.


Hello,
I want to edit fstab to mount all drives at boot, so I would not have to enter the root password every time I start the computer.

my current fstab file contents:
Code:
/dev/disk/by-id/ata-Hitachi_HTS542512K9SA00_071119BB0200WBH5Z2YC-part9 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-Hitachi_HTS542512K9SA00_071119BB0200WBH5Z2YC-part10 /                    ext4       acl,user_xattr        1 1
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
I am using openSUSE 12.3 and please note that all drives to be mounted are NTFS

Thank you.
 
Old 06-11-2013, 09:39 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
You need to create a mount point for each partition and then put an entry for each in the fstab file. Do you mean you want to give a user or users rw access? If so, put user in the options.
 
Old 06-11-2013, 11:26 AM   #3
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Original Poster
Rep: Reputation: 31
I have already created the folders but can you tell me what to write in the options other than user?
 
Old 06-11-2013, 02:31 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
The opensuse link below gives some examples:

http://en.opensuse.org/SDB:NTFS

or this link:

http://swerdna.dyndns.org/susentfs.html
 
Old 06-11-2013, 06:37 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
This is the best tutorial on fstab that I have found. It should help:

http://www.tuxfiles.org/linuxhelp/fstab.html

I think it was written before UUID became common, but it still works.

Last edited by frankbell; 06-11-2013 at 06:39 PM.
 
Old 06-21-2013, 05:57 AM   #6
ajohn
Member
 
Registered: Jun 2011
Location: UK
Distribution: OpenSuse Leap
Posts: 122

Rep: Reputation: Disabled
You may be having problems due to NTFS. Opensuse aren't keen on enabling all aspects - format,read,write. A web search for NTFS format opensuse will probably clear that up as NTFS is built into the kernel.

Normally fstab is set up during install via custom partitioning if needed which allows you to set up partitions how ever you want but I don't think it offers ntfs as a formatting option. I use a usb docking station and found that I had to use a linux format on the disk. On the other hand if the disk had been pre formatted with NTFS is may have been ok.

I'd guess that you may want to use NTFS as you have windows kicking around maybe dual booting. When I did that sort of thing I found that installing a free windows linux file reading app the easiest way to share files. Long time ago but the application will still be around. Now if I run windows at all I run it under virtualbox etc on a pure linux system.

One other reason that you may be having to enter the root password after booting up is that you haven't added your own user account to the system. If you want to go straight into that without using a password that's up to you. Running as root for normal use really isn't a good idea.

John
-
 
  


Reply



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
Network drives won't mount automatically from FSTAB khinch Linux - Networking 2 01-14-2009 12:44 PM
How to mount SAMBA shares in /etc/fstab automatically? Micro420 Linux - General 7 06-16-2006 05:24 AM
edit fstab to mount a second harddrive chongluo Linux - Newbie 9 10-10-2004 05:59 PM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 07:45 AM
Automatically mounting drives with FSTAB caesius_01 Linux - Newbie 6 10-21-2003 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:28 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
Open Source Consulting | Domain Registration