LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2011, 12:18 AM   #1
amitk.gupta09
Member
 
Registered: Aug 2011
Location: pune
Posts: 37

Rep: Reputation: Disabled
Can not create a link in pern drive


hey friends
i am trying to create a symbolic or hard link for a file in my pen drive but i am unable to create.my pen drive is auto mounted,and i also mount it on /mnt directory.i am able to do rest of operation except creating link.

on doing this operation i am getting this error message
ln: creating symbolic link `ll': Operation not permitted.

i already tried this after changing user as s root but got same error message.
please help me

Last edited by amitk.gupta09; 08-29-2011 at 12:21 AM.
 
Old 08-29-2011, 12:52 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

I'll hazard a guess and say that pen-drive is formatted w/ either
FAT or NFTS. Neither of which have facilities for links. If you
want symlinks you may have to format the pen w/ a Linux native
file-system like ext2/3/4, reiserfs, xfs, jfs, ...


Cheers,
Tink
 
1 members found this post helpful.
Old 08-29-2011, 01:32 AM   #3
amitk.gupta09
Member
 
Registered: Aug 2011
Location: pune
Posts: 37

Original Poster
Rep: Reputation: Disabled
i tried to create a new file system named ext4 wd command
mkfs.ext4 /dev/sdb1
and execute mount command in this way--------$mount /dev/sdb1 /mnt
where dev/sdb1 is node for my pen drive

but now i unable to open my pen drive..

please solve my prob.
 
Old 08-29-2011, 02:24 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
but now i unable to open my pen drive.
Can you be more explicit than this? What do you do exactly? and what is the response to your action?
jdk
 
Old 08-29-2011, 02:39 AM   #5
amitk.gupta09
Member
 
Registered: Aug 2011
Location: pune
Posts: 37

Original Poster
Rep: Reputation: Disabled
In order to create a link i want to change file system type of my pen drive so take following steps

I created a new file system named ext4 wd command for my pen drive
mkfs.ext4 /dev/sdb1
and execute mount command in this way--------$mount /dev/sdb1 /mnt
where dev/sdb1 is node for my pen drive

but now in my pen drive there is directory named lost+found is created and when i am trying to open this directory following errors are coming===

could not open u don't have a permission.
 
Old 08-29-2011, 02:43 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
You don't need to open the lost+found directory. Have you tried again to create your symbolic link? Has that succeeded?
jdk
 
Old 08-29-2011, 03:02 AM   #7
amitk.gupta09
Member
 
Registered: Aug 2011
Location: pune
Posts: 37

Original Poster
Rep: Reputation: Disabled
in my pen drive right now only one directory named lost+found and this directory are open.
there is nothing else in this pen drive and no operation are possible right now...
 
Old 08-29-2011, 03:05 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Try
mkdir /mnt/my_directory
 
1 members found this post helpful.
Old 08-29-2011, 03:28 AM   #9
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by amitk.gupta09 View Post
in my pen drive right now only one directory named lost+found and this directory are open.
there is nothing else in this pen drive and no operation are possible right now...
Once again you are very vague. What command(s) did you give and what were the responses? Try Tink's suggestion and if you have problems try to give more detail than "no operation possible".
ciao,
jdk
 
1 members found this post helpful.
Old 08-29-2011, 07:15 AM   #10
amitk.gupta09
Member
 
Registered: Aug 2011
Location: pune
Posts: 37

Original Poster
Rep: Reputation: Disabled
thanks for helping me to solve pen drive problem. finaaly i am able to resolve the pen drive's problem.
Now i am having problem with sshd server.
i try to install sshd server on hardware board which is mips64.
i successfully install sshd server,now sshd server is running.i am able to remote login with sshd user but not with root user.

when i am trying wd root following error come...
ssh_exchange_identification: Connection closed by remote host

i have another issue is that---when i was executing sshd(executable file) on my hardware i got this error message Privilage separation user sshd does not exit.for resolving that problem i created a user and group named sshd.now problem is that if made sshd entry first in /etc/passwd file,then i am to resolved privilage seperation problem but if i made root entry first in /etc/passwd file then same error message again occur. =============what is this..
 
Old 08-29-2011, 07:20 AM   #11
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Please mark this thread as [Solved] if you're happy. Do not start a different topic. You will get no answers because you're question has nothing to do with the thread title. Please start your new thread (about the sshd server) with a good title and then you can get help.
ciao,
jdk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create soft link and hard link in RHEL5 ramadas88 Linux - Server 6 09-15-2010 04:32 AM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 07:40 AM
Create Link? How??? ~zoey~ Linux - Newbie 9 07-24-2006 04:23 PM
Can't create symbolic link on my external hard drive yinglcs Linux - Newbie 15 01-09-2006 02:40 PM
How to create a link? sharathkv Linux - Newbie 4 07-29-2003 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration