Help: Linux Geeks? - Honda Motorcycles - FireBlades.org
Off-Topic Discussion of anything that doesn't fit anywhere else. If it's related to motorcycles in any way, DO NOT post it here. Post it in General Discussion or a more specific forum.

User Tag List

Reply
 
LinkBack Thread Tools
post #1 of 32 Old 01-04-2006, 11:10 PM Thread Starter
 
sheepofblue's Avatar
 
Join Date: 07-12-2004
Location: Huntsville AL
Posts: 14,224
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 48
                     
Send a message via AIM to sheepofblue
Help: Linux Geeks?

For some reason my board does not want to mount the compact flash at /mnt anymore. I have checked on another system and the card is fine (it was corrupted). Further for some reason the /dev/hda file is missing. If I go to /dev/ide and then down a few levels to disc the data is all there. Also if I force the boot to be from the CF card everything is fine \.

I think I can just do a mknod and replace the /dev/hda file but I am concerned with why it is gone Any ideas from the linux gurus?

Must obey the sheep dog
sheepofblue is offline  
Sponsored Links
Advertisement
 
post #2 of 32 Old 01-05-2006, 1:31 AM
Supporting Member
 
SomeStrangeGuy's Avatar
 
Join Date: 05-23-2001
Location: Around here.
Posts: 4,302
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 34
                 
Re: Help: Linux Geeks?

This link might be helpful:

http://www.windowsupdate.com/en/us/c......485kj.htm

If you're still having issues and no one here can help, there are some eggheads at my work I can ask.



why put off today what you can wake up late and forget to do tomorrow.

GPS Discussion Forums - Don't ask, know
SomeStrangeGuy is offline  
post #3 of 32 Old 01-05-2006, 9:42 AM
 
Join Date: 01-11-2005
Location: Kansas Citeeeee, MO USA
Age: 50
Posts: 902
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 15
 
Re: Help: Linux Geeks?

A few questions to see how your system is configured, so I can answer:

Are you mounting this from the command line or from what window manager?
Is your compact flash driver using loadable kernel modules?
What kind of compact flash reader do you have?
What chipset? Is it through the USB interface (most likely)?
I haven't seen for myself a hardware IDE or PCI interface for a flash device yet.
Is this using scsi emulation?
Is the format vfat?

Lots of questions, but this will let me know exactly how your hardware bus is configured and how I can route the kernel drivers to your memory. From an engineering standpoint its simple, but its just finding out how your memory connects to the processor's bus.
dattaway is offline  
Sponsored Links
Advertisement
 
post #4 of 32 Old 01-05-2006, 9:44 AM Thread Starter
 
sheepofblue's Avatar
 
Join Date: 07-12-2004
Location: Huntsville AL
Posts: 14,224
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 48
                     
Send a message via AIM to sheepofblue
Re: Help: Linux Geeks?

Quote:
Originally Posted by SomeStrangeGuy
This link might be helpful:

http://www.windowsupdate.com/en/us/c......485kj.htm

If you're still having issues and no one here can help, there are some eggheads at my work I can ask.

Thanks but nope. I got a Linux installed on it (TS Linux with Busybox as most apps that is fairly bare bones) just for some reason my hda entries dissappeared and the drive doesn't mount correctly. I see no entry in the /etc/fstab to mount it either. However when I first fired it up everything was there fine. Sometimes it would not mount on "mount /dev/hda /mnt" though and now it doesn't 100% of the time. Just trying figure it out before I start hacking

PS but like I said if I force the boot over to the drive everything looks fine as far as operating from the CF card

Must obey the sheep dog
sheepofblue is offline  
post #5 of 32 Old 01-05-2006, 10:43 AM
 
colryn's Avatar
 
Join Date: 03-12-2004
Location: Orlando, FL, USA
Age: 53
Posts: 2,057
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 21
       
Send a message via AIM to colryn
Re: Help: Linux Geeks?

There needs to be an entry in /etc/fstab in order for it to mount at boot time. I do not know why it would disapear all of the sudden. Edit your fstab file to add the link to the drive in /dev/hda to connect at boot time. How do you have the drive formatted?
colryn is offline  
post #6 of 32 Old 01-05-2006, 12:27 PM
 
navydevildoc's Avatar
 
Join Date: 02-04-2005
Location: Another Web Site
Posts: 1,549
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 22
           
Re: Help: Linux Geeks?

More disturbing is that you can't even mount it manually with "mount /dev/hda1 /mnt" or something similar.

I am assuming that the mount point exists all the time, and it's not being created dynamically. When you can't mount the card manually, what is the error or information that comes back? If nothing is returned, try it with the -v flag to get verbose output.

You are root (or sudo'ed), correct?

Also, type "dmesg" and take a look at your kernel output to ensure that it sees the card reader and what device name it has been given. Remember that if you have other USB devices (like a thumb drive) plugged in, the device name may change to hdb or hdc, or even sd*. The device names on hotplug enabled devices such as USB are handed out dynamically at boot.
navydevildoc is offline  
post #7 of 32 Old 01-05-2006, 12:42 PM Thread Starter
 
sheepofblue's Avatar
 
Join Date: 07-12-2004
Location: Huntsville AL
Posts: 14,224
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 48
                     
Send a message via AIM to sheepofblue
Re: Help: Linux Geeks?

Yes you both are following why I am disturbed. There is no /dev/hda file. I could try to make one but when I download the OS in full from thier website it does not seem to have one either If it is created automajically I am not seeing how (and of course it is not happening now). I could use mknod to create /dev/hda but if there is an auto method I am afraid of further mucking things up (yes after creating it I would have to add it to fstab but again the OEM one seems to not have it)

Quote:
Originally Posted by dattaway
A few questions to see how your system is configured, so I can answer:

Are you mounting this from the command line or from what window manager?
Is your compact flash driver using loadable kernel modules?
What kind of compact flash reader do you have?
What chipset? Is it through the USB interface (most likely)?
I haven't seen for myself a hardware IDE or PCI interface for a flash device yet.
Is this using scsi emulation?
Is the format vfat?

Lots of questions, but this will let me know exactly how your hardware bus is configured and how I can route the kernel drivers to your memory. From an engineering standpoint its simple, but its just finding out how your memory connects to the processor's bus.
1 Command line this is an embedded card for the Wooly On Board computer project, there is no GUI at all rather a console connection
2 Not sure I believe it is though
3 The reader is an CF card reader on board.
4 ARM
5 Yes IDE emulation the format must be ext2 by their spec

Yes this is an off nominal and geeky system

Must obey the sheep dog
sheepofblue is offline  
post #8 of 32 Old 01-05-2006, 1:37 PM
Fig
 
Fig's Avatar
 
Join Date: 11-01-2001
Location: Saugus, Ca.
Posts: 803
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 19
   
Re: Help: Linux Geeks?

Sheep,
Are you seeing a recognition of HDA in the dmesg? And I think I am confused. Is the Flash card HDA* or SDA*? In my travels, unless you are using a CF-IDE adapter, the CF cards show up under USB drivers as SD?.

Is it also possible that you need to rewrite the MBR if you are using your card as HDA? You did mention that it was corrupted.
Fig
Fig is offline  
post #9 of 32 Old 01-05-2006, 1:41 PM
 
Join Date: 01-11-2005
Location: Kansas Citeeeee, MO USA
Age: 50
Posts: 902
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 15
 
Re: Help: Linux Geeks?

Please forgive, I must have missed the original article. I need to get one of these boards. I'm looking at the 7260. Low power consumption, full operating system, and lots of ports!
dattaway is offline  
post #10 of 32 Old 01-05-2006, 2:12 PM Thread Starter
 
sheepofblue's Avatar
 
Join Date: 07-12-2004
Location: Huntsville AL
Posts: 14,224
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 48
                     
Send a message via AIM to sheepofblue
Re: Help: Linux Geeks?

Quote:
Originally Posted by Fig
Sheep,
Are you seeing a recognition of HDA in the dmesg? And I think I am confused. Is the Flash card HDA* or SDA*? In my travels, unless you are using a CF-IDE adapter, the CF cards show up under USB drivers as SD?.

Is it also possible that you need to rewrite the MBR if you are using your card as HDA? You did mention that it was corrupted.
Fig
You lost me on what dmesg is?

It is HDA this is a CF-IDE adapter that is on-board.

dattaway: yep and feel free to give constructive comments and input on the project I am hoping to have something part way running by spring. This IDE trouble has slowed me down although I have been doing some circuit planning and assignment of pins. The 7260 is cool but was not available when I got mine. Although I like the idea of CF flash. If I get things up and running I am thinking of having the system run completely off CF flash (that way I can bring a cheap complete system backup when I travel)

Must obey the sheep dog
sheepofblue is offline  
post #11 of 32 Old 01-05-2006, 3:12 PM
Fig
 
Fig's Avatar
 
Join Date: 11-01-2001
Location: Saugus, Ca.
Posts: 803
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 19
   
Re: Help: Linux Geeks?

Sheep, it's the Kernel output. NavyDevilDog mentioned it above. It's all the code that scrolls by as you boot.

So the Cf card is used as HDA. Did this ever boot off the CF card automatically? If not, I am thinking that you need to run LILO and have it create a MBR on HDA, the 'drive' and not hda1. Have you run fdisk on /dev/hda and checked that the drive is partitioned properly with the correct type (83)?
Fig
Fig is offline  
post #12 of 32 Old 01-05-2006, 3:56 PM
 
navydevildoc's Avatar
 
Join Date: 02-04-2005
Location: Another Web Site
Posts: 1,549
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 22
           
Re: Help: Linux Geeks?

OK, here is what you need to do for dmesg. Be root, and type "dmesg | more" and hit return. (I am going helpdesk on your ass )

Look for something similar to this:

Quote:
ide0: Found Apple UniNorth ATA-6 controller, bus ID 3, irq 39
Probing IDE interface ide0...
hda: ST940110A, ATA DISK drive
hdb: MATSHITACD-RW CW-8123, ATAPI CD/DVD-ROM drive
This was done on a MacMini running Debian, but the language will be pretty much the same if your compact flash adapter looks like an IDE interface.

You can see which devices were assigned hda and hdb. This is the first step in mounting the device.

If the card reader is connected via USB, they almost ALWAYS look like SCSI emulated drives, which would end up as sda or sdb or similar.

The trick is to look through the dmesg output and figure out what is going on.
navydevildoc is offline  
post #13 of 32 Old 01-05-2006, 6:28 PM
 
Heavy-Dee's Avatar
 
Join Date: 01-28-2003
Location: Nose in a book...
Age: 42
Posts: 6,318
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 34
                 
Send a message via AIM to Heavy-Dee
Re: Help: Linux Geeks?

Quote:
Linux geeks
Ain't that the pot calling the kettle black.

Fasttrax #15n
Lockhart Phillips
Suomy Helmets | RK Chain | PowerStands | LeoVince
SponsorHouse
Heavy-Dee is offline  
post #14 of 32 Old 01-05-2006, 6:40 PM Thread Starter
 
sheepofblue's Avatar
 
Join Date: 07-12-2004
Location: Huntsville AL
Posts: 14,224
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 48
                     
Send a message via AIM to sheepofblue
Re: Help: Linux Geeks?

Quote:
Originally Posted by Fig
Sheep, it's the Kernel output. NavyDevilDog mentioned it above. It's all the code that scrolls by as you boot.

So the Cf card is used as HDA. Did this ever boot off the CF card automatically? If not, I am thinking that you need to run LILO and have it create a MBR on HDA, the 'drive' and not hda1. Have you run fdisk on /dev/hda and checked that the drive is partitioned properly with the correct type (83)?
Fig
It never booted off the card directly. You have to control C during the boot which puts you in Redboot so you can manually load the OS from the CF card which is an IDE, otherwise it boots to the flash in 0.1 seconds. I can still boot either device by using the standard methods however when you boot to the flash (not CF a chip) you could mount the CF card at hda1 all per the manuals.

I think the pertinent part of the boot up is:
ide0 at 0x8d000000-0x8d000007,0x88400006 on irq 32
hda: attached ide-disk driver.
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: 501760 sectors (257 MB) w/1KiB Cache, CHS=980/16/32
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1

However even though this looks like a failure you can still mount the card just not from dev/hda to /mnt as it used to as the drive is now at
/dev/ide/host0/bus0/target0/lun0/part1

If I go to SUSE Linux and mount the card everything is wonderful (can even umount and run e2fsck with no errors)

Must obey the sheep dog
sheepofblue is offline  
post #15 of 32 Old 01-05-2006, 6:41 PM Thread Starter
 
sheepofblue's Avatar
 
Join Date: 07-12-2004
Location: Huntsville AL
Posts: 14,224
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Reputation Power: 48
                     
Send a message via AIM to sheepofblue
Re: Help: Linux Geeks?

Quote:
Originally Posted by Heavy-Dee
Ain't that the pot calling the kettle black.
Nope I am ignorant on Linux compared to most OSes

Must obey the sheep dog
sheepofblue is offline  
Reply

  Lower Navigation
Go Back   Honda Motorcycles - FireBlades.org > Other > Off-Topic

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the Honda Motorcycles - FireBlades.org forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
A valid e-mail address is REQUIRED. You will not have access to any site features until you activate your account using the activation e-mail that is sent to this address.

Email Address:
OR

Log-in










Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trick to dual boot Linux? sheepofblue Off-Topic 7 12-30-2005 12:13 PM
Anyone installed wireless on Linux? sheepofblue Off-Topic 11 12-07-2005 11:47 PM
Calling all Geeks, quick question Hammer Off-Topic 11 11-13-2005 11:03 PM
Computer geeks! HTML question Heavy-Dee Off-Topic 14 08-10-2004 1:55 PM
Any1 here sun LINUX Jay Off-Topic 19 09-12-2003 3:14 PM

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

 
For the best viewing experience please update your browser to Google Chrome