[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fdw Fstab Questions



> Here is my durectiry stucture:
>
> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
> sda 8:0 0 465.8G 0 disk
> ??sda1 8:1 0 457.9G 0 part /
> ??sda2 8:2 0 1K 0 part
> ??sda5 8:5 0 7.9G 0 part [SWAP]
> sdb 8:16 0 1.8T 0 disk
> ??sdb1 8:17 0 1.8T 0 part /media/comp/900b5f0b-4f3d-4a64-8c91-29aee4c6fd07
> ??sdb2 8:18 0 1K 0 part
> ??sdb5 8:21 0 7.9G 0 part
> sdc 8:32 0 465.8G 0 disk
> ??sdc1 8:33 0 465.8G 0 part
> /media/comp/1f363165-2c59-4236-850d-36d1e807099e
> sr0 11:0 1 1024M 0 rom
>
> Here is what I have the installed fstab:
>
> # /etc/fstab: static file system information.
> #
> # Use 'blkid' to print the universally unique identifier for a
> # device; this may be used with UUID= as a more robust way to name devices
> # that works even if disks are added and removed. See fstab(5).
> #
> # <file system> <mount point> <type> <options> <dump> <pass>
> # / was on /dev/sda1 during installation
> UUID=4dc278b7-1792-4e89-b67e-a517fce97d19 / ext4 errors=remount-ro 0 1
> # swap was on /dev/sda5 during installation
> UUID=acfb9d26-69c6-4489-88fc-12f5c50bda97 none swap sw 0 0
> /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
>
> Here is what I'm proposing:
>
> /dev/sda1 / ext4 defaults 0 1	        <==========
> /dev/sda5 none swap sw 0 0		<==========
> /dev/sdb1 /hdb1 ext4 defaults 0 0	<==========
> /dev/sdc1 /hdc1 ext4 defaults 0 0	<==========

It's always recommended to use UUID instead of /dev/sdxN.

First line I think should be:

/dev/sda1 / ext4 errors=remount-ro 0 1

And the last two:

/dev/sdb1 /hdb1 ext4 defaults 0 2
/dev/sdc1 /hdc1 ext4 defaults 0 2

> There are two key questions:
>
> 1. Will the boot proceed to completion?

If you use UUID it should (in fact, the first line, the one for the
root partition, should stay the same).

Check the mount points for sdb1 and sdc1. Test if you can mount the
partitions there before modifying fstab and reboot.

> 2. Will users have read/write permission?

The 'defaults' option implies that.

"defaults - default mount settings (equivalent to
rw,suid,dev,exec,auto,nouser,async)."

For a better understanding of this you should read [1] and maybe [2].

> Finally, if the answer(s), to either or both, is/are 'no' - what should
> the fstab entries be in order to allow users to Read/Write?

I think it's appropriate to insist in the use of UUID.

> Thanks in advance.

You're welcome. Hope everything works fine.

[1] https://wiki.debian.org/fstab
[2] https://en.wikipedia.org/wiki/Fstab


Reply to: