Results 1 to 6 of 6

Thread: How is /etc/fstab created?

Hybrid View

  1. #1
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Finland
    Posts
    272

    How is /etc/fstab created?

    I would like to change hard disk lines from /mnt /to /media as in Kanotix.

    I have changed every /mnt in knoppix-autoconfig to media but still every hard disk line is under /mnt (cdroms and floppies are under /media and are OK).

    These hard disk lines in /etc/fstab begins as
    # Added by Knoppix

    Where can I change them? These are not in minirt.gz or in knoppix-autoconfig - where can I find them?


    -tapsa-

  2. #2
    Member registered user
    Join Date
    Mar 2005
    Posts
    87
    The script you are after is scanparitions located in /usr/sbin, it is called by rebuildfstab (/usr/sbin) which is called from knoppix-autoconfig.

    Line 45 of scanpartitions reads:
    Code:
    mountpoint="/mnt/${p##*/}"
    Modding to:
    Code:
    mountpoint="/media/${p##*/}"
    Should be a good start.

  3. #3
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Finland
    Posts
    272
    Thank you, that was it! Now my partitions are under /media as intended (just made a new DVD).

    The reason for me to change hard disk partitions under /media was because of opening Konqueror and media:/ shows my hard disk partitions, DVD and floppy.

    The best solution would be using /mnt for temporary mounting and /media for removable media as explained in FHS


    -tapsa-

  4. #4
    Member registered user
    Join Date
    Mar 2005
    Posts
    87
    Quote Originally Posted by tr
    Thank you, that was it! Now my partitions are under /media as intended (just made a new DVD).

    The reason for me to change hard disk partitions under /media was because of opening Konqueror and media:/ shows my hard disk partitions, DVD and floppy.

    The best solution would be using /mnt for temporary mounting and /media for removable media as explained in FHS


    -tapsa-
    Interesting document, I have seen various derivatives of the same concept, I would like to know what distributions are in fact "FHS" compliant and if not what unified standard, if any, do the follow.

    Also I wouldn't really consider my harddisk (removable media), but then again, each to their own.

  5. #5
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Finland
    Posts
    272
    Quote Originally Posted by firnsy
    Interesting document, I have seen various derivatives of the same concept, I would like to know what distributions are in fact "FHS" compliant and if not what unified standard, if any, do the follow.

    Also I wouldn't really consider my harddisk (removable media), but then again, each to their own.
    Well, the Linux version of Filesystem Hierarchy Standard is FSSTND and it is FHS compiant The sad thing is, that no main distro isn't

    I wondered why Kanotix changed mount point for hard disk partitions from /mnt under /media. Perhaps it was because Konqueror shows them under media:/.

    I would prefer mounting hard disk partitions (temporary mounting) under /mnt and mounting cdrecorder, DVD, floppy, usb stick etc. under /media but I don't know how to do that in Knoppix based live DVD.


    -tapsa-

  6. #6
    Member registered user
    Join Date
    Mar 2005
    Posts
    87
    Thanks for the link, I've now bookmarked it and am converting my remaster to it, as close as possible anyway.

Similar Threads

  1. Already created USB drive of Knoppix, but ...
    By kiddokit in forum Hardware & Booting
    Replies: 0
    Last Post: 07-16-2008, 06:52 PM
  2. Created CD image, now what?
    By tmedina in forum Hardware & Booting
    Replies: 5
    Last Post: 08-20-2005, 05:39 AM
  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. Hard disk icons not created on desktop nor fstab
    By ottod in forum Hardware & Booting
    Replies: 2
    Last Post: 08-23-2003, 02:04 AM
  5. How do dirs under /mnt get created?
    By lgriske in forum Customising & Remastering
    Replies: 1
    Last Post: 04-23-2003, 07:14 AM

Posting Permissions

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


Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



24x Micron MT40A512M16LY-062E IT:E 8Gb DDR4-3200 96-FBGA Memory IC picture

24x Micron MT40A512M16LY-062E IT:E 8Gb DDR4-3200 96-FBGA Memory IC

$349.99



Microsoft Office 2021 Pro Plus USB for 1PC Windows 10 & 11 picture

Microsoft Office 2021 Pro Plus USB for 1PC Windows 10 & 11

$62.55



1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot picture

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot

$202.50



USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot picture

USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot

$3.75



Samsung 32GB 2Rx4 DDR4 PC4-2133P M393A4K40BB0-CPB4Q ECC Server Memory Module picture

Samsung 32GB 2Rx4 DDR4 PC4-2133P M393A4K40BB0-CPB4Q ECC Server Memory Module

$150.00



Server Memory: Samsung 32GB 4DRx4 PC4-2133P ECC LRDIMM DDR4 M386A4G40DM0-CPB picture

Server Memory: Samsung 32GB 4DRx4 PC4-2133P ECC LRDIMM DDR4 M386A4G40DM0-CPB

$124.95



TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot picture

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot

$573.98



SK Hynix 32GB DDR4 2133MHz RDIMM Server Memory (HMA84GR7MFR4N-TF) - Preowned picture

SK Hynix 32GB DDR4 2133MHz RDIMM Server Memory (HMA84GR7MFR4N-TF) - Preowned

$149.00