[ale] Is this just a bad link?

Chris Fowler cfowler at outpostsentinel.com
Wed Jul 31 09:56:29 EDT 2019


> From: "Phil Turmel via Ale" <ale at ale.org>
> To: ale at ale.org
> Sent: Wednesday, July 31, 2019 8:05:00 AM
> Subject: Re: [ale] Is this just a bad link?

> Use readlink to find out where it is pointing.
Typically a badlink will show you with ls where it is pointing, but even readlink can't read this "file". This is on an ISO image. dmesg also provides no hints and no errors. 

chris at mechonis:/opt/devel/devel$ sudo umount /mnt/usb 
chris at mechonis:/opt/devel/devel$ sudo mount -o loop ~/s.iso /mnt/iso/ 
mount: /mnt/iso: WARNING: device write-protected, mounted read-only. 
chris at mechonis:/opt/devel/devel$ readlink -f /mnt/iso/applications 
chris at mechonis:/opt/devel/devel$ strace readlink -f /mnt/iso/applications 
execve("/bin/readlink", ["readlink", "-f", "/mnt/iso/applications"], 0x7fffc1afcb20 /* 56 vars */) = 0 
brk(NULL) = 0x556dd2539000 
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) 
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 
fstat(3, {st_mode=S_IFREG|0644, st_size=153289, ...}) = 0 
mmap(NULL, 153289, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc145b68000 
close(3) = 0 
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\34\2\0\0\0\0\0"..., 832) = 832 
fstat(3, {st_mode=S_IFREG|0755, st_size=2030544, ...}) = 0 
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc145b66000 
mmap(NULL, 4131552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fc145576000 
mprotect(0x7fc14575d000, 2097152, PROT_NONE) = 0 
mmap(0x7fc14595d000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7fc14595d000 
mmap(0x7fc145963000, 15072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc145963000 
close(3) = 0 
arch_prctl(ARCH_SET_FS, 0x7fc145b67540) = 0 
mprotect(0x7fc14595d000, 16384, PROT_READ) = 0 
mprotect(0x556dd0ef2000, 4096, PROT_READ) = 0 
mprotect(0x7fc145b8e000, 4096, PROT_READ) = 0 
munmap(0x7fc145b68000, 153289) = 0 
brk(NULL) = 0x556dd2539000 
brk(0x556dd255a000) = 0x556dd255a000 
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 
fstat(3, {st_mode=S_IFREG|0644, st_size=10281936, ...}) = 0 
mmap(NULL, 10281936, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc144ba7000 
close(3) = 0 
lstat("/mnt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 
lstat("/mnt/iso", {st_mode=S_IFDIR|0555, st_size=2048, ...}) = 0 
lstat("/mnt/iso/applications", {st_mode=S_IFLNK|0755, st_size=13, ...}) = 0 
readlink("/mnt/iso/applications", 0x556dd253b570, 14) = -1 EIO (Input/output error) 
close(1) = 0 
close(2) = 0 
exit_group(1) = ? 
+++ exited with 1 +++ 
chris at mechonis:/opt/devel/devel$ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.ale.org/pipermail/ale/attachments/20190731/b59996b1/attachment.html>


More information about the Ale mailing list