modifying /etc/fstab

I am trying to make changes to my fstab file, but am having no luck, have tried using “sudo gedit /etc/fstab”, but it tells me that it “can’t open display”…I must be having a “senior moment” as I can’t figure out what to type in the terminal to be able to edit the file? Please help this old man out

gnomesu gedit /etc/fstab

The fact that you didn’t know this, has me slightly worried that you might know even less about editing fstab. So make a backup of the contents before you edit it.

The fact that you didn’t know this…

maybe but some of us are “su”& “su -” fanatics and do not normally use sudo

but nitewalker41 you might WANT to read the man page for fstab


man fstab

On 06/03/2011 06:36 AM, caf4926 wrote:
>
> caf4926;2348297 Wrote:
>> gnomesu gedit /etc/fstab
>
> The fact that you didn’t know this, has me slightly worried that you
> might know even less about editing fstab. So make a backup of the
> contents before you edit it.
>
>
well, i think “sudo gedit” probably works in some distros still…so,
i’m not sure that is a positive sign of low experience…

however, it is always good to remind folks to backup…

for the OP: openSUSE is little different from the other distros in
several ways (you know, i guess we drifted off from Slack in pre-history
and pre-date all the variations Debian dreamed up)

anyway: if using gnome what you want is gnomesu, and if in kde,
kdesu…otherwise you get that display problem…

more: http://en.opensuse.org/SDB:Login_as_root


dd CAVEAT: http://is.gd/bpoMD
[NNTP via openSUSE 11.4 [2.6.37.6-0.5] + KDE 4.6.0 + Thunderbird 3.1.10]
Dual booting with Sluggish Loser7 on Acer Aspire One D255

Thanks to you all for your input, problem solved…I will say that it is appreciated and taken to heart…problem solved…I just had a lapse of memory [mine not computers] on the correct way to write proper language for admin access…thanks again…heck to get old…but better than alternative…

On 06/03/2011 05:06 PM, nitewalker41 wrote:
>
> …heck to get old…

what were we talking about anyway?


dd CAVEAT: http://is.gd/bpoMD
[NNTP via openSUSE 11.4 [2.6.37.6-0.5] + KDE 4.6.0 + Thunderbird 3.1.10]
Dual booting with Sluggish Loser7 on Acer Aspire One D255

On 2011-06-03 06:06, nitewalker41 wrote:
>
> I am trying to make changes to my fstab file, but am having no luck,
> have tried using “sudo gedit /etc/fstab”, but it tells me that it “can’t
> open display”…I must be having a “senior moment” as I can’t figure
> out what to type in the terminal to be able to edit the file? Please
> help this old man out

In the terminal?

su -

then:

mcedit /etc/fstab

or

joe /etc/fstab

or

jstar /etc/fstab

or

jpico /etc/fstab

or

jmacs /etc/fstab

or

emacs /etc/fstab

or

vi /etc/fstab

or

pico /etc/fstab

or

nano /etc/fstab

Enough? :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Carlos E. R. wrote:

> Enough? :slight_smile:

Still haven’t seen old faithful:

sudo vi /etc/fstab

I’ll use one of the others when available, but everyone should know the
fallback when init 3 is all that is available!


Will Honea

On 2011-06-04 05:09, Will Honea wrote:
> Carlos E. R. wrote:
>
>> Enough? :slight_smile:
>
> Still haven’t seen old faithful:
>
> sudo vi /etc/fstab

Yes, I did :slight_smile:

Number 7.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Carlos E. R. wrote:

> On 2011-06-04 05:09, Will Honea wrote:
>> Carlos E. R. wrote:
>>
>>> Enough? :slight_smile:
>>
>> Still haven’t seen old faithful:
>>
>> sudo vi /etc/fstab
>
> Yes, I did :slight_smile:
>
> Number 7.

You sure did. Time for new glasses :wink:


Will Honea

While we are talking about the fstab file, just found a useful mount command in regards to recent additions to your fstab file. Once your edits are complete, just open up a terminal session and perform the following command:

su -
password:
mount -a

OR

sudo /bin/mount -a

Old timers may know all about this, but the command seems to mount all entries in your fstab file, including something you just added and you do not need to reboot for this to take place. Also, after playing around with the fstab file I have determined that if you have more than one hard drive, that placing partitions for the same hard drive together in order at the top of the file and not having them in some random order seems to reduce the startup time of openSUSE.

I welcome your comments on this subject…

Thank You,