• Adding new swap to fstab

    From Dumas Walker@77:1/115 to All on Fri Sep 27 19:29:16 2019
    An empty fstab file, at that!

    I have an sbc that, as of right now, only mounts one partition. I would like to add a swap partition or file. Normally, I would set up said partition or file and then add it to the fstab.

    However, when I go to do so, the current fstab contains the following single line:

    # UNCONFIGURED FSTAB FOR BASE SYSTEM

    OK, so somehow this debian system knows to mount an SD card partition as '/' without being told to do so in the fstab. So, if I add a new entry for a swap partition/file, will it still know how to mount the root partition, or am I fixing to break something?!?

    Thanks!
    --- SBBSecho 3.07-Linux
    * Origin: capitolcityonline.net * Telnet/SSH:2022/HTTP (77:1/115)
  • From Netsurge@77:1/100 to Dumas Walker on Sat Sep 28 01:15:26 2019
    # UNCONFIGURED FSTAB FOR BASE SYSTEM

    OK, so somehow this debian system knows to mount an SD card partition as '/' without being told to do so in the fstab. So, if I add a new entry for a swap partition/file, will it still know how to mount the root partition, or am I fixing to break something?!?

    /etc/fstab in modern debian installs is just an additional mount config file. The actual mounting of / or any other mount point you might have is stored somewhere else. /etc/fstab is used for any additional mounts you might want
    to add like smb, nfs mounts and in your case, a swap partition. Go ahead and add whatever mounts you want to it, it will be fine and you won't break anything.

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness |11SciNet |03ftn hq |08% |07https://diskshop.ca/scinet

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Dumas Walker@77:1/115 to NETSURGE on Sat Sep 28 11:12:00 2019
    /etc/fstab in modern debian installs is just an additional mount config file. The actual mounting of / or any other mount point you might have is stored somewhere else. /etc/fstab is used for any additional mounts you might want to add like smb, nfs mounts and in your case, a swap partition. Go ahead and add whatever mounts you want to it, it will be fine and you won't break anything.

    That is something I was not aware of. I thought everything had to be in
    the fstab file in order to mount. I was able to get it to mount a non-swap partition by adding only it to the fstab file without breaking anything.

    ---
    * SLMR 2.1a * How come wrong numbers are never busy???
    * Origin: capitolcityonline.net * Telnet/SSH:2022/HTTP (77:1/115)
  • From Nelgin@77:1/119 to Dumas Walker on Wed Apr 8 23:58:40 2020
    Dumas wrote:
    /etc/fstab in modern debian installs is just an additional mount config file.
    The actual mounting of / or any other mount point you might have is stored >> somewhere else. /etc/fstab is used for any additional mounts you might want >> to add like smb, nfs mounts and in your case, a swap partition. Go ahead and >> add whatever mounts you want to it, it will be fine and you won't break
    anything.

    That is something I was not aware of. I thought everything had to be in
    the fstab file in order to mount. I was able to get it to mount a non-swap partition by adding only it to the fstab file without breaking anything.

    Maybe grub has a root= something in it? I can't remember without looking

    I have my swap as part of my raid 10 - even if I lose a disk, I won't lose what's in memory that could cause corruption.

    Just change to whatever, raw disk, swap file or whatever.


    /dev/mapper/vg00-lvswap swap swap defaults 0 0
    --- SBBSecho 3.10-Linux
    * Origin: End Of The Line BBS - endofthelinebbs.com (77:1/119)