Results 1 to 9 of 9

Thread: Not able to read files from hda1...

  1. #1
    Junior Member
    Join Date
    Jun 2006
    Posts
    5

    Not able to read files from hda1...

    I am brand new to the world of Linux, and I am hoping that someone can help me resolve a problem I am having while running knoppix (v4.0) from a live_cd. When I try to boot from the CD without using any "cheats" the process hangs when it gets to 'Scanning for Harddisk partitions and creating /etc/fstab...'. I am able to work around this problem by using 'nofstab', but once everything is up and running, I am not able to find any /hd* folders on the desktop. I've tried to mount the drive manually but have not had any luck so far. The computer I am using is an old Toshiba laptop with windows XP (one hard drive single partition), so I know I can not write to the hard drive, but I would like to be able to read from it. Any advice would be appreciated.

    Thanks!

  2. #2
    Senior Member registered user
    Join Date
    Feb 2005
    Location
    Saint Louis, MO, USA
    Posts
    376

    Re: Not able to read files from hda1...

    Welcome to Knoppix, merck4819,
    Quote Originally Posted by merck4819
    When I try to boot from the CD without using any "cheats" the process hangs when it gets to 'Scanning for Harddisk partitions and creating /etc/fstab...'.
    Some questions:
    - What version of Knoppix are you using? (4.0.2?)
    - Have you looked at the Tips&Tricks section of the Cheatcodes page? My guess is that you might want to try the failsafe cheatcode.
    - If yes, what boot options did you try and how far did you get in the boot process?
    - Are you getting any error messages and, if yes, what exactly do they say?

    Please post back and let us know how things go.

    Regards,
    - Robert
    http://www.cwelug.org

  3. #3
    Junior Member
    Join Date
    Jun 2006
    Posts
    5

    Re: Not able to read files from hda1...

    Thank you for your reply. To answer your questions:

    -Yes, I am using v4.0.2
    -I tried all of the cheatcodes in the Tips&Tricks sections with the following results:
    boot: knoppix vga=0 - hung on following statement:
    Scanning for Harddisk partitions and creating /etc/fstab...
    boot: knoppix acpi=off pnpbios=off noapic noapm
    same results as above
    boot: failsafe debug -b 3 - I was able to get through boot process and startup, but still was not able to see hard drive. The only things present on desktop are CD-ROM, Floppy, KNOPPIX.desktop, and trash.desktop icons. I am able to get the same results by booting with the 'nofstab' cheatcode (without losing all of the other hardware functionality).

    -I haven't gotten any error messages at all except for one regarding a sound card driver which I don't think would have any affect on this issue.

    Any other suggestions on how I might be able to find and mount the hard drive would be greatly appreciated.

    Thanks again!

  4. #4
    Senior Member registered user
    Join Date
    Feb 2005
    Location
    Saint Louis, MO, USA
    Posts
    376

    Re: Not able to read files from hda1...

    Quote Originally Posted by merck4819
    boot: failsafe debug -b 3
    I was able to get through boot process and startup, but still was not able to see hard drive. The only things present on desktop are CD-ROM, Floppy, KNOPPIX.desktop, and trash.desktop icons. I am able to get the same results by booting with the 'nofstab' cheatcode (without losing all of the other hardware functionality).
    How did you get a desktop? The -b and the 3 at the boot prompt should have droped you into emergency mode and a virtual text console, respectively.

    Boot to a virtual text console with the following: boot: failsafe 3. Then type the following code:

    true ; ( set -x
    cat /proc/cmdline
    cat /proc/partitions
    fdisk -l /dev/hd?
    ) >& output.txt

    Please post the contents of output.txt here.

    Regards,
    - Robert
    http://www.cwelug.org

  5. #5
    Junior Member
    Join Date
    Jun 2006
    Posts
    5

    Re: Not able to read files from hda1...

    It did drop me into emergency mode with a virtual text console. I was able to get to a desktop by typing init 5 one the boot process was complete.

    Entering the command below:
    true ; ( set -x
    cat /proc/cmdline
    cat /proc/partitions
    fdisk -l /dev/hd?
    ) >& output.txt
    from the text console after booting with failsafe -3 produced an empty (0byte) file.

  6. #6
    Senior Member registered user
    Join Date
    Feb 2005
    Location
    Saint Louis, MO, USA
    Posts
    376

    Re: Not able to read files from hda1...

    Quote Originally Posted by merck4819
    It did drop me into emergency mode with a virtual text console. I was able to get to a desktop by typing init 5 one the boot process was complete.
    Fair enough. It just caught me off-guard since a desktop is not what is expected when booting with "-b 3".
    Entering the command below:
    true ; ( set -x
    cat /proc/cmdline
    cat /proc/partitions
    fdisk -l /dev/hd?
    ) >& output.txt
    from the text console after booting with failsafe -3 produced an empty (0byte) file.
    Now that is also unexpected. Here's what I get when I type those commands on my machine:
    Code:
    root@tty1[/]# true ; ( set -x                                                   
    > cat /proc/cmdline                                                             
    > cat /proc/partitions                                                          
    > fdisk -l /dev/hd?                                                             
    > ) >& output.txt                                                               
    root@tty1[/]# cat output.txt                                                    
    + cat /proc/cmdline                                                             
    ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=0 nomce dma fromhd=
    /dev/hda1 noeject noprompt 3                                                    
    + cat /proc/partitions                                                          
    major minor  #blocks  name                                                      
                                                                                    
       3     0    1048320 hda                                                       
       3     1    1048288 hda1                                                      
     240     0    1942016 cloop0                                                    
    + fdisk -l /dev/hda /dev/hdb /dev/hdc /dev/hdd /dev/hde /dev/hdf /dev/hdg /dev/h
    dh                                                                              
                                                                                    
    Disk /dev/hda: 1073 MB, 1073479680 bytes                                        
    16 heads, 63 sectors/track, 2080 cylinders                                      
    Units = cylinders of 1008 * 512 = 516096 bytes                                  
                                                                                    
       Device Boot      Start         End      Blocks   Id  System                  
    /dev/hda1   *           1        2080     1048288+  83  Linux                   
    root@tty1[/]#
    Are you sure you didn't mistype something? What happens if you just type 'cat /proc/cmdline'?

    Regards,
    - Robert
    http://www.cwelug.org

  7. #7
    Junior Member
    Join Date
    Jun 2006
    Posts
    5

    Re: Not able to read files from hda1...

    Thank you for the quick response. After trying to run that command again, I realized that it was not completing successfully, so I ran it piece by piece. the results are below (please excuse the formatting as I am sitting at a different XP desktop). Notice that the results of the 3rd command are not complete. When executing them one at a time, the first 2 worked successfully, but the 3rd just hung after a couple of seconds and didn't do anything else. The text pasted below was the only thing in the file when it froze:

    + cat /proc/cmdline
    ramdisk_size=100000 init=/etc/init lang=us vga=normal atapicd nosound noapic noacpi pnpbios=off acpi=off nofstab noscsi nodma noapm nousb nopcmcia nofirewire noagp nomce nodhcp xmodule=vesa initrd=minirt.gz BOOT_IMAGE=knoppix BOOT_IMAGE=linux 3


    + cat /proc/partitions
    major minor #blocks name

    3 0 19535040 hda
    240 0 1942016 cloop0

    + fdisk -l /dev/hda /dev/hdb /dev/hdc /dev/hdd /dev/hde /dev/hdf /dev/hdg /dev/hdh

  8. #8
    Senior Member registered user
    Join Date
    Feb 2005
    Location
    Saint Louis, MO, USA
    Posts
    376

    Re: Not able to read files from hda1...

    Quote Originally Posted by merck4819
    + cat /proc/cmdline
    ramdisk_size=100000 init=/etc/init lang=us vga=normal atapicd nosound noapic noacpi pnpbios=off acpi=off nofstab noscsi nodma noapm nousb nopcmcia nofirewire noagp nomce nodhcp xmodule=vesa initrd=minirt.gz BOOT_IMAGE=knoppix BOOT_IMAGE=linux 3
    Good. This shows you are booting with failsafe.

    + cat /proc/partitions
    major minor #blocks name

    3 0 19535040 hda
    240 0 1942016 cloop0
    Good. Linux sees the drive as a ~20 GB drive on hda.

    + fdisk -l /dev/hda /dev/hdb /dev/hdc /dev/hdd /dev/hde /dev/hdf /dev/hdg /dev/hdh
    Does linux hang completely at this point or are you still able to switch to another virtual console and type commands?

    I'm guessing that knoppix has difficulty with either your IDE channel or your drive.

    Boot again with boot: failsafe 3 and they type the following:

    Code:
     ( set -x 
    dmesg
    hdparm -I /dev/hda
    ) >& output.txt
    Please post the contents of output.txt here if anything is given.

    Here's another thing to try. In virtual console 1 (VC-1), type this:

    Code:
    while : ; do dmesg -c ; sleep 1 ; done
    In virtual console 2 (VC-2), type this:

    Code:
    sleep 5 ; fdisk -l /dev/fd0 /dev/hda
    Switch back to VC-1. You should see an error message regarding "dev fd0" and then possibly about hda. Post any error messages about hda. If nothing shows up, switch back to VC-2. Anything on the screen?

    BTW, to switch between virtual consoles type Ctrl-Alt-F1 for VC-1, Ctrl-Alt-F2 for VC-2, etc.

    Regards,
    - Robert
    http://www.cwelug.org

  9. #9
    Junior Member
    Join Date
    Jun 2006
    Posts
    5

    Re: Not able to read files from hda1...

    I apologize for not replying back with the results sooner, but I was away on business and did not have access to the laptop. Thank you for all of your help so far, but I think we can terminate this thread. I only wanted to access a few files off of the hard drive, and after copying them out to a network folder I was able to open them without a problem. Since Knoppix seems to be working fine with all of the other hardware on the machine, I don't think I need any more help at this time.

    thanks again!

Similar Threads

  1. can't read files in windows
    By thedave360 in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 02-27-2008, 04:35 AM
  2. Need Knoppix 3.7 Files that I cannot read off CD
    By macsmith in forum Hdd Install / Debian / Apt
    Replies: 7
    Last Post: 02-10-2005, 09:51 AM
  3. What open files like hda1, hda3 and hda5 by default?
    By rrfish72 in forum General Support
    Replies: 2
    Last Post: 08-10-2004, 04:36 AM
  4. no files in hda1, hdb1
    By neotheonlyone in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 06-30-2003, 03:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


IBM System X3850-X5 Server w/4x Intel  Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD picture

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD

$1299.99



Unused IBM 09P0037 MAINBOARD For  RS/6000 7044-170 P-Series picture

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series

$375.00



IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM

$179.99



IBM EMC 091-000-091 17 Inch Rackmount LCD Keyboard KVM Console 03N7012 picture

IBM EMC 091-000-091 17 Inch Rackmount LCD Keyboard KVM Console 03N7012

$109.99



IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU picture

IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU

$999.99



IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1) picture

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)

$150.00



IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES picture

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES

$110.30



IBM 4262 SYSTEM x3200 Tower - HDD Wiped, NO OS picture

IBM 4262 SYSTEM x3200 Tower - HDD Wiped, NO OS

$80.00



IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon  E5620 picture

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620

$199.99



Lot of 3 IBM 00JY196 ServeRAID M1210 PCI Express SAS SATA Storage Controller picture

Lot of 3 IBM 00JY196 ServeRAID M1210 PCI Express SAS SATA Storage Controller

$68.99