You are not logged in.
Hi, here is :
^^>>> lsblk -f
├─sda1
├─sda2 ext4 1.0 47478bcc-34d3-4a74-ac8f-eb915eab809d 124G 28% /
├─sda3 vfat FAT32 641D-62D3
├─sda4
├─sda5 ntfs 762221EC2221B253
└─sda6 ntfs FE6CC2AC6CC25ED1
sdc
├─sdc1 ntfs Files 4D44D0656C877DCD
└─sdc2 swap 1 0a5105cd-79b0-4cc0-8fb3-ce8e555d766c I wanted to automount /dev/sdc1 with UUID of 4D44D0656C877DCD , so I followed fstab wiki page in arch wiki and added the line below to my fstab :
UUID=4D44D0656C877DCD /run/media/erfan/Files ntfs noatime 0 0I set the UUID, and the mountpoint i want to be mounted at, and the partition type, and also set noatime as explained in wiki, also set 0 0 to disable any check (I dont need any fscheck for this partition)
I smoothly rebooted and kaboom, system was not able to boot due to failure in mounting the new partition, and entered emergency mode (the mode that says press Ctrl + D , or enter), I was unable to boot into even cli mode, so i used live ubuntu usb i had and commented the line in my fstab
Now im able to boot but automount problem is still there
The question is, is anything wrong with the line i added ? I want that partition to be automounted at the point i specified, with no check and etc to be as fast as possible, cause its just a file partition nothing important
and FYI, i tried to provide you the error i was getting during the boot failure, but journal with -k just gives me information since my new boot which is useless for now, even --since 1 day ago is not effecting it
Also for more info :
^^>>> sudo blkid /dev/sdc1 22:40:36
/dev/sdc1: LABEL="Files" BLOCK_SIZE="512" UUID="4D44D0656C877DCD" TYPE="ntfs" PARTUUID="384278c3-01"And i was wondering if there is a less strict way to automount, other than fstab ? Suppose i take my laptop to other place and unplug the External HDD at /dev/sdc, then im gonna face boot error because HDD wont be present ! (also my swap is on /dev/sdc) , is there anyway to make mounting optional at this point ? to prevent boot failures
Last edited by erfanjoker (2020-12-25 23:36:15)
Offline
Please post the journal for the boot with the failed mount. See Fstab#External_devices to ignore mount failures.
Offline
Please post the journal for the boot with the failed mount. See Fstab#External_devices to ignore mount failures.
Hi, the problem is i cant access that, when i put -k, it just shows the log from current boot
Here is full log since yesterday which is a lot to read : https://mega.nz/file/SnoX2aIT#VjPoHySN8 … Sc8BXxUO1U
(Im informed that using mega.nz is bad idea since you have to download file
, but log size is 13MB and no pastebin allows log in this size, I might need to run my own pastebin server ...)
Offline
See the link I provided so the mount failing will not stop system booting. Then post the journal for the boot with just that mount failing.
Offline
Not sure if this helps or not:
https://wiki.archlinux.org/index.php/Udisks
Whenever I want to use an external USB drive I run udiskie from terminal. I vaguely remember there being a way to automate it, but I never bothered to figure it out.
Offline
See the link I provided so the mount failing will not stop system booting. Then post the journal for the boot with just that mount failing.
Thanks, I booted the system and here is complete journal : https://paste.centos.org/view/940ed0e7
But I cant see any trace of failure in this log, Not sure if 'no-fail' parameter let journal generate failure log, But im totally sure if i remove nofail option, I will not be able to boot again
Offline
Not sure if this helps or not:
https://wiki.archlinux.org/index.php/Udisks
Whenever I want to use an external USB drive I run udiskie from terminal. I vaguely remember there being a way to automate it, but I never bothered to figure it out.
Thanks, I will try this method
Offline
Dec 25 18:20:13 erfan ntfs-3g[553]: Mounted /dev/sdb1 (Read-Write, label "Files", NTFS 3.1)
Dec 25 18:20:13 erfan ntfs-3g[553]: Cmdline options: rw,noatime
Dec 25 18:20:13 erfan ntfs-3g[553]: Mount options: rw,allow_other,nonempty,noatime,fsname=/dev/sdb1,blkdev,blksize=4096
Dec 25 18:20:13 erfan ntfs-3g[553]: Ownership and permissions disabled, configuration type 7
Dec 25 18:20:13 erfan systemd[1]: Mounted /run/media/erfan/Files.It worked?
Offline
Dec 25 18:20:13 erfan ntfs-3g[553]: Mounted /dev/sdb1 (Read-Write, label "Files", NTFS 3.1) Dec 25 18:20:13 erfan ntfs-3g[553]: Cmdline options: rw,noatime Dec 25 18:20:13 erfan ntfs-3g[553]: Mount options: rw,allow_other,nonempty,noatime,fsname=/dev/sdb1,blkdev,blksize=4096 Dec 25 18:20:13 erfan ntfs-3g[553]: Ownership and permissions disabled, configuration type 7 Dec 25 18:20:13 erfan systemd[1]: Mounted /run/media/erfan/Files.It worked?
I didnt tested it actually, but if log says, so it worked, now i tried to open the partition and it opened faster than non-mounted times, so it works
But the question is why ? What was wrong with it that adding nofail fixed it ?
Offline
Did you also add the option rw?
Offline
Did you also add the option rw?
UUID=47478bcc-34d3-4a74-ac8f-eb915eab809d / ext4 rw,relatime 0 1
UUID=0a5105cd-79b0-4cc0-8fb3-ce8e555d766c none swap nofail,defaults 0 0
UUID=4D44D0656C877DCD /run/media/erfan/Files ntfs nofail,noatime 0 0Offline
If you remove the nofail option and add rw does the mount fail?
Offline
The ntfs driver is almost completely read only. You probably want ntfs-3g until the ntfs3 driver gets merged.
Offline