-
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!
-
Senior Member
registered user
Re: Not able to read files from hda1...
Welcome to Knoppix, merck4819,

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
-
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!
-
Senior Member
registered user
Re: Not able to read files from hda1...

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
-
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.
-
Senior Member
registered user
Re: Not able to read files from hda1...

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
-
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
-
Senior Member
registered user
Re: Not able to read files from hda1...

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
-
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
-
By thedave360 in forum MS Windows & New to Linux
Replies: 1
Last Post: 02-27-2008, 04:35 AM
-
By macsmith in forum Hdd Install / Debian / Apt
Replies: 7
Last Post: 02-10-2005, 09:51 AM
-
By rrfish72 in forum General Support
Replies: 2
Last Post: 08-10-2004, 04:36 AM
-
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
-
Forum Rules

2-Bay/4-Bay Hard Drive Enclosure for 3.5"/2.5'' SATA HDD/SSD 10Gbps USB-C 3.2
$75.99

Areca ARC-1882IX-24 (16i4e)24-Port RAID Controller Card w/BBU /HDD Monitor Board
$300.00

Broadcom 9600-24i RAID Controller PCIe Gen 4.1 Tri-Mode NEW 05-50111-01004
$649.99

OWC Mercury Elite Pro 2 Bay RAID Enclosure with USB 3.2 for Dual 3.5 inch HDDs
$87.99

WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5/3.5'' SSD HDD Enclosure
$119.99

Acasis USB 3.2 2 Bay HDD RAID Enclosure for 2.5/3.5" SATA Drives External Array
$55.00

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller
$64.99

Dell PowerEdge HBA330 LP PCI-E 12GBs RAID SAS Controller Adapter J7TNV
$18.95

Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003
$639.69

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD
$265.00