LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 08-18-2005, 03:19 PM   #1
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Rep: Reputation: 15
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
 
Old 08-18-2005, 03:25 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
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 ?
 
Old 08-19-2005, 07:19 AM   #3
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
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
 
Old 08-19-2005, 08:00 AM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
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.
 
Old 08-19-2005, 08:51 AM   #5
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
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
 
Old 08-19-2005, 09:14 AM   #6
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
/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)
 
Old 08-19-2005, 09:55 AM   #7
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
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?
 
Old 08-19-2005, 10:16 AM   #8
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
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?
 
Old 08-19-2005, 10:40 AM   #9
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
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
 
Old 08-19-2005, 11:14 AM   #10
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

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


Reply



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
Block device /dev/sda3 is not a valid root device.. rincewind Linux - Hardware 7 06-09-2006 04:47 AM
Should Raid come up as a Block Device? tantrix Programming 0 05-17-2005 12:41 PM
block device name??? franco Debian 2 10-23-2003 05:15 AM
PCMCIA block device frieza Linux - Hardware 4 04-29-2003 06:07 PM
What is a 'block device' rwelch Linux - General 1 03-10-2003 12:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:40 AM.

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
Open Source Consulting | Domain Registration