[Elphel-support] more about my problems with the HDD

Carlos Padial palidoestudio2 at gmail.com
Thu Feb 2 17:31:07 PST 2012


2012/2/3 Oleg <support-list at support.elphel.com>:
> 1. "hdparm -I /dev/hda" where "I" - is the capital "i".
ok

[root at Elphel353 /]853# hdparm -I /dev/hda

/dev/hda:

ATA device, with non-removable media
        Model Number:        MK1231GAL
        Serial Number:                 X9S6W08AW
        Firmware Revision:
Standards:
        Likely used: 6
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  234441648
        LBA48  user addressable sectors:  234441648
        device size with M = 1024*1024:      114473 MBytes
        device size with M = 1000*1000:      120034 MBytes (120 GB)
        Physical sector size = 4096 bytes
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 1
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        DMA: mdma0 mdma1 *mdma2 udma0 udma1 udma2 udma3 udma4 udma5
                Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
                Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    READ BUFFER cmd
           *    WRITE BUFFER cmd
           *    Look-ahead
           *    Write cache
           *    Power Management feature set
                Security Mode feature set
                SMART feature set
           *    FLUSH CACHE EXT cmd
           *    Mandatory FLUSH CACHE cmd
           *    48-bit Address feature set
           *    DOWNLOAD MICROCODE cmd
           *    General Purpose Logging feature set
           *    SMART error logging
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
        70min for SECURITY ERASE UNIT.
HW reset results:
        CBLID- above Vih
        Device num = 0
Checksum: correct
[root at Elphel353 /]853#

> 2. So, with the "fdisk -l" saying "Disk /dev/hda doesn't contain a valid
> partition table". Does it show the hda1 partition from the "fdisk" itself? I
> mean - you saw that the partition was created and was saved (at least the
> program was saying it had saved it), right?
>
i start with

fdisk /dev/hda

it says there is no partition.

i tried with command   o    (write a dos partition)

Command (m for help): o
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.


The number of cylinders for this disk is set to 1824.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

then create the partition like before,
look at the shell, i think im doing right:

Command (m for help): p

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 1824 cylinders, total 29305206 sectors
Units = sectors of 1 * 4096 = 4096 bytes

   Device Boot      Start         End      1K-Blocks  Id System
/dev/hda1               1    29305205      117220820  83 Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table
[root at Elphel353 /root]867# fdisk /dev/hda1
fdisk: can't open /dev/hda1
[root at Elphel353 /root]867# mkfs.ext2 /dev/hda1 -m0 -T largefile4
mke2fs 1.38 (30-Jun-2005)
mkfs.ext2: Could not determine if /dev/hda1 is mounted

Could not determine filesystem size

> 3.
>>
>> [root at Elphel353 /var]853# mkfs.ext2 /dev/hda1 /mnt/0
>> mke2fs 1.38 (30-Jun-2005)
>> Could not invalid blocks count - /mnt/0
>
>
> That's an incorrect command (no need for "/mnt/0"). But first - try running
> "fsck /dev/hda1". And even before that we need to have a valid partition
> table.


[root at Elphel353 /root]867# fsck /dev/hda1
fsck 1.38 (30-Jun-2005)
e2fsck 1.38 (30-Jun-2005)
fsck.ext2: while determining whether /dev/hda1 is mounted.
fsck.ext2: while trying to open /dev/hda1
Possibly non-existent or swap device?
fsck.ext2:


[root at Elphel353 /root]867# fsck /dev/hda
fsck 1.38 (30-Jun-2005)
e2fsck 1.38 (30-Jun-2005)
fsck.ext2: while determining whether /dev/hda is mounted.
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext2: while trying to open /dev/hda

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

fsck.ext2:



>
> Regards,
> Oleg
>
> On 2 February 2012 17:19, Carlos Padial <palidoestudio2 at gmail.com> wrote:
>>
>> # fdisk -l
>>
>> Note: sector size is 4096 (not 512)
>>
>> Disk /dev/hda: 120.0 GB, 120034123776 bytes
>> 255 heads, 63 sectors/track, 1824 cylinders
>> Units = cylinders of 16065 * 4096 = 65802240 bytes
>>
>> Disk /dev/hda doesn't contain a valid partition table
>>
>> # hdparm -l /dev/hda
>>
>> hdparm: invalid option -- l
>>
>> /dev/hda:
>>
>> # dmesg
>>
>> Linux version 2.6.19 (oleg at eyesisboxus) (gcc version 3.2.1 Axis
>> release R64/1.64) #2 Sun Jan 15 18:43:42 MST 2012
>> Setting up paging and the MMU.
>> On node 0 totalpages: 8192
>>  DMA zone: 32 pages used for memmap
>>  DMA zone: 0 pages reserved
>>  DMA zone: 8160 pages, LIFO batch:0
>>  Normal zone: 0 pages used for memmap
>> Linux/CRISv32 port on ETRAX FS (C) 2003, 2004 Axis Communications AB
>> Built 1 zonelists.  Total pages: 8160
>> Kernel command line: root=/dev/mtdblock3 init=/linuxrc rootfstype=jffs2
>> PID hash table entries: 256 (order: 8, 1024 bytes)
>> Dentry cache hash table entries: 8192 (order: 2, 32768 bytes)
>> Inode-cache hash table entries: 4096 (order: 1, 16384 bytes)
>> Memory: 40304k/65536k available (1744k kernel code, 25232k reserved,
>> 622k data, 72k init)
>> Calibrating delay loop... 199.47 BogoMIPS (lpj=997376)
>> Mount-cache hash table entries: 1024
>> NET: Registered protocol family 16
>> SCSI subsystem initialized
>> usbcore: registered new interface driver usbfs
>> usbcore: registered new interface driver hub
>> usbcore: registered new device driver usb
>> NET: Registered protocol family 2
>> IP route cache hash table entries: 512 (order: -2, 2048 bytes)
>> TCP established hash table entries: 2048 (order: 0, 8192 bytes)
>> TCP bind hash table entries: 1024 (order: -1, 4096 bytes)
>> TCP: Hash tables configured (established 2048 bind 1024)
>> TCP reno registered
>> Check hardware configuration of Elphel 353 camera
>> Elphel 10349/10369 IO extension board is present
>> fast_timer_init()
>> JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
>> io scheduler noop registered (default)
>> Serial: CRISv32 driver $Revision: 1.78 $ <6>ttyS0 at I/O 0xb0026000
>> (irq = 68) is a CRISv32
>> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
>> PPP generic driver version 2.4.2
>> ETRAX FS 10/100MBit ethernet v0.01 (c) 2003 Axis Communications AB
>> eth0: changed MAC to 00:40:8C:CD:00:00
>> Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
>> ide: Assuming 50MHz system bus speed for PIO modes; override with
>> idebus=xx
>> ide: ETRAX FS built-in ATA DMA controller
>> cris_ide_init()
>> Probing IDE interface ide0...
>> hda: UOSHIBA MK1231GAM ! ! ! ! ! ! ! ! ! ! !, ATA DISK drive
>> Physical sector 4096 bytes
>> Updating sector size to match that of a hard drive: 4096
>> ide0 at 0x10000000-0x10000007,0x2c000000 on irq 65
>> hda: max request size: 128KiB
>> hda: 234441648 sectors (120034 MB) w/128KiB Cache, CHS=16383/255/63,
>> (U)DMA
>> Skipping WIN_SPECIFY for large sectors drive, it is useless here and
>> likely not supported
>> Skipping WIN_SPECIFY for large sectors drive, it is useless here and
>> likely not supported
>> hda: cache flushes supported
>>  hda: hda1
>> Initializing USB Mass Storage driver...
>> usbcore: registered new interface driver usb-storage
>> USB Mass Storage support registered.
>> usbcore: registered new interface driver usbserial
>> drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
>> usbcore: registered new interface driver usbserial_generic
>> drivers/usb/serial/usb-serial.c: USB Serial Driver core
>> drivers/usb/serial/usb-serial.c: USB Serial support registered for
>> Belkin / Peracom / GoHubs USB Serial Adapter
>> usbcore: registered new interface driver belkin
>> drivers/usb/serial/belkin_sa.c: USB Belkin Serial converter driver v1.2
>> drivers/usb/serial/usb-serial.c: USB Serial support registered for cp2101
>> usbcore: registered new interface driver cp2101
>> drivers/usb/serial/cp2101.c: Silicon Labs CP2101/CP2102 RS232 serial
>> adaptor driver v0.07
>> drivers/usb/serial/usb-serial.c: USB Serial support registered for
>> Garmin GPS usb/tty
>> usbcore: registered new interface driver garmin_gps
>> drivers/usb/serial/garmin_gps.c: garmin gps driver v0.28
>> drivers/usb/serial/usb-serial.c: USB Serial support registered for MCT
>> U232
>> usbcore: registered new interface driver mct_u232
>> drivers/usb/serial/mct_u232.c: Magic Control Technology USB-RS232
>> converter driver z2.0
>> drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
>> usbcore: registered new interface driver pl2303
>> drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
>> ETRAX FS stream co-processor driver v0.01, (c) 2003 Axis Communications AB
>> stream co-processor: init done.
>> axisflashmap: ...
>> NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND
>> 128MiB 3,3V 8-bit)
>> Additional Info: ID byte3=0x0, byte4=0x1d
>> Bad block table found at page 65472, version 0x01
>> Bad block table found at page 65408, version 0x01
>> Flash is rated 30 ns, modifying bif_core_rw_grp3: old=0x6300483,
>> new=0x6300001
>> NAND 128MiB 3,3V 8-bit: 0x08000000 bytes of NAND flash memory.
>> axisflashmap: Set to boot from NAND flash, making NAND flash primary
>> device.
>> axisflashmap: flash read 512 bytes at 0x00040000, data: 00 b0 05 f0 25 ff
>> ed 9c
>> axisflashmap: partition table offset 10, data: ef be 84 00 12 0f 00 00
>> axisflashmap: Found a valid partition table at 0xc03019ae-0xc0301a3a.
>> offset == 0x00040000, size == 0x007C0000
>> offset == 0x00800000, size == 0x01800000
>> offset == 0x02000000, size == 0x05000000
>> offset == 0x07000000, size == 0x00C00000
>> Creating 1 MTD partitions on "NAND 128MiB 3,3V 8-bit":
>> 0x00000000-0x08000000 : "main"
>> Creating 1 MTD partitions on "NAND 128MiB 3,3V 8-bit":
>> 0x00000000-0x00040000 : "part0"
>> Creating 1 MTD partitions on "NAND 128MiB 3,3V 8-bit":
>> 0x00040000-0x00800000 : "part1"
>> Creating 1 MTD partitions on "NAND 128MiB 3,3V 8-bit":
>> 0x00800000-0x02000000 : "part2"
>> Creating 1 MTD partitions on "NAND 128MiB 3,3V 8-bit":
>> 0x02000000-0x07000000 : "part3"
>> Creating 1 MTD partitions on "NAND 128MiB 3,3V 8-bit":
>> 0x07000000-0x07c00000 : "part4"
>> ETRAX FS GPIO driver v2.5, (c) 2003-2006 Axis Communications AB
>> Elphel (R) model 353 FPGA (Xilinx (R) XC3S1200E) configuration driver -
>> 132
>> Elphel (R) model 353 system clocks (PLL frequency synth.) driver - 133
>> fpga_control- 129
>> arch/cris/arch-v32/drivers/elphel/framepars.c:390:initGlobalPars
>> GLOBALPARS(G_DEBUG)=0
>> arch/cris/arch-v32/drivers/elphel/framepars.c:420:initMultiPars
>> GLOBALPARS(G_MULTI_NUM)=0
>> Elphel (R) Model 353 Frame Parameters device driver - 130
>> Elphel FPGA interrupts initialized
>> Initializing DMA registers for EXTDMA3 - Elphel (R) Model 353 Camera
>> Driver - 126
>> Elphel (R) model 353 i2c character device driver - 134, 2 channels
>> Raw image access driver- 131
>> Elphel (R) Model 353 video buffer device driver- 135
>> Elphel (R) model 353 Exif device driver - 125
>> Starting Elphel (R) Model 353 Gamma Tables device driver - 137
>> Elphel (R) Model 353 Gamma Tables device driver - 137
>> Elphel (R) Model 353 Histograms device driver
>> imu_logger- 141
>> TCP cubic registered
>> NET: Registered protocol family 1
>> NET: Registered protocol family 17
>> VFS: Mounted root (jffs2 filesystem) readonly.
>> Freeing unused kernel memory: 72k freed
>> Empty flash at 0x00b7e238 ends at 0x00b7e800
>> Empty flash at 0x01b46038 ends at 0x01b46800
>> Empty flash at 0x01b5e544 ends at 0x01b5e800
>> Empty flash at 0x03369860 ends at 0x0336a000
>> eth0: changed MAC to 00:0E:64:08:19:B0
>> eth0: changed MAC to 00:0E:64:08:19:B0
>> arch/cris/arch-v32/drivers/elphel/framepars.c:390:initGlobalPars
>> GLOBALPARS(G_DEBUG)=0
>> initSequencers:resetting both sequencers
>> arch/cris/arch-v32/drivers/elphel/framepars.c:420:initMultiPars
>> GLOBALPARS(G_MULTI_NUM)=0
>> sensor clock set to 20000000
>> removing MRST from the sensor
>> Found MT9P001 2592x1944 sensor, chip ID=1801
>> trying MT9P001
>> Resetting MT9X001 sensor
>> Reading sensor registers to the shadows:
>> Initializing MT9X001 registers with default values:
>> Starting hardware sequencers
>> ETRAX FS IOP USB Host Controller version 1.10 (c) 2004, 2005, 2006
>>  Axis Communications AB
>> crisv32_hc crisv32_hc.0: ETRAX FS IOP USB Host Controller
>> crisv32_hc crisv32_hc.0: new USB bus registered, assigned bus number 1
>> crisv32_hc crisv32_hc.0: irq 51, io base 0x00000000
>> usb usb1: configuration #1 chosen from 1 choice
>> hub 1-0:1.0: USB hub found
>> hub 1-0:1.0: 1 port detected
>> crisv32_hc crisv32_hc.0: ETRAX FS IOP USB Host Controller
>> usb 1-1: new full speed USB device using crisv32_hc and address 2
>> usb 1-1: configuration #1 chosen from 1 choice
>> hub 1-1:1.0: USB hub found
>> hub 1-1:1.0: 4 ports detected
>> usbcore: registered new interface driver snd-usb-audio
>> usbcore: registered new interface driver snd-usb-caiaq
>> [root at Elphel353 /var]853#
>>
>> i rebooted the camera and repeat the process:
>>
>> [root at Elphel353 /var]853# mkfs.ext2 /dev/hda1 /mnt/0
>> mke2fs 1.38 (30-Jun-2005)
>>
>> Could not invalid blocks count - /mnt/0
>>
>>
>>
>>
>> > Could you recall what happened before camogm stopped recognizing the hdd
>> > ?
>> >
>> > Regards,
>> > Oleg
>> >
>> > On 2 February 2012 16:36, Carlos Padial <palidoestudio2 at gmail.com>
>> > wrote:
>> >>
>> >> ok, i follow the wiki again and post you what happens
>> >>
>> >> Command (m for help): p
>> >>
>> >> Disk /dev/hda: 120.0 GB, 120034123776 bytes
>> >> 255 heads, 63 sectors/track, 1824 cylinders, total 29305206 sectors
>> >> Units = sectors of 1 * 4096 = 4096 bytes
>> >>
>> >>   Device Boot      Start         End      1K-Blocks  Id System
>> >>
>> >> Command (m for help): n
>> >> Command action
>> >>   e   extended
>> >>   p   primary partition (1-4)
>> >> p
>> >> Partition number (1-4): 1
>> >> First sector (1-29305205, default 1): Using default value 1
>> >> Last sector or +size or +sizeM or +sizeK (1-29305205, default
>> >> 29305205): Using default value 29305205
>> >>
>> >> Command (m for help): p
>> >>
>> >> Disk /dev/hda: 120.0 GB, 120034123776 bytes
>> >> 255 heads, 63 sectors/track, 1824 cylinders, total 29305206 sectors
>> >> Units = sectors of 1 * 4096 = 4096 bytes
>> >>
>> >>   Device Boot      Start         End      1K-Blocks  Id System
>> >> /dev/hda1               1    29305205      117220820  83 Linux
>> >>
>> >> Command (m for help): w
>> >> The partition table has been altered!
>> >>
>> >> Calling ioctl() to re-read partition table
>> >> [root at Elphel353 /]1089# mkfs.ext2 /dev/hda1 -m0 -T largefile4
>> >> mke2fs 1.38 (30-Jun-2005)
>> >> mkfs.ext2: Could not determine if /dev/hda1 is mounted
>> >>
>> >> Could not determine filesystem size
>> >>
>> >> ?
>> >>
>> >> and if i do cat /proc/partitions again hda1 isn't there
>> >>
>> >> _______________________________________________
>> >> Support-list mailing list
>> >> Support-list at support.elphel.com
>> >>
>> >> http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
>> >
>> >
>>
>>
>>
>> --
>> Carlos Padial
>> surreal.asturnazari.es
>>
>> _______________________________________________
>> Support-list mailing list
>> Support-list at support.elphel.com
>> http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
>
>



-- 
Carlos Padial
surreal.asturnazari.es




More information about the Support-list mailing list