Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Two basic Linux questions ....

Status
Not open for further replies.

ahmad_abdulghany

Advanced Member level 4
Joined
Apr 12, 2005
Messages
1,209
Helped
102
Reputation
206
Reaction score
21
Trophy points
1,318
Location
San Jose, California, USA
Activity points
11,775
Hello every body...
I have two questions about Linux..

1. Should I to see Flash drive or CD-ROM on RedHat to mount them as drives? if yes, please tell how to do in steps.

2. How to change shell type from csh to bash I tried the chsh instruction, but nothing changed, and i think that i should install something to enable bash i think! is that correct? how then?

Thanks alot in advance,
Ahmad,
 

safwatonline

Advanced Member level 4
Joined
Nov 19, 2005
Messages
1,346
Helped
219
Reputation
438
Reaction score
48
Trophy points
1,328
Location
EGYPT
Activity points
9,041
1-yes, they should be automatically mounted , try to check the /media directory
2-type in the terminal "bash' without quotes , to do it permenantly >applications>system settings>users and groups but u have to have a root permission
 

safwatonline

Advanced Member level 4
Joined
Nov 19, 2005
Messages
1,346
Helped
219
Reputation
438
Reaction score
48
Trophy points
1,328
Location
EGYPT
Activity points
9,041
well , i am using red hat enterpeise and it has it , "dawar kwais :D"
 

safwatonline

Advanced Member level 4
Joined
Nov 19, 2005
Messages
1,346
Helped
219
Reputation
438
Reaction score
48
Trophy points
1,328
Location
EGYPT
Activity points
9,041
this is the full path "/media" for instance when i connect my Flash the directory to it is "/media/usbdisk"
 

ahmad_abdulghany

Advanced Member level 4
Joined
Apr 12, 2005
Messages
1,209
Helped
102
Reputation
206
Reaction score
21
Trophy points
1,318
Location
San Jose, California, USA
Activity points
11,775
well, it's not working at all!!
may be because you're using an interprise edition of RH, i'm using the FREE version of it :D

No other solutions?
 

mehboob_iiui

Full Member level 2
Joined
May 20, 2006
Messages
132
Helped
8
Reputation
16
Reaction score
1
Trophy points
1,298
Location
Rawalpindi - Pakistan
Activity points
2,013
1. just mount the devices for your cdrom and usb anywhere you want.

I do it like this,

#mount /dev/sda1 /mnt/myusb
and the cdrom as
#mount /dev/cdrom /mnt/cdrom
or just
# mount /dev/cdrom

you may add an entry in the /etc/fstab , if you want these devices to load automatically at startup.

2. to change the shell just type csh from bash (switch to Cshell from bash) and type exit or Ctrl D to go back.
 

louisnells

Full Member level 4
Joined
May 8, 2006
Messages
209
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Activity points
3,019
When an entry is made in "/etc/fstab" for a file-system the options should be specofied as "noauto" also file-system type should be specified as "auto". Other wise system will try to mount the flash drive which may not be connected atall. The filesystem in a flash drive can be anything.
 

louisnells

Full Member level 4
Joined
May 8, 2006
Messages
209
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Activity points
3,019
Thats possible, refer the Knoppix distribution.

Whenever you insert a new USB device, you can detect it through the /proc interface. So may be you should write some scripts to mount the partitions in the USB HD or Flash drive to appropriate locations.

mehboob_iiui said:
what if I want it to mount automatically when inserted
 

DigitalMan

Junior Member level 2
Joined
Dec 21, 2003
Messages
20
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
191
ahmad_abdulghany,
what distro are you using? Providing that would help. Most distros, if they are current enough, already have automounting working as part of KDE or Gnome (so you basically just put in the USB and you'll find an icon popping up under KDE or Gnome). If you're using some other window manager or want it to automount, you can look into udev. udev lets you permanently name devices and do things such as automount under a certain name as well as execute an application. This is largely used when you insert something like a USB camera. If udev is configured, you'll find that it automatically launches gphoto which allows you to copy your pictures from the camera, etc.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top