LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-09-2011, 11:57 AM   #1
hbutz
LQ Newbie
 
Registered: Jun 2011
Posts: 9

Rep: Reputation: Disabled
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
 
Old 08-09-2011, 12:03 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Can we back up and ask why on earth you're running rh9 in the first place?? That's SO old it's unreal.
 
Old 08-09-2011, 12:34 PM   #3
hbutz
LQ Newbie
 
Registered: Jun 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
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.
 
Old 08-09-2011, 12:43 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
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:~#
 
1 members found this post helpful.
Old 08-09-2011, 01:09 PM   #5
hbutz
LQ Newbie
 
Registered: Jun 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tredegar View Post
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.
 
Old 08-09-2011, 01:12 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
  


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
command to display the device-fs-uuid-mount point htamayo Linux - Newbie 2 10-26-2010 03:44 PM
Creating ethernet device alias fawrell Linux - Networking 4 11-18-2009 04:14 AM
What is the device alias number? ukrainet Linux - Newbie 4 02-11-2005 07:48 AM
alias to an SMB Mount thegooch49 Linux - Newbie 1 05-04-2004 10:31 AM
Newbie Help : can i setup IP Masquerading with a device alias ? venicivivedi Linux - Networking 2 05-03-2004 01:37 AM

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

All times are GMT -5. The time now is 06:57 PM.

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