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
  •  


Dell Poweredge R640 Server | 2x Silver 4114 | 128GB | H730P | 4x 600GB 10KRPM HD picture

Dell Poweredge R640 Server | 2x Silver 4114 | 128GB | H730P | 4x 600GB 10KRPM HD

$1798.00



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



Dell PowerEdge R730, 2 sinks, SystemBoard, 8 trays,H330,Idrac 8 exp, 2x750w Psu picture

Dell PowerEdge R730, 2 sinks, SystemBoard, 8 trays,H330,Idrac 8 exp, 2x750w Psu

$135.00



DELL PowerEdge R630 8SFF Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R630 8SFF Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45

$254.00



DELL POWEREDGE T430 SERVER W/ DUAL XEON E5-2609 CPU & 16GB MEMORY picture

DELL POWEREDGE T430 SERVER W/ DUAL XEON E5-2609 CPU & 16GB MEMORY

$329.00



Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x600Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x600Gb SAS, Proxmox

$360.00



CTO Dell PowerEdge R630 Server, 2x Xeon E5-2620V4, 64GB- 512GB RAM, 480GB SSDs picture

CTO Dell PowerEdge R630 Server, 2x Xeon E5-2620V4, 64GB- 512GB RAM, 480GB SSDs

$246.67



Dell R730XD 12LFF 2SFF 2x E5-2690v4 28C 128GB H730 12xTrays iDRAC ENT RJ-45 10G picture

Dell R730XD 12LFF 2SFF 2x E5-2690v4 28C 128GB H730 12xTrays iDRAC ENT RJ-45 10G

$670.00



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 128gb / H730 / iDracEnt picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 128gb / H730 / iDracEnt

$249.99