Problem to save file on the hard disk! What I have to set to do it ?
Matteo
matteo.posterli at studenti.unipr.it
Thu Mar 16 15:28:01 UTC 2006
Hi Thomas,
I just tryed to launch the full fileio example on another one similar computer
i386(not a notebook like mine) and doesn't works, so can I think that is
something of wrong in the example ?
Thanks in advantage
Matteo
Scrive Thomas Doerfler <Thomas.Doerfler at imd-systems.de>:
> Matteo,
>
> I got no idea, what might go wrong on your machine. According to your
> answer, the partiton table is read in correctly. Can you do the
> following for me:
>
> under linux, can you log in as root and perform the following commands:
> # dd if=/dev/hda of=hda_partition_table bs=512 count=1
> # dd if=/dev/hda2 of=hda2_info bs=512 count=22000
> # gzip <hda2_info >hda2_info.gz
>
> This will read the partition table and the start of hda2 (including the
> boot sector, the FAT and some file contents of that partition) from your
> disk. If you send me these two files (as private mail) I can try to
> analyze the info stored there.
>
> Please note, with the above commands, some file content of your harddisk
> will be sent to me aswell, so please do it only if you do not have
> private or confidential information on this partiton.
>
> wkr,
> Thomas.
>
>
> Matteo wrote:
> > Hi Thomas,
> >
> > The result after reading the partition table is "RESULT = 0"
> > I create the /mnt/hda1 too, with linux I can write and mount without
> problem on
> > hda1(FAT16). So why with RTEMS I can't do it ?
> >
> > Have you some idea ?
> >
> > Thanks
> >
> >
> >
> > Scrive "Thomas Doerfler (nt)" <Thomas.Doerfler at imd-systems.de>:
> >
> >
> >>-----BEGIN PGP SIGNED MESSAGE-----
> >>Hash: SHA1
> >>
> >>Matteo,
> >>
> >>one other question:
> >>
> >>After reading the partition table, the "fileio" sample will print a
> >>result code. Can you tell me what is printed there as a result?
> >>
> >>wkr,
> >>Thomas.
> >>
> >>Matteo schrieb:
> >>
> >>>I have two FAT partition;
> >>>- one is hda2, is for " windows xp " and is FAT32(is about 20GB),
> >>>- another one is hda1, is a free memory FAT16(is about 2.8 GB).
> >>>I can mount hda2 and hda1 and write a file on them without problem.
> >>>
> >>>What's the problem about your opinion?
> >>>May be I have to set some special options in my Grub(my linux bootloader)
> >>
> >>when I
> >>
> >>>have to launch the example?
> >>>
> >>>Really thanks in advance.
> >>>
> >>>Matteo
> >>>
> >>>
> >>>
> >>>Scrive "Thomas Doerfler (nt)" <Thomas.Doerfler at imd-systems.de>:
> >>>
> >>>
> >>>
> >>>>Matteo,
> >>>>
> >>>>it really looks like a difficult case to me :-((
> >>>>
> >>>>What is confusing me: Your FAT partition has a size of about 20GB. This
> >>>>is MUCH to big for a FAT16 partition, so I would guess, that a program
> >>>>that is asked to format the disk should complain about this.
> >>>>
> >>>>In your last posts, you have sent me information about what is written
> >>>>in the partition table for partition hda1. For clarity, I have to ask
> >>>>again: did you also:
> >>>>
> >>>>- format the partition
> >>>>- mount it under linux to some mount point
> >>>>- write files to it
> >>>>
> >>>>and everything without problems?
> >>>>
> >>>>wkr,
> >>>>Thomas.
> >>>>
> >>>>
> >>>>Matteo schrieb:
> >>>>
> >>>>
> >>>>>Thomas,
> >>>>>
> >>>>>Yes I can access to windows from linux.
> >>>>>I created hda1 using gparted formatting hda1 as FAT16.
> >>>>>Infact if I use gparted, like you can see, it says that is FAT16, but
> if
> >>
> >>I
> >>
> >>>>use
> >>>>
> >>>>
> >>>>>only "cfdisk" says that is only linux.
> >>>>>I try to see my memory using also qtparted and It says me that hda1 is
> >>>>
> >>>>FAT16
> >>>>
> >>>>
> >>>>>partition.
> >>>>>I don't know why "cfdisk -l /dev/hda" don't shows that hda1 is FAT16.
> >>>>>But both gparted both qtparted program shows that hda1 is a FAT16 !
> >>>>>
> >>>>>Have you some idea about my problem ?
> >>>>>
> >>>>>Really Thanks in advance
> >>>>>
> >>>>>Matteo
> >>>>>
> >>>>>
> >>>>>Scrive "Thomas Doerfler (nt)" <Thomas.Doerfler at imd-systems.de>:
> >>>>>
> >>>>>
> >>>>>Matteo,
> >>>>>
> >>>>>I am a bit confused, your listing shows, that /dev/hda1 is a Linux ext3
> >>>>>partition, but you write that gparted shows it as FAT16. But /dev/hda2
> >>>>>looks fine in the partition table. can you access the filesystem on
> >>>>>/dev/hda2 from linux?
> >>>>>
> >>>>>Thomas.
> >>>>>
> >>>>>Matteo schrieb:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Ok this is the result of the command "fdisk -l /dev/hda"
> >>>>>
> >>>>>>Disk /dev/hda: 40.0 GB, 40007761920 bytes
> >>>>>>255 heads, 63 sectors/track, 4864 cylinders
> >>>>>>Units = cilindri of 16065 * 512 = 8225280 bytes
> >>>>>
> >>>>>>Dispositivo Boot Start End Blocks Id System
> >>>>>>/dev/hda1 2678 3014 2706952+ 83 Linux
> >>>>>>/dev/hda2 1 2677 21502971 c W95 FAT32
> (LBA)
> >>>>>>/dev/hda3 3015 4784 14217525 83 Linux
> >>>>>>/dev/hda4 4785 4864 642600 5 Esteso
> >>>>>>/dev/hda5 4785 4864 642568+ 82 Linux swap /
> >>>>>
> >>>>>Solaris
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>looking with gparted I have the result that, hda1 is "FAT16", hda2 is
> >>>>>
> >>>>>"FAT32",
> >>>>>
> >>>>>
> >>>>>
> >>>>>>hda3 is "ext3", hda4 is "exetended", hda5 is "linux swap".
> >>>>>
> >>>>>>I created hda1 with FAT16 thinking to resolve the problem, but from
> the
> >>>>>
> >>>>>fileio
> >>>>>
> >>>>>
> >>>>>
> >>>>>>example I have always the same error,
> >>>>>>" fsmount: mounting of "/dev/hda1" to "/mnt/hda1" failed: No such file
> or
> >>
> >>>>>>directory " but now hda1 is FAT16 so it could be right for RTEMS, but
> it
> >>>>>
> >>>>>isn't.
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Why ?
> >>>>>
> >>>>>>Can you help me ?
> >>>>>
> >>>>>>Thanks advanced
> >>>>>
> >>>>>>MAtteo
> >>>>>
> >>>>--
> >>>>--------------------------------------------
> >>>>IMD Ingenieurbuero fuer Microcomputertechnik
> >>>>Thomas Doerfler Herbststrasse 8
> >>>>D-82178 Puchheim Germany
> >>>>email: Thomas.Doerfler at imd-systems.de
> >>>>PGP public key available at:
> >>>> http://www.imd-systems.de/pgpkey_en.html
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>- --
> >>- --------------------------------------------
> >>IMD Ingenieurbuero fuer Microcomputertechnik
> >>Thomas Doerfler Herbststrasse 8
> >>D-82178 Puchheim Germany
> >>email: Thomas.Doerfler at imd-systems.de
> >>PGP public key available at:
> >> http://www.imd-systems.de/pgpkey_en.html
> >>-----BEGIN PGP SIGNATURE-----
> >>Version: GnuPG v1.2.5 (MingW32)
> >>Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> >>
> >>iD8DBQFEFxgwwHyg4bDtfjQRAvZ9AJ9WJ/gAMrsN4gAL+xFPTU6ORILk0wCfcnQ9
> >>y1s9iHINDbrRi7YUSY3by1w=
> >>=8f/L
> >>-----END PGP SIGNATURE-----
> >>
> >>
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> --------------------------------------------
> IMD Ingenieurbuero fuer Microcomputertechnik
> Thomas Doerfler Herbststrasse 8
> D-82178 Puchheim Germany
> email: Thomas.Doerfler at imd-systems.de
> PGP public key available at:
> http://www.imd-systems.de/pgpkey_en.html
>
>
More information about the users
mailing list