[Solved] /etc/fstab items reqd for access permission?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[Solved] /etc/fstab items reqd for access permission?
Having some fun and games trying to setup a backup using Deja-dup with an external hard drive formatted in ext4.
When Deja-dup high lights a backup is required, I plug in the external hard drive, that mount auto and after a delay I receive the following message:
Permission denied when trying to create ‘/duplicity-full.20181028T064559Z.vol1.difftar.gz’. So still a missing hole or two!
Next time I try to boot my laptop I get Welcome to emergency mode! etc, etc
I then discover (# nano /etc/fstab) the system has generated a line in /etc/fstab consisting of the ext HDD UUID, without the UUDI= plus the /mount point details!
I've added UUDI= and commented that line out, saved /etc/fstab and rebooted via systemctl reboot successfully.
So what are the missing items for the ext HDD line in /etc/fstab? <type> ext4, <options> ??, <dump> ?? and <pass> ??
How clever is Linux, to generate some info within /etc/fstab for the ext HDD and then shoot into "Welcome to emergency mode!" to complete the task.
When Deja-dup high lights a backup is required, I plug in the external hard drive, that mount auto and after a delay I receive the following message:
Permission denied when trying to create ‘/duplicity-full.20181028T064559Z.vol1.difftar.gz’. So still a missing hole or two!
Next time I try to boot my laptop I get Welcome to emergency mode! etc, etc
I then discover (# nano /etc/fstab) the system has generated a line in /etc/fstab consisting of the ext HDD UUID, without the UUDI= plus the /mount point details!
I've added UUDI= and commented that line out, saved /etc/fstab and rebooted via systemctl reboot successfully.
So what are the missing items for the ext HDD line in /etc/fstab? <type> ext4, <options> ??, <dump> ?? and <pass> ??
How clever is Linux, to generate some info within /etc/fstab for the ext HDD and then shoot into "Welcome to emergency mode!" to complete the task.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: /etc/fstab items reqd for access permission?
Hi jbh911,
See this post
If you have already tried to edit fstab manually, remove those first.
NTFS Partition does not activate even with automount, until clicking drive in file manager - Linux Mint Forums
viewtopic.php?f=208&t=278971&hilit=disks
Hope this helps ...
See this post
If you have already tried to edit fstab manually, remove those first.
NTFS Partition does not activate even with automount, until clicking drive in file manager - Linux Mint Forums
viewtopic.php?f=208&t=278971&hilit=disks
Hope this helps ...
Phd21: Mint 20 Cinnamon & KDE Neon 64-bit Awesome OS's, Dell Inspiron I5 7000 (7573, quad core i5-8250U ) 2 in 1 touch screen
Re: /etc/fstab items reqd for access permission?
Thanks pdf21 for the intro to this aspect of Disks abilities.
However, I haven't been successful in gaining access to the ext HDD, in fact am getting deeper into a hole.
When I respond to Deja-dup's request for the ext HDD to be connected, on doing so I get the message:
Device /dev/sdb1 is already mounted at '/mnt/wwm-0x500 etc etc.
On top of that I can't access /etc/fstab. I get nano opening up a page titled New Buffer with the message:
File /etc is being edited (by root with nano 2.5.3, PID 14060); continue?
Laptop booted OK this morning, so still in front!
Appears I need to clean out a few file, reformat the ext HDD and start again!
However, I haven't been successful in gaining access to the ext HDD, in fact am getting deeper into a hole.
When I respond to Deja-dup's request for the ext HDD to be connected, on doing so I get the message:
Device /dev/sdb1 is already mounted at '/mnt/wwm-0x500 etc etc.
On top of that I can't access /etc/fstab. I get nano opening up a page titled New Buffer with the message:
File /etc is being edited (by root with nano 2.5.3, PID 14060); continue?
Laptop booted OK this morning, so still in front!
Appears I need to clean out a few file, reformat the ext HDD and start again!
Re: /etc/fstab items reqd for access permission?
Hi jbh911,
You can try removing any entries in the "fstab" file except the first 2 which are the boot drive and the Linux swap drive, save the file and exit the text editor, then rebooting and using the "disks" application like I mentioned.
Can you please post the current results of:
To edit the fstab file manually using the "gedit" editor.
Hope this helps ...
You can try removing any entries in the "fstab" file except the first 2 which are the boot drive and the Linux swap drive, save the file and exit the text editor, then rebooting and using the "disks" application like I mentioned.
Can you please post the current results of:
Code: Select all
cat /etc/fstab
Code: Select all
sudo apt install gedit
Code: Select all
sudo gedit /etc/fstab
Phd21: Mint 20 Cinnamon & KDE Neon 64-bit Awesome OS's, Dell Inspiron I5 7000 (7573, quad core i5-8250U ) 2 in 1 touch screen
Re: /etc/fstab items reqd for access permission?
PHD21 - as requested current output of:
~ $ cat /etc/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/sda8 during installation
UUID=9e86881e-3d5c-45c5-aaa6-1b837b27fd46 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=AA16-6962 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda9 during installation
UUID=2b90a06f-dfdc-4a2e-a0ed-3aa9b293f666 /home ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=06d6a309-9ff7-4372-884a-65a79befb54b none swap sw 0 0
# The following info is via Disk app!
/dev/disk/by-id/wwn-0x50014ee2ad5f496d-part1 /mnt/wwn-0x50014ee2ad5f496d-part1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
~ $ cat /etc/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/sda8 during installation
UUID=9e86881e-3d5c-45c5-aaa6-1b837b27fd46 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=AA16-6962 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda9 during installation
UUID=2b90a06f-dfdc-4a2e-a0ed-3aa9b293f666 /home ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=06d6a309-9ff7-4372-884a-65a79befb54b none swap sw 0 0
# The following info is via Disk app!
/dev/disk/by-id/wwn-0x50014ee2ad5f496d-part1 /mnt/wwn-0x50014ee2ad5f496d-part1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
Re: /etc/fstab items reqd for access permission?
Hi jbh911
Okay, it would help to have some more information. How many operating systems are on the boot drive and why are there so many partitions?
You can remove the last entry, save the changes, reboot, and retry the "Disks" application. Tip: if you label the drive's partition with something easy to identify it that helps, and you can use that partition label in "disks" app and then everything can refer to that label like file managers, applications, etc... rather than the UUID number.
FYI: These are my results from "cat /etc/fstab" booting from my second SSDrive.
cat /etc/fstab
Okay, it would help to have some more information. How many operating systems are on the boot drive and why are there so many partitions?
Code: Select all
sudo lsblk -a
Code: Select all
sudo lsblk -f
Code: Select all
sudo fdisk -l
You can remove the last entry, save the changes, reboot, and retry the "Disks" application. Tip: if you label the drive's partition with something easy to identify it that helps, and you can use that partition label in "disks" app and then everything can refer to that label like file managers, applications, etc... rather than the UUID number.
Hope this helps ...# The following info is via Disk app!
/dev/disk/by-id/wwn-0x50014ee2ad5f496d-part1 /mnt/wwn-0x50014ee2ad5f496d-part1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
FYI: These are my results from "cat /etc/fstab" booting from my second SSDrive.
cat /etc/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/sdb1 during installation
UUID=50f2bfd6-999e-40ce-a07b-26cfc2d94bd8 / ext4 noatime,errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=e5c961dd-04d1-46a3-a31b-8c6aba142d5f none swap sw 0 0
# swap was on /dev/sdb4 during installation
UUID=6f65174f-0133-4c80-8f1a-5207d3c4244b none swap sw 0 0
#
# These are partitions I added from the "disks" application that work perfectly well
#
LABEL=lm18kde /mnt/lm18kde auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=ssdata480 /mnt/ssdata480 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=ssdata2 /mnt/ssdata2 auto nosuid,nodev,nofail,x-gvfs-show 0 0
Phd21: Mint 20 Cinnamon & KDE Neon 64-bit Awesome OS's, Dell Inspiron I5 7000 (7573, quad core i5-8250U ) 2 in 1 touch screen
Re: /etc/fstab items reqd for access permission?
Hi PHD21
I have Linux Mint 18.3 MATE 64 dual booted with Windows 8, hence the 9 partitions.
As requested: I've removed the Windows info from each.
~ $ sudo lsblk -a
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop1 7:1 0 0 loop
sdb 8:16 0 298.1G 0 disk
└─sdb1 8:17 0 298.1G 0 part /mnt/wwn-0x50014ee2ad5f496d-part1
~ $ sudo lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sdb
└─sdb1 ext4 5154d6e1-d529-400d-8dd9-e98fee6ea948 /mnt/wwn-0x50014ee2ad
sr0
$ sudo fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: DB263E01-CFE2-4B35-83AB-8F906D3CE5B5
Disk /dev/sdb: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00056976
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 625141759 625139712 298.1G 83 Linux
I have Linux Mint 18.3 MATE 64 dual booted with Windows 8, hence the 9 partitions.
As requested: I've removed the Windows info from each.
~ $ sudo lsblk -a
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop1 7:1 0 0 loop
sdb 8:16 0 298.1G 0 disk
└─sdb1 8:17 0 298.1G 0 part /mnt/wwn-0x50014ee2ad5f496d-part1
~ $ sudo lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sdb
└─sdb1 ext4 5154d6e1-d529-400d-8dd9-e98fee6ea948 /mnt/wwn-0x50014ee2ad
sr0
$ sudo fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: DB263E01-CFE2-4B35-83AB-8F906D3CE5B5
Disk /dev/sdb: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00056976
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 625141759 625139712 298.1G 83 Linux
Re: /etc/fstab items reqd for access permission?
Hi jbh911,
You can add (or re-add) the MS Windows partitions as well as any other partitions using the "disks" application for any partition that you want auto-mounted (always available).
I still do not understand why there are 9 partitions, how many are for MS Windows?jbh911 wrote:I have Linux Mint 18.3 MATE 64 dual booted with Windows 8, hence the 9 partitions.
I only said to remove the last entry in "fstab" not anything else.jbh911 wrote:As requested: I've removed the Windows info from each.
You can add (or re-add) the MS Windows partitions as well as any other partitions using the "disks" application for any partition that you want auto-mounted (always available).
Phd21: Mint 20 Cinnamon & KDE Neon 64-bit Awesome OS's, Dell Inspiron I5 7000 (7573, quad core i5-8250U ) 2 in 1 touch screen
Re: /etc/fstab items reqd for access permission?
Hi phd21
Sorry to worry you, it's only the Windows data in the $ sudo lsblk -a, $ sudo lsblk -f and $ sudo fdisk -l outputs that I deleted - just to keep the size down.
Of the 9 partitions, 6 are Windows:
sda1 Basic data ntfs
sda2 EFI system fat32 /boot/efi
sda3 Microsoft reserved unknown
sda4 Basic data fat32 PRC_RP
sda5 Basic data ntfs Boot
sda6 Basic data ntfs Recovery
The remaining 3 are Linux, /, /home & swap
Sorry to worry you, it's only the Windows data in the $ sudo lsblk -a, $ sudo lsblk -f and $ sudo fdisk -l outputs that I deleted - just to keep the size down.
Of the 9 partitions, 6 are Windows:
sda1 Basic data ntfs
sda2 EFI system fat32 /boot/efi
sda3 Microsoft reserved unknown
sda4 Basic data fat32 PRC_RP
sda5 Basic data ntfs Boot
sda6 Basic data ntfs Recovery
The remaining 3 are Linux, /, /home & swap
Re: /etc/fstab items reqd for access permission?
HI jbh911,
Okay. So is your system working now to automatically mount your partitions?
Okay. So is your system working now to automatically mount your partitions?
Phd21: Mint 20 Cinnamon & KDE Neon 64-bit Awesome OS's, Dell Inspiron I5 7000 (7573, quad core i5-8250U ) 2 in 1 touch screen
Re: /etc/fstab items reqd for access permission?
Hi phd21
Well no. Have sorted out a few issues and have now got The ext HDD auto booting with a Laptop_BU folder. However I now have the following issue -
Backup Failed Permission denied when trying to create '/duplicity-full.2018102T062448Z.vol1.difftar.gz
I'm struggling with cdmod permission expressions try to sort this out!
Ownership sorted using chown In Terminal see chown --help for details
Well no. Have sorted out a few issues and have now got The ext HDD auto booting with a Laptop_BU folder. However I now have the following issue -
Backup Failed Permission denied when trying to create '/duplicity-full.2018102T062448Z.vol1.difftar.gz
I'm struggling with cdmod permission expressions try to sort this out!
Ownership sorted using chown In Terminal see chown --help for details