You are not logged in.

#1 2010-03-21 09:27:07

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

[SOLVED] whether to replace original file with .pacnew version or not

Hey i have two files, one original, and one a .pacnew file. The thing is, by looking at their content, i'm not sure if i should replace or merge and what to merge.

Following are the two files:

original:

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                      /dev/pts        devpts    defaults                0             0
none                      /dev/shm      tmpfs      defaults                0             0

#/dev/cdrom          /media/cd      auto    ro,user,noauto,unhide   0         0
#/dev/dvd             /media/dvd     auto    ro,user,noauto,unhide   0         0
#/dev/fd0              /media/fl        auto    user,noauto             0              0

/dev/sda1 /boot ext2 defaults 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext4 defaults 0 1
/dev/sda4 /home ext4 defaults 0 1

pacnew version:

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                    /dev/pts       devpts    defaults                 0           0
shm                       /dev/shm      tmpfs     nodev,nosuid         0           0

/dev/cdrom           /media/cd       auto    ro,user,noauto,unhide   0       0
/dev/dvd               /media/dvd    auto    ro,user,noauto,unhide   0       0
/dev/fd0               /media/fl       auto    user,noauto                   0       0

It seems obvious that I have to do a merge, but what exactly?

Last edited by trusktr (2010-03-21 19:49:56)


joe@trusktr.io - joe at true skater dot io.

Offline

#2 2010-03-21 17:46:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] whether to replace original file with .pacnew version or not

Have you diff'ed them to work out what is unique to each file? Once you have done that you need to think carefully about the entries that you want in your /etc/fstab...

That's all there is to it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2010-03-21 18:20:51

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] whether to replace original file with .pacnew version or not

hehe, yeah jason, i did that using the gnome gui "meld" to visualize it, but the thing is i just don't know what to have in the fstab file.

Here's what i think:

~ I definitely need the last 4 lines from the original file.
~ The cdrom, dvd, and fd0 entries are both the same except they are uncommented in the pacnew files. I think i should leave them uncommented.
~ The first 2 entries of both files don't match. I think is should replace the original lines with the pacnew lines.

How does that sound? Do you have any advice about those first two entries of each file? I noticed they both have the same directory (so you can't mount two things to the same directory), so that's why i figured to replace the original lines with the pacnew lines.

Hey, i just read this page: http://wiki.archlinux.org/index.php/Fstab

Very helpful! big_smile

Last edited by trusktr (2010-03-21 18:23:45)


joe@trusktr.io - joe at true skater dot io.

Offline

#4 2010-03-21 18:52:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] whether to replace original file with .pacnew version or not

That sounds reasonable...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2010-03-21 19:11:40

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] whether to replace original file with .pacnew version or not

Thanks for the input man! B)


joe@trusktr.io - joe at true skater dot io.

Offline

#6 2010-03-21 19:17:03

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: [SOLVED] whether to replace original file with .pacnew version or not

Next time, don't cross post.


.:[My Blog] || [My GitHub]:.

Offline

Board footer

Powered by FluxBB