- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: can't ln file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2005 03:54 PM
05-22-2005 03:54 PM
can't ln file
when I run "ln abc.txt /edp/bak" where /edp/bak is a directory , then it pop the error "ln: different file system" , I also check with /etc/fstab , both two directory ( /home and /edp are vxfs ) , could suggest what is wrong ? thx
#pwd
/home/user1
#ln abc.SPS /edp/bak
ln: different file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2005 03:58 PM
05-22-2005 03:58 PM
Re: can't ln file
Try a symbolic link instead.
# ln -s abc.SPS /edp/bak/acp.SPS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2005 04:12 PM
05-22-2005 04:12 PM
Re: can't ln file
Create soft link using ln -s.
Sudeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2005 04:23 PM
05-22-2005 04:23 PM
Re: can't ln file
Apart from hardlink not able to span filesystems, a hard link can not be created for a directory as well.
Create a soft link with the -s option as Patrick have suggested.
Regards,
--Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2005 04:30 PM
05-22-2005 04:30 PM
Re: can't ln file
Your problem is that
i) You are trying to link a file to a directory, and
ii) the directory you are trying to link is on a filesystem other than the one where you are trying to create the file.
For both these situations you need to create a symbolic link, instead of Hard-link.
Your command should look like "ln -s abc.txt /edp/bak"
To know more about hard links and synbolic links, you can read the man pages of ln, as well as you may search the web.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 12:20 AM
05-23-2005 12:20 AM
Re: can't ln file
ln: different file system
Now changing to a symbolic link:
# ln -s abc.SPS /edp/bak/abc.link
will work but not produce what you want. The reason is that abc.SPS is a simple filename and the link stores exactly that string--no more. So if you are not in the correct directory, the file cannot be found.
All symbolic links should have a fullpath for the source as in:
# ln -s /mydir/mysubdir/abc.SPS /edp/bak/abc.link
Bill Hassell, sysadmin