-
Junior Member
registered user
2. Yes it's save to move a file tied to a local loopback while the system is live
Originally Posted by
kl522
Actually you did not answer my question (2) directly, but from the flow of the sentences, it appears to me you are overwritting knoppix-data while you are having it mounted. Since the whole operation is surrounded on increasing the size of knoppix-data, it might be safe to perform it while having knoppix-data mounted, but personally I am not sure it will be 100% safe.
and actively using the file. Just like you can mv a running exectutable to another file of the same name, you can do this with files tied to a loopback. I think the mv will create a hard link to the new file then remove the old file. All open file descriptors will still point to the correct data blocks.
I ran this script as knoppix on my system and had no issues. Until I rebooted, the kernel still sees knoppix-data.bak content exactly as it was when it was before the mv.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
Australia Linux Server- 32 GB RAM + 500 HDD + 6 Core processor
$66.76
Open Eye OE-MTX08 8TB Micro Server With Linux (Boots To Login) No Accessories
$282.92
Red Hat Enterprise Linux 5 Server - New and Sealed
$32.00
IBM 9006-22C 12 Bay LFF SAS3 12G Dual 22 Core 2.6GHz Power9 P9 Linux Server
$2799.99
Canonical Ubuntu Server Linux 16.10 Full Install CD - 32 bit
$9.99
IBM Power8 S822L 20-Core 3.42GHz 256Gb 1.2Tb 40G Elastic Storage Server 5148-22L
$599.95
IBM E850 Power8 2x 12C 3.02GHz 512Gb 1.8Tb SAS 10GbE 16Gb Linux Server 8408-E8E
$899.95
POGO Linux WEBWARE 1150 Rack-Mount Server Pentium 4 2.8GHz 512MB - No Drives
$179.99
1U Open Source Router Firewall X10SLH-N6-ST031 E3-1270 V3 6x 10GB Ethernet 16GB
$419.00