Results 1 to 6 of 6

Thread: Knoppix insists on modifying my /etc/fstab

  1. #1
    Senior Member registered user
    Join Date
    Jan 2005
    Location
    UK
    Posts
    282

    Knoppix insists on modifying my /etc/fstab

    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

  2. #2
    Senior Member registered user
    Join Date
    Dec 2004
    Location
    Dublin, OH
    Posts
    342

    Use KDE Control Center

    << 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

  3. #3
    Senior Member registered user
    Join Date
    Jul 2006
    Posts
    122
    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

  4. #4
    Senior Member registered user
    Join Date
    Jan 2005
    Location
    UK
    Posts
    282
    Quote Originally Posted by onemyndseye
    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?

  5. #5
    Senior Member registered user
    Join Date
    Apr 2005
    Posts
    159
    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...

  6. #6
    Senior Member registered user
    Join Date
    Jul 2006
    Posts
    122
    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)

    Code:
    # 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

Similar Threads

  1. Modifying hardware autodetection
    By noah in forum Hardware & Booting
    Replies: 1
    Last Post: 12-28-2005, 06:32 PM
  2. Knoppix 3.9:modifying the image on the start menu (img)
    By revaaron in forum Customising & Remastering
    Replies: 3
    Last Post: 08-26-2005, 01:01 PM
  3. Problem when moving New Fstab to the Old Fstab to fix Suse
    By cheetahman in forum General Support
    Replies: 19
    Last Post: 03-21-2005, 11:58 AM
  4. Modifying the hosts file?
    By BryanY in forum Networking
    Replies: 1
    Last Post: 08-31-2004, 10:51 PM
  5. Replies: 2
    Last Post: 05-13-2004, 01:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5

HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5" Enterprise HDD

$78.99



20 GB 12 10  8.4 6.4 IDE 3.5

20 GB 12 10 8.4 6.4 IDE 3.5" PATA WD Seagate IBM Quantum Samsung Maxtor HDD

$19.18



WD Ultrastar DC HC530 14TB SATA 6G 3.5

WD Ultrastar DC HC530 14TB SATA 6G 3.5" 7200RPM Enterprise HDD - WUH721414ALE604

$112.00



Lot of Ten Toshiba 500GB, 5400RPM, 2.5 inch (MQ01ABF050) HDD As Is Hard Drives picture

Lot of Ten Toshiba 500GB, 5400RPM, 2.5 inch (MQ01ABF050) HDD As Is Hard Drives

$20.00



HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5

HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601

$89.99



Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5

Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive

$29.99



HP 4TB 3.5

HP 4TB 3.5" 12Gb/s 7.2K SAS Hard Drive P/N: 793674-001 / 803634-001 / 695597-004

$14.87



8TB Seagate Archive SATA 3.5

8TB Seagate Archive SATA 3.5" HDD Hard Drive 100% Healthy 200MB/s ST8000AS0002

$36.54



WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN picture

WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN

$209.99



Seagate ST12000NM0538 Exos X14 12TB 3.5

Seagate ST12000NM0538 Exos X14 12TB 3.5" SATA 6Gbps 3.5" Enterprise Hard Drive

$46.05