Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#1
I'm getting duplicating fstab entries every boot up. attached is an example. I rebooted a few times to get some duplicates. When I uncovered my problem I had about 30 duplicated entries.

Code: Select all

# Pluggable devices are handled by uDev, they are not in fstab
UUID=d5c6b1c0-cb09-42e7-9d33-3a63d4621210 / auto defaults,noatime 1 1
UUID=ffd4195e-d904-4629-8e65-69fe2a4399f4 swap swap sw,pri=1 0 0
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
UUID=80E6000CE600055E /media/sda1 ntfs-3g noauto,users,noexec,uid=1000,gid=users,dmask=002,fmask=113,relatime 0 0
UUID=B0EC53B9EC537914 /media/sda2 ntfs-3g noauto,users,noexec,uid=1000,gid=users,dmask=002,fmask=113,relatime 0 0
UUID=F6B1-BDBD /media/sda4 vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
UUID=80E6000CE600055E /media/sda1 ntfs-3g noauto,users,noexec,uid=1000,gid=users,dmask=002,fmask=113,relatime 0 0
UUID=B0EC53B9EC537914 /media/sda2 ntfs-3g noauto,users,noexec,uid=1000,gid=users,dmask=002,fmask=113,relatime 0 0
UUID=F6B1-BDBD /media/sda4 vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
UUID=d5c6b1c0-cb09-42e7-9d33-3a63d4621210 /media/sda5 ext4 noauto,users,exec,relatime 0 0
UUID=ffd4195e-d904-4629-8e65-69fe2a4399f4 swap swap sw,pri=1 0 0
UUID=80E6000CE600055E /media/sda1 ntfs-3g noauto,users,noexec,uid=1000,gid=users,dmask=002,fmask=113,relatime 0 0
UUID=B0EC53B9EC537914 /media/sda2 ntfs-3g noauto,users,noexec,uid=1000,gid=users,dmask=002,fmask=113,relatime 0 0
UUID=F6B1-BDBD /media/sda4 vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
UUID=d5c6b1c0-cb09-42e7-9d33-3a63d4621210 /media/sda5 ext4 noauto,users,exec,relatime 0 0
UUID=ffd4195e-d904-4629-8e65-69fe2a4399f4 swap swap sw,pri=1 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/sr0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
as far as I can tell, its just for my internal paritions. only one entry for the dvdrom.

thanks for any thoughts.

d.o.
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#2
if it helps, I installed from a persistent live usb.
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#3
rc.local

Code: Select all

#!/bin/sh -e
#
# rc.local.live
#
buildfstab -r
swapon -a 
sleep 1 && dev2uuid_fstab.sh 
sleep 1 
sed -i -e"/Dynamic/d" /etc/fstab
update-grub-antiX 
cp -f /etc/rc.local2 /etc/rc.local 
rm -f /etc/rc.local2
dpkg -r antix-installer 2>/dev/null

exit 0
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#4
Edit it to look like this.

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will"exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

exit 0
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#5
so apparently the rc.local.live gets copied to rc.local when installing from live persistence. quick edit as per anti's post and all is well. Thanks.!