LX0-103 · Question #141
You have run out of disk space on a partition. Which of the following would be an easy way to move data to a new partition without reconfiguring the path to the data in existing applications?
The correct answer is C. Use a symbolic link.. A symbolic link creates a filesystem pointer from the old path to the new partition location, allowing existing applications to continue using the original path without reconfiguration.
Question
You have run out of disk space on a partition. Which of the following would be an easy way to move data to a new partition without reconfiguring the path to the data in existing applications?
Options
- ARun ext2fs ACL.
- BUse a hard link.
- CUse a symbolic link.
- DUse the loopback device.
- ECreate a block device offset.
How the community answered
(42 responses)- A2% (1)
- C83% (35)
- D5% (2)
- E10% (4)
Why each option
A symbolic link creates a filesystem pointer from the old path to the new partition location, allowing existing applications to continue using the original path without reconfiguration.
ext2fs ACL manages access control permissions on ext2 filesystems and has no ability to redirect file paths or relocate data across partitions.
Hard links cannot span different partitions or filesystems because they reference inodes directly, and inodes are scoped to a single filesystem.
A symbolic link places a pointer at the original path that transparently redirects the operating system to the actual file or directory on the new partition. Applications resolve the symlink at runtime and access the data as if it were still at the old location, requiring no changes to application configuration. This is the standard Unix approach to transparent data relocation across filesystems.
The loopback device is used to mount a file as a block device for purposes like working with disk images; it does not redirect application paths to a new partition.
A block device offset is not a standard Linux mechanism for transparently redirecting application data paths across partitions.
Concept tested: Symbolic links for cross-partition path transparency
Source: https://man7.org/linux/man-pages/man7/symlink.7.html
Topics
Community Discussion
No community discussion yet for this question.