Results 1 to 9 of 9

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

Hybrid View

  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
  •  


USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



Lot Of 8 Micron 8GB 2Rx8 PC4-2666V-RE2-11 ECC REG Server Ram MTA18ASF1G72PDZ-2G6 picture

Lot Of 8 Micron 8GB 2Rx8 PC4-2666V-RE2-11 ECC REG Server Ram MTA18ASF1G72PDZ-2G6

$210.00



TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot picture

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot

$573.98



1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot picture

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot

$202.50



Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



(32GB x10) 320 GB Kingston PC4-2933Y DDR4 ECC Registered  (Server) picture

(32GB x10) 320 GB Kingston PC4-2933Y DDR4 ECC Registered (Server)

$1600.00



Dell Memory Module - 64GB - DDR5 - CAMM RAM - 5600MHz 16GX8 picture

Dell Memory Module - 64GB - DDR5 - CAMM RAM - 5600MHz 16GX8

$599.98



USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot picture

USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot

$3.75



5 in 1 Memory Card Reader USB 3.0 OTG Adapter SD Card Reader For iPhone/iPad LOT picture

5 in 1 Memory Card Reader USB 3.0 OTG Adapter SD Card Reader For iPhone/iPad LOT

$9.99



Micron MTA18ASF2G72XF1Z-2G9WP1ABVGD 16GB 1Rx4 NN4-2933Y DDR4 ECC NVDIMM picture

Micron MTA18ASF2G72XF1Z-2G9WP1ABVGD 16GB 1Rx4 NN4-2933Y DDR4 ECC NVDIMM

$74.50