Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-18-2005, 03:19 PM
|
#1
|
|
Member
Registered: Aug 2005
Posts: 91
Rep:
|
What is a New Block Device
I'm trying to use a PCMCIA adapter for CompactFlash Card in my lap top. When I do tail /var/log/messagess I get about six lines tha say "new block device /block/hde/hde1". How can I mount this device so I can get to my images.
This is on an IBM i seraies 1500 running Novell's NLD, Kernal version: 2.6.5--7.155.29.
Carl
|
|
|
|
08-18-2005, 03:25 PM
|
#2
|
|
Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
it would help to see these messages...
Have you tried "mount /dev/hde1 /mnt/where/you/want/it" ?
/block/hde/hde1 is quite a strange device... In any case it has to be somewhere into /dev, maybe /dev/block/hde/hde1 ? 
|
|
|
|
08-19-2005, 07:19 AM
|
#3
|
|
Member
Registered: Aug 2005
Posts: 91
Original Poster
Rep:
|
When I try to mount this is what I get: Mount can't find /dev/hde1 in /etc/fstab or /etc/mtab.
How can I get a screen shot of /var/log/message to post so you can see it?
Carl
|
|
|
|
08-19-2005, 08:00 AM
|
#4
|
|
Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
Quote:
|
When I try to mount this is what I get: Mount can't find /dev/hde1 in /etc/fstab or /etc/mtab.
|
Take a close look at the example I gave you :
command is :
mount <what device> <where to mount>
Don't just try mount /dev/hde1 it will not work unless you have an entry in fstab about it (that's what it complains about).
If you want a printscreen, you may have some printscreen application on your system already (like ksnpashot if you have KDE) but just a copy/paste would be good too.
|
|
|
|
08-19-2005, 08:51 AM
|
#5
|
|
Member
Registered: Aug 2005
Posts: 91
Original Poster
Rep:
|
Here is the bottom of the Message file.
Aug 18 19:36:23 linux kernel: hde: hde1
Aug 18 19:36:24 linux kernel: hde: hde1
Aug 18 19:36:24 linux /etc/hotplug/block.agent[26541]: new block device /block/hde/hde1
Aug 18 19:36:24 linux kernel: hde: hde1
Aug 18 19:36:25 linux /etc/hotplug/block.agent[26597]: new block device /block/hde/hde1
Aug 18 19:36:25 linux kernel: hde: hde1
Aug 18 19:36:25 linux /etc/hotplug/block.agent[26649]: new block device /block/hde/hde1
Aug 18 19:36:25 linux kernel: hde: hde1
Aug 18 19:36:25 linux /etc/hotplug/block.agent[26721]: new block device /block/hde/hde1
Aug 18 19:36:26 linux kernel: hde: hde1
Aug 18 19:36:26 linux /etc/hotplug/block.agent[26770]: new block device /block/hde/hde1
Aug 18 19:36:27 linux kernel: hde: hde1
Aug 18 19:36:28 linux /etc/hotplug/block.agent[26833]: new block device /block/hde/hde1
Aug 18 19:36:28 linux /etc/hotplug/block.agent[26892]: new block device /block/hde/hde1
Aug 18 19:36:28 linux kernel: hde: hde1
linux:~ #
I'm sorry but I don't understand this command. I'm just learning Linux.
command is :
mount <what device> <where to mount>
So I would type: mount /dev/hde1 then what?
Carl
|
|
|
|
08-19-2005, 09:14 AM
|
#6
|
|
Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
/dev/hde1 (or whatever what it may be, if you mount something else a day) is the " what device" part
then you need to tell the system when you want to mount this device... "mount" add a device/hdd/cdrom/storage/whatever to your system as a directory (in opposition of a drive letter like A: D: or E: in windoze). Therefore, you need to tell mount _where_ it should mount this device, in other word _in which directory_ it will be accessible. Choose an empty directory (because once the directory will be used by mount, the files in the device will replace the files in this directory, until you unmount), it may be anywhere, the usual way is to create a folder in /mnt or /media, but it's up to you. This folder would be the "where to mount" part.
Note : mount will _not_ create the directory by itself and will complain if the dirrectory doesn't exist yet
So, a possible example :
"mount /dev/hde1 /mnt/flash"
(assuming you've created /mnt/flash)
|
|
|
|
08-19-2005, 09:55 AM
|
#7
|
|
Member
Registered: Aug 2005
Posts: 91
Original Poster
Rep:
|
Ok. I did a: I went into mnt and created a folder called pcmcia, cd / back to root and typed: mount /dev/hde1 /mnt/pcmcia and hit enter and it came back to linux:/ # with no errors. Now how do I get to my data?
|
|
|
|
08-19-2005, 10:16 AM
|
#8
|
|
Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
Quote from my last message :
Quote:
|
Therefore, you need to tell mount _where_ it should mount this device, in other word _in which directory_ it will be accessible.
|
In /mnt/pcmcia?
|
|
|
|
08-19-2005, 10:40 AM
|
#9
|
|
Member
Registered: Aug 2005
Posts: 91
Original Poster
Rep:
|
Hey,my data is there. Thank you! Thank you!
Now do I have to unmount and remount every time I take the PCMCIA card out and put it back in? Is there a way I can put a short or icon on my desktop for this?
One other question. Would you take a look at the other thread I have posted in this fourm and see if you have any idea about that?
Agana Thanks for your help.
Carl
|
|
|
|
08-19-2005, 11:14 AM
|
#10
|
|
Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
Quote:
|
Now do I have to unmount and remount every time I take the PCMCIA card out and put it back in? Is there a way I can put a short or icon on my desktop for this?
|
Yes, you have to mount it each time. Most desktop environnement (KDE, Gnome, etc) will let you add an icon (in KDE, just add a new "device" and edit the properties, I don't know about Gnome) that will mount for you. There is some "automount" tools too but I don't use that kind of things so I can't tell you.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:47 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|