Solved

How To: Mounting a Harddisk on the Target Board

Posted on 2004-04-05
13
337 Views
Last Modified: 2010-04-21
Hello! I am currently doing a project for Embedded Linux. The Host PC runs Red Hat Linux and the Target Board is SH7751RSE01. The target board is booting through the ethernet connection (NFS) with the Host PC. I have already activated the IDE support in the kernel and the Harddisk that I attached in the Target Board is okay but I cannot mount it. How would I be able to mount the harddisk, please help if there are step-by-step procedure in that. I need to be able to write in the harddisk so that I can measure the performance of the file transfer under Embedded Linux. Thanks!
0
Comment
Question by:rminoza
  • 4
  • 3
  • 2
  • +2
13 Comments
 
LVL 12

Expert Comment

by:stefan73
ID: 10764317
Hi rminoza,
I'm not sure if embedded Linux has the same device names, but you could try out

fdisk /dev/hda

In case it doesn't, check the boot log for alternative names. It's possible that embedded linux doesn't use partition tables, so you might be forced to format the entire physical device with a file system (such as ext2).

Cheers,
Stefan
0
 

Author Comment

by:rminoza
ID: 10764598
Hello Stefan,

Thanks for the reply. I was trying to do that but the utilities in the Target Board under /bin does not contain the fdisk and mkfs commands. I'm not sure how can I include those commands in the kernel/target system. So I dont know if I have to do the partitioning under the Host PC or in the Target Board.

Please help,
Rminoza
0
 
LVL 12

Expert Comment

by:stefan73
ID: 10765183
rminoza,
Using NFS for storing data is not an option?

Stefan
0
 
LVL 40

Expert Comment

by:jlevie
ID: 10765456
You won't find fdisk, mke2fs, or mount in /bin. They live in /sbin, have you looked there?
0
 
LVL 1

Expert Comment

by:Rajes
ID: 10781759

you can try the command mount -t  file system(like vfat) /dev/drive name(like hda,hdc )  /destination like /mnt/c
0
 

Author Comment

by:rminoza
ID: 10804700
hello!

I have looked at the /sbin folder, there is none also... I guess it has something to do with the busybox configuration.

I tried so many times to mount the harddisk using the command

# mount -t ext2 /dev/ide /mnt/ide

and the result is

mount: mounting /dev/ide on /mnt/ide failed: no such device

and when I remove the file type option

# mount /dev/ide /mnt/ide

it gives this,

mount: mounting /dev/ide on /mnt/ide failed: success

Is there a way I can write to the harddisk without mounting it...? or maybe I have missed something in configuring the kernel to activate the IDE... Is there a need for a specific driver for the harddisk that I am using?

Please help,
Rminoza
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 40

Expert Comment

by:jlevie
ID: 10804992
If the kernel contains support for IDE devices one would expect to use:

mount /dev/hda1 /mnt/ide

assuming that the disk has already been partitioned and contains a file system on the first partition. And yes, you do have to enable IDE device support in the kernel, either as a built-in or loadable module.
0
 
LVL 1

Expert Comment

by:Rajes
ID: 10830138

use mandrake linux which automatically partition the harddisk
you needn't to mount it.

if you want to mount in other linux os you should first know the
drive number eg, hda1 means first hard disk or hdc ,hdb etc
0
 

Author Comment

by:rminoza
ID: 10830495
hello guys!

I think the reason why I can't mount the disks is because in the first place there is no device found by the system.

I read that I can look at the /proc folder to see which devices are available but none is. I think it has something to do with ALi chipset that the target board is using. The Bridge controller is not known.

Has someone have an idea about this? I need your help.

Thanks!
Rminoza
0
 
LVL 1

Expert Comment

by:Rajes
ID: 11064806
>># mount -t ext2 /dev/ide /mnt/ide

>>and the result is

>>mount: mounting /dev/ide on /mnt/ide failed: no such device

>>and when I remove the file type option

>># mount /dev/ide /mnt/ide

>>it gives this,

>>mount: mounting /dev/ide on /mnt/ide failed: success

no such device means you have look the command for ide.
0
 

Author Comment

by:rminoza
ID: 11065144
Hello Guys!

Thanks for all the help =)

I was able to mount the HDD to the target board (SH4) at last. All I did was to include the MSDOS filesystem support in the kernel and the HDD was detected at boot-up.

It's kinda look different but mounting devices to target board is the same with the usual x86 Linux:

HDD -> mount /dev/ide/host0/bus1/target0/lun0/part1 /mnt/ide

USB Mass Storage -> mount /dev/scsi/host0/bus1/target0/lun0/part1 /mnt/scsi

Thanks again for all the help and advise!

=)
rminoza
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12185416
PAQed, with points refunded (125)

Computer101
E-E Admin
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now