?
Solved

How To: Mounting a Harddisk on the Target Board

Posted on 2004-04-05
13
Medium Priority
?
349 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
12 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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month17 days, 2 hours left to enroll

862 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