Results 1 to 6 of 6

Thread: Knoppix insists on modifying my /etc/fstab

Hybrid View

  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
  •  


GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX picture

GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX

$59.99



GIGABYTE Z790 AORUS ELITE AX LGA 1700 Intel Z790 ATX Motherboard with DDR5 picture

GIGABYTE Z790 AORUS ELITE AX LGA 1700 Intel Z790 ATX Motherboard with DDR5

$119.99



Corsair RMe RM850e 850W 80 Plus Gold Fully Modular Low Noise Certified Refurb picture

Corsair RMe RM850e 850W 80 Plus Gold Fully Modular Low Noise Certified Refurb

$56.99



Gigabyte GA-B85M-D3H Motherboard picture

Gigabyte GA-B85M-D3H Motherboard

$54.99



GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard picture

GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard

$59.99



Asus Prime B660M-A AC D4 Motherboard Intel LGA 1700 14th 13th 12th Gen DDR4 picture

Asus Prime B660M-A AC D4 Motherboard Intel LGA 1700 14th 13th 12th Gen DDR4

$79.99



⁠Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)⁠ picture

⁠Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)⁠

$29.90



ASUS PRIME H410M-K LGA 1200 Intel 10th Gen H410 DDR4 USB3.2 Motherboard M-ATX picture

ASUS PRIME H410M-K LGA 1200 Intel 10th Gen H410 DDR4 USB3.2 Motherboard M-ATX

$59.99



Dell XPS 8940 Desktop Motherboard Intel H470 LGA1200 DDR4 K3CM7 KV3RP 427JK picture

Dell XPS 8940 Desktop Motherboard Intel H470 LGA1200 DDR4 K3CM7 KV3RP 427JK

$154.99



ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield picture

ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield

$84.99