General :: Alias A Device For The Mount Command In RedHat 9?
Aug 9, 2011
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
I cant mount a directory on red hat 5 from red hat 4 using fstab.I keep getting permission denied.I mount directories on the same red hat 5 sys from other red hat 5 and 2 old HPUX systems using fstab.When I try to telnet to it i get "no route to host."
I have an alias that I would like to use both as a regular user and as root, via sudo. Specifically, it is this:
alias rm=trash This works fine as a normal user, and it works fine when I use sudo -i to get a root shell prompt, but if I use sudo rm, the alias does not apply. So where do I need to put my alias so that it works in one-off sudo commands?
I used the alias command to make ll be ll -lrt. I have linux 5 and using the bash shell. now I can't even use ll, only ls. when I go into the bin directory, ll is not in the list and the normal color codes for bash are not showing either...folders blue, etc
When at the command line, I find that I have to type out this command very often: find . -iname "*php" -exec grep -H query {} ; I'd love to set up an alias, script, or shortcut to make it work easier. I would like to do something like: mysearch query ("*php") (.) It would be great if the command could accept three arguments, in reverse order:
query string, file name expression, directory If the second two arguments were omitted they would default to not being included, and the current directory. Finally, the icing on the cake would be that if additional variables were included (4th, 5th, 6th...) they would be injected as additional arguments for the find command (like I could say -type d) at the end. Attempted code I tried the example below, but I'm still having trouble setting default values. What am I doing wrong?
I know that using alias I can run a whole command with a shortcut. But my requirement is to use parts of a long command and in between I have to pass some user defined values. E.g. Suppose I have to routinely copy a directory to another remote directory on a remote machine.The remote machine name is quite long as well as the directory path to which I want to copy the files into.So the command to do scp would look like this[URL]Now I want to do some sort of aliasing (say "ecp") so that I just need to pass the source_directory name and the ecp command and do my job
I have extended the Logical Volume and when I do an lvmdiskscan it shows the new extened value but when I do a df -h the mount (/var) still shows the old value?
wld like to know what to do in order to mount my winxp os in my redhat linux os. I tried editing my fstab file mounting my hda/hda1, I used ntfs, vfat file, none of it worked. When I used ntfs file, its told me my kernel does not support that file system.
In Redhat 4.x, we can use 'smbmount' to mount another linux samba server with 'user1'. But now we used redhat 5.3(64bit), there is no smbmount and I can only user mount command via root.
How can I mount a folder via 'user1', not root?
(BTW, I can run '#mount hostname:/sharename /mnt/u1, but the access right of /mnt/u1 is only for root.)
$ls -la drwxrwxr-x root:root 4096 May 18 2010 u1
I wish it is "user1:user1" drwxrwxr-x user1:user1 4096 May 18 2010 u1
I also edit /etc/fstab and add the following in. hostname:/sharename /mnt/u1 noauto,user1 0 0
mount: only root can mount xxx on xxx. It still doesn't work.
I'm running Ubuntu Server 10.04 to provide DHCP and Internet Sharing on my home LAN. In a previous configuration, I was running Fedora + AMAHI to provide the same services. As most of my linux devices are Ubuntu, I decided to decommission and rebuild my server. I've been able to configure all of my services with the exception of one. As a rule, I assign static IP or reservations based on MAC address's for any of my network devices or appliances.
One cool feature that AMAHI provided a GUI for, was the ability to recognize devices by name as well as IP. i.e.. "http://192.168.1.50" or "http://home-NAS" Going from memory, the long name upon first entry may actually have been "http://home-NAS.adomainname.com"? From my reading, I think I either need to setup up a Static Alias or CNAME for each assigned IP. I can't find any tutorial's that will walk me through this process. I'm guessing I need to generate the records under one of the master DNS zones, but that is just a guess?
I have installed IDL 7.1 on my Ubuntu 9.10. And now the instruction says that I should set up an "alias" for it.I do not know what to write in my "bashrc" as an alias for IDL. These are the place of the executable command of IDL:
/IDL/idl-7.1/bin/idl AND /IDL/idl-7.1/bin/idlde
Note that "idl" and "idlde" are the executable files which run the program by typing them in Terminal. I would be very grateful if anyone could help me in how to write an "alias" for my IDL.
I want to know the exact command to shut down a red hat linux server.I was using init 0. but some one said its not the proper method to shut down my linux server.If not which is the exact command
I can't get Redhat (Fedora) to mount my usb Flashdrive. My windows O/S has no problem with my usb flashdrive. I can mount my CD Drive and my Floppy drive. My mouse is pluged into one of my usb slots and it works. What am I doing wrong.
I'm the noobiest noob you'll find on here. I'm having trouble getting ruby on rails to work with mysql on redhat. So on their forum I asked how to install the latest "sqlite" database package on linux.They told me to run.Now, I don't think I need "sudo" because I am the root user on my database, and I don't think I can use "apt-get" because I'm using redhat, not ubuntu.
1) Is there a way of running the above command on redhat? (A redhat command for installing things?)
2) How can I be sure I'm using redhat and not some other OS?
How can I find which /dev/? device to mount my USB hard drive on redhat 3 taroon, I've been googling a lot and checked log files and still no clue. I'm trying my last chance with you experts, # /sbin/fdisk -lgives nothing about the USB drive
# lsusb -vv Bus 004 Device 005: ID 059f:0951 LaCie, Ltd Device Descriptor:
I am trying to set up my usb device to be available to mount and umount only for me, not for other users. Using Slackware 12.2Entry in fstab is as follows:
I have a Corsair R60 ssd disk which is a disk with both sata and usb connectors. But the usb thing seems to be a bit non-standard, or maybe its just my fedora linux.When I insert the disk using a usb cabel to a running Fedora 14 linux system, a device called /dev/sg3 is added but that is all. No new /dev/sd* device is created so I can't mount the disk.
So the disk is there. (The last entry) but my linux will for some reason not see it as a usb hard disk. When I insert other usb disks they work fine. It is only this specific disk which causes problems. I have tried on 3 different computers with the same result.
A hint to the problem may be that if I add the disk to a windows system(With usb) the disk is called "A fixed disk" and not a portable disk as expected. The disk works fine with linux If i connect it with the sata cabel, but I would really like to have it working with usb too. (To mount it on computers without sata).
Added:I did try to mount /dev/sg3 but mount say that its not a block device. (File say Its a character special device).
Added output from dmesg:
[ 97.454073] usb 7-1: USB disconnect, address 2 [ 105.913055] hub 2-0:1.0: unable to enumerate USB device on port 3 [ 107.048054] usb 2-3: new high speed USB device using ehci_hcd and address 5 [ 107.162900] usb 2-3: New USB device found, idVendor=1b1c, idProduct=1ab8
[code]....
I found an other guy with exactly the same problem [URL] so I think its beginning to look like a bug in the drives firmware or in the linux kernel.
Final update:Corsair have said that the disk design is broken and there does not seem to be any way to make it work.
retrying with upper case share name mount error 6 = No such device or address Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) [root@servers guest]#