LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can I alias a device for the mount command in RedHat 9? (https://www.linuxquestions.org/questions/linux-newbie-8/can-i-alias-a-device-for-the-mount-command-in-redhat-9-a-896376/)

hbutz 08-09-2011 10:57 AM

Can I alias a device for the mount command in RedHat 9?
 
I have a program which mounts /dev/sdb1 for which I lack the source code. This device does not exist on my RedHat 9 system and I want to create /dev/sdb1 such that it's an alias for /dev/hdb1 Can I do this? with MAKEDEV?

I need to have an alias which will allow it to mount, not create a symbolic link to an already mounted directory.

i.e. 'mount /dev/sdb1 /mnt/harddrive' should actually mount /dev/hdb1

acid_kewpie 08-09-2011 11:03 AM

Can we back up and ask why on earth you're running rh9 in the first place?? That's SO old it's unreal.

hbutz 08-09-2011 11:34 AM

Quote:

Originally Posted by acid_kewpie (Post 4437849)
Can we back up and ask why on earth you're running rh9 in the first place?? That's SO old it's unreal.

Software does not suffer from rust, corrosion, oxidation, or other factors usually associated with aging hardware. The application is an embedded product with no keyboard, no video, no mouse, no gui for which the source code cannot be located. Updating the kernel to 2.6.x caused the application to crash. rh9 is the highest revision I could find which allows the system to run.

tredegar 08-09-2011 11:43 AM

You can just make a link. For example:
Code:

root@laptop:~# umount /dev/sdb1
root@laptop:~# ln -T /dev/sdb1 /dev/foo1
root@laptop:~# mkdir /mnt/foo
root@laptop:~# mount /dev/foo1 /mnt/foo
root@laptop:~#


hbutz 08-09-2011 12:09 PM

Quote:

Originally Posted by tredegar (Post 4437892)
You can just make a link. For example:
Code:

root@laptop:~# umount /dev/sdb1
root@laptop:~# ln -T /dev/sdb1 /dev/foo1
root@laptop:~# mkdir /mnt/foo
root@laptop:~# mount /dev/foo1 /mnt/foo
root@laptop:~#


Perfect. Thanks.

acid_kewpie 08-09-2011 12:12 PM

Cool. As you have reasons then that's just groovy, you'd be amazed how many people think that redhat 9 is the newest version as it's the highest number associated with redhat.


All times are GMT -5. The time now is 02:46 AM.