We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


How To: Mounting a Harddisk on the Target Board

rminoza asked
Medium Priority
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!
Watch Question

Top Expert 2004

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



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,
Top Expert 2004

Using NFS for storing data is not an option?

Top Expert 2005

You won't find fdisk, mke2fs, or mount in /bin. They live in /sbin, have you looked there?


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



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,
Top Expert 2005

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.


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


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.


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


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!

Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.