Results 1 to 1 of 1

Thread: How can I mount /dev/sda7 partition on my CHOSEN mount point?

  1. #1

    How can I mount /dev/sda7 partition on my CHOSEN mount point?

    Hi folks

    Summmary:

    1. Is there a way to mount my spare partition /dev/sda7 on my chosen mount point
    /home/knoppix/videos, instead of on /media/sda7, which is what /etc/fstab
    specifies, ie

    /dev/sda7 /media/sda7 reiserfs noauto,users,exec 0 0

    2. I've got Knoppix live distro installed on hard disc, distro 7.0.2, kernel
    release 3.3.7.

    Thanks very much. John.


    Full Details:

    3. I'd like to mount my spare /dev/sda7 resiserfs partition on say
    /home/knoppix/videos, an empty directory that I've created.

    4. To do this, I was going to add the following entry in /etc/fstab:

    /dev/sda7 /home/knoppix/videos reiserfs auto,users,exec 0 0

    Note, I would use the "auto" option in column 4, to make the mount occur
    automatically at boot time.

    5. The present /etc/fstab (before adding anything to it) is:

    # DEFAULT BASE FSTAB, UNCONFIGURED
    proc /proc proc noauto 0 0
    sysfs /sys sysfs noauto 0 0
    /dev/sda6 / reiserfs relatime 0 0
    /dev/sda5 none swap defaults 0 0
    # Added by KNOPPIX
    noauto,users,exec 0 0
    # Added by KNOPPIX
    /dev/sda3 /media/sda3 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0
    0
    # Added by KNOPPIX
    /dev/sda7 /media/sda7 reiserfs noauto,users,exec 0 0
    # Added by KNOPPIX
    /dev/sr0 /media/sr0 auto noauto,users,exec 0 0
    # Added by KNOPPIX
    /dev/sda2 /media/sda2 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0
    0
    # Added by KNOPPIX
    /dev/sda1 /media/sda1 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0
    0

    6. As a test, I commented out the following lines in /etc/fstab:

    # Added by KNOPPIX
    /dev/sda7 /media/sda7 reiserfs noauto,users,exec 0 0

    But I discovered that the system ADDS THESE LINES AGAIN to /etc/fstab. So I'm
    concerned that if I add my new line, ie

    /dev/sda7 /home/knoppix/videos reiserfs auto,users,exec 0 0

    that even if I comment-out the following 2 lines, ie

    # Added by KNOPPIX
    /dev/sda7 /media/sda7 reiserfs noauto,users,exec 0 0

    that the system will re-add them. This would result in a CLASH between the 2
    lines as follows:

    /dev/sda7 /home/knoppix/videos reiserfs auto,users,exec 0 0
    /dev/sda7 /media/sda7 reiserfs noauto,users,exec 0 0

    (The reason I want to comment-out the line
    /dev/sda7 /media/sda7 reiserfs noauto,users,exec 0 0
    rather than remove it, is so that I can see what USED TO BE in /etc/fstab.)

    MAIN QUESTION:
    Is there a way to stop Knoppix re-adding the entry
    /dev/sda7 /media/sda7 reiserfs noauto,users,exec 0 0
    so that just my new entry
    /dev/sda7 /home/knoppix/videos reiserfs auto,users,exec 0 0
    is used.

    7. If don't alter /etc/fstab, I can MANUALLY mount /dev/sda7 on my mount point
    thus

    $ sudo mount -t reiserfs /dev/sda7 /home/knoppix/videos

    But this is not a sensible state of affairs because /etc/fstab still contains
    /dev/sda7 /media/sda7 reiserfs noauto,users,exec 0 0
    which is a contradiction.
    Last edited by winger9; 06-09-2014 at 04:45 PM. Reason: typo

Posting Permissions

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


IBM Power8 S822L Storage Server 8247-22L - With Ram, Some Cards, No HDD's picture

IBM Power8 S822L Storage Server 8247-22L - With Ram, Some Cards, No HDD's

$399.95



IBM SYSTEM X3500 M3 SERVER 7380AC1 2*XEON E5620 2.4GHz 8GB SEE NOTES picture

IBM SYSTEM X3500 M3 SERVER 7380AC1 2*XEON E5620 2.4GHz 8GB SEE NOTES

$33.21



IBM 8284-22A S822 Dual Power8 Cpu 512Gb (16x 32Gb) RAM  picture

IBM 8284-22A S822 Dual Power8 Cpu 512Gb (16x 32Gb) RAM

$795.00



IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W picture

IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W

$199.00



IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD picture

IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD

$399.99



IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU picture

IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU

$129.99



IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER picture

IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER

$249.99



IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server picture

IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server

$359.99



IBM 8203 E4A p520 Server 8203-E4A 4.2GHz 2-Core POWER6 32GB RAM / NO HDD USED picture

IBM 8203 E4A p520 Server 8203-E4A 4.2GHz 2-Core POWER6 32GB RAM / NO HDD USED

$119.99



IBM System X 3250 M5 Single Xeon Quad Core E3-1220 v3 @3.1GHz,8GB RAM,Linux SUSE picture

IBM System X 3250 M5 Single Xeon Quad Core E3-1220 v3 @3.1GHz,8GB RAM,Linux SUSE

$199.87