LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   What is a New Block Device (https://www.linuxquestions.org/questions/linux-hardware-18/what-is-a-new-block-device-354669/)

cthomas 08-18-2005 03:19 PM

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

Half_Elf 08-18-2005 03:25 PM

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 ? :)

cthomas 08-19-2005 07:19 AM

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

Half_Elf 08-19-2005 08:00 AM

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.

cthomas 08-19-2005 08:51 AM

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

Half_Elf 08-19-2005 09:14 AM

/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)

cthomas 08-19-2005 09:55 AM

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?

Half_Elf 08-19-2005 10:16 AM

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?

cthomas 08-19-2005 10:40 AM

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

Half_Elf 08-19-2005 11:14 AM

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.


All times are GMT -5. The time now is 11:38 AM.