| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
locating a hard link in kernel tree
|
Original Message
|
Name: Arcosanti
Date: April 18, 2007 at 21:31:21 Pacific
Subject: locating a hard link in kernel treeOS: kernel 2.4.20CPU/Ram: P-MMX 188MHz/64MBModel/Manufacturer: custom |
Comment: I am trying to move the kernel source to another drive but there is a hard link somewhere in the source. How can I locate the link and what it is pointed to so I can recreate the link on the new drive?
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: ernie
Date: April 18, 2007 at 23:36:37 Pacific
|
Reply: (edit)If you want the kernel source to be located on a different partition (or drive), you could copy the contents of /usr/src to the new partition, then mount that partition at /usr/src. I do not know if this is what you are after, but it is one approach. HTH, Ernie Registered Linux User 247790 ICQ 41060744
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: Arcosanti
Date: April 19, 2007 at 05:30:24 Pacific
|
Reply: (edit)Thats pretty much what I tried to do via Midnight Commander but it made mention of a hard link that it couldn't recreate in the new partition. Apparently one of the files in the tree was a hard link to to some other file in the tree. I want to move that hard link over to but you just can't copy those like you can with a symlink. Does anyone know of a utility that can make the hard link in the new partition? Or some other copy method that would have the same effect would be fine.
Report Offensive Follow Up For Removal
|
|
Response Number 4
|
Name: Arcosanti
Date: April 19, 2007 at 07:57:31 Pacific
|
Reply: (edit)Wow, I havne't used umsdos since kernel 2.0.30. I'm using reiser which so far as I am concerned is plowing ext2 into the ground in stability after a system crash. I did a little experiment this morning with Midnight Commander. I created a hard link to my boot kernel in the root directory asnd then used Midnight Commander to copy it to the other drive. It actually copied. I then deleted both of the hard links and tried to copy the kernel tree again this time making sure not to check the follow links option. It copied over with no problem this time. I guess Midnight Commander can't copy over links if it follows them.
Report Offensive Follow Up For Removal
|
|
Response Number 5
|
Name: ernie
Date: April 19, 2007 at 08:09:56 Pacific
|
Reply: (edit)IIUC, follow links causes mc to attempt to copy the data to which the link points as part of the copy procedure (rather than to copy the link), which may not always be possible for a variety of reasons. By disabling follow links, you tell mc to treat the link as a file. HTH, Ernie Registered Linux User 247790 ICQ 41060744
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Linux Forum Home