Solved

How To: Mounting a Harddisk on the Target Board

Posted on 2004-04-05
13
340 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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