LFCS · Question #741
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 allows moving data to a new partition while maintaining the original path, as applications will transparently follow the link to the new location.
Question
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
(49 responses)- A2% (1)
- B6% (3)
- C78% (38)
- D2% (1)
- E12% (6)
Why each option
A symbolic link allows moving data to a new partition while maintaining the original path, as applications will transparently follow the link to the new location.
`ext2fs ACL` refers to Access Control Lists for the ext2 filesystem, which manage permissions, not data relocation or path redirection.
A hard link creates an additional directory entry for an existing file, but it must reside on the same filesystem (partition) as the original file and cannot link to directories or files on different partitions.
A symbolic link (symlink) creates a special file that points to another file or directory. By creating a symlink from the old path to the new partition's location, applications configured to use the original path will automatically follow the link to the data on the new partition, making the move seamless.
The loopback device is used to mount a file as if it were a block device, typically for disk images, and is not a mechanism for transparently moving data to a new partition without reconfiguring paths.
Creating a block device offset refers to specifying a starting point within a block device, not a method for transparently redirecting application access to data moved to a different partition.
Concept tested: Linux symbolic links, data migration
Source: https://man7.org/linux/man-pages/man7/symlink.7.html
Topics
Community Discussion
No community discussion yet for this question.