You are not logged in.
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
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.
Offline
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! ![]()
Last edited by trusktr (2010-03-21 18:23:45)
joe@trusktr.io - joe at true skater dot io.
Offline
That sounds reasonable...
Offline
Thanks for the input man! B)
joe@trusktr.io - joe at true skater dot io.
Offline
Next time, don't cross post.
Offline