ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What do you mean by 'unlinking'? Perhaps you mean you unmounted it?
i have added it during installation of linux. but later on i have also mounted it to /mnt/tmp .
then i have used command "unlink" , after the execution of this commmand it is removed permanently and whenever i try to mount it
message is shown no susc device or directory
You don't say which distro and version you are using so it is difficult to say what is happening.
unlink is similar to 'rm'. Sounds like you have removed the device file /dev/hda5 in which case you'd need to recreate it or copy it from some exiting installation.
It would help if you post the full commands that you used and the order in which you executed them.
You don't say which distro and version you are using so it is difficult to say what is happening.
unlink is similar to 'rm'. Sounds like you have removed the device file /dev/hda5 in which case you'd need to recreate it or copy it from some exiting installation.
It would help if you post the full commands that you used and the order in which you executed them.
i have used commands in following order
mount /dev/hda5 /mnt/tmp
here i checked contents of /mnt/tmp copied files into linux
Ouch! As I said 'unlink' is basically the same as 'rm'. The command you need to use is 'umount /dev/hda5', not 'unlink /dev/hda5'.
You say you are running slack-11.0 which is the same thing I am running. We need to know which kernel you are running -actually we need to know if you are using the udev, which implies a 2.6 kernel. But you can also run a 2.6 kernel and not use udev. If you are using udev, then the special device file /dev/hda5 should be recreated when you reboot. If you are not using udev (I don't), then the command you used has removed the special device file /dev/hda5 from the system permanently. You can use the mknod tool to re-create it, or you can copy it from somewhere else. For instance, you could reboot with the installer CD, mount the partition and then copy device file (/dev/hda5) from the /dev directory of the running installer into /mnt/tmp/dev/hda5. You could also use the Slackware 'explodepkg' command to unpack the devs-2.3.1-noarch-25.tgz package somewhere and then copy the device file from there into your /dev directory.
You should also be able to cd into the /dev dir of your system and run this command to recreate all the device files for hda:
'./MAKEDEV hda'
The mknod command is something like this:
mknod --mode=660 /dev/hda5 b 3 5
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.