PDA

View Full Version : Knoppix insists on modifying my /etc/fstab



hal8000
01-14-2007, 11:51 PM
I have the option nofstab in my grub menu.lst
I believe this should stop knoppix modifying the filesystem table. I have 23 partitions and knoppix still insists on appending all partitions to the fstab and annoyingly kde displays 23 drive icons.

I have configured kde desktop not to display file icons, but they are still there.

My fstab is below, if I delete every line after added my knoppix, they still reappear on next boot. Thanks in advance for help with this.

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda17 / reiserfs defaults 0 1

proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbfs /proc/bus/usb usbfs devmode=0666 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
/dev/cdrom /media/cdrom iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/cdrom1 /media/cdrom1 iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/cdrom2 /media/cdrom2 iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/dvd /media/dvd iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/hdc /media/hdc auto users,noauto,exec,ro 0 0

/dev/hda1 /media/hda1 ntfs noauto,umask=000,uid=anc,gid=anc,exec 0 0
/dev/hda6 none swap defaults 0 0
/dev/hda23 /media/hda23 ext3 noauto,users,exec 0 0
/dev/hda2 /media/hda2 auto noauto,users,exec 0 0
/dev/hda3 /media/hda3 auto noauto,users,exec 0 0
/dev/hda5 /media/hda5 ext2 noauto,users,exec 0 0


# Added by KNOPPIX
/dev/hda7 /media/hda7 reiserfs noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda8 /media/hda8 reiserfs noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda9 /media/hda9 reiserfs noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda10 /media/hda10 reiserfs noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda11 /media/hda11 reiserfs noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda12 /media/hda12 reiserfs noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda13 /media/hda13 reiserfs noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda14 /media/hda14 reiserfs noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda15 /media/hda15 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda16 /media/hda16 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda18 /media/hda18 reiserfs noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda19 /media/hda19 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda20 /media/hda20 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda21 /media/hda21 reiserfs noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda22 /media/hda22 reiserfs noauto,users,exec 0 0

sakiZ
01-16-2007, 02:15 AM
<< annoyingly kde displays 23 drive icons.>

Click on Control Center > Behavior > Desktop > Device Icons

Select from the menu what icons you want showing up on your desktop.

SakiZ

onemyndseye
01-16-2007, 07:04 AM
hal:

Start knoppix by passing the "nofstab" argument to your bootloader (i.e. edit your grub menu.lst)... that should stop /etc/fstab from being rebuilt every time you boot

hal8000
01-16-2007, 10:17 AM
hal:

Start knoppix by passing the "nofstab" argument to your bootloader (i.e. edit your grub menu.lst)... that should stop /etc/fstab from being rebuilt every time you boot




"I have the option nofstab in my grub menu.lst
I believe this should stop knoppix modifying the filesystem table. I have 23 partitions and knoppix still insists on appending all partitions to the fstab and annoyingly kde displays 23 drive icons. "

Hi thanks for your reply, it is already on my boot loader (see above though my question is long).

This is my grub stanza for knoppix:

title Knoppix
kernel (hd0,16)/boot/vmlinuz root=/dev/hda17 vga=791 lang=uk nofstab nohwsetup nodhcp nomodregen splash
initrd (hd0,16)/boot/initrd.img

Do you think the order of options makes a difference?
Knoppix is on partition 17, I have not yet mounted a /home partition for knoppix


sakiZ - already tried this as well, still shows icons.

Its as though knoppix is still acting like the live cd and yet i installed as a beginner system??
Thanks for the replys, any more suggestions?

kirol
01-16-2007, 10:50 AM
Hardly elegant but since I have no idea why the "nofstab" cheatcode is not honored, you could rename "/usr/sbin/rebuildfstab" to rebuildfstab.bkp or something...

onemyndseye
01-17-2007, 12:01 PM
That would work..

but it may be best just to comment out this section in your knoppix-autoconfig (/etc/init.d/knoppix-autoconfig).... i am alittle leary of diabling the script all together since its also used by udev and the automounter (i think)



# Start creating /etc/fstab with HD partitions and USB SCSI devices now
if checkbootparam "nofstab"; then
echo " ${BLUE}Skipping /etc/fstab creation as requested on boot commandline.${NORMAL}"
else
echo -n "${BLUE}Scanning for Harddisk partitions and creating ${YELLOW}/etc/fstab${BLUE}... "
rebuildfstab -r -u knoppix -g knoppix >/dev/null 2>&1
if [ -e /var/run/rebuildfstab.pid ]; then
# Another instance of rebuildfstab, probably from udev, is still running, so just wait.
sleep 8
fi
echo "${GREEN}Done.${NORMAL}"
fi


Just put a # in front of every line shown above.


Im also interested in the output of the " cat /proc/cmdline " command.... it may offer a clue to why this is happening :)

Thanks,
-Justin
One Mynds Eye