PDA

View Full Version : USB KNOPPIX HARD DRIVE RECOGNITION PROBLEM



d1g1tal_ph3r3t
11-19-2008, 07:11 PM
I am not sure where to post my question but here it goes.

My laptop boots Knoppix from a 1GB usb stick just fine but when I try to access my internal hard drive (/media/sda1 and /media/sda2), it seems to direct me to the contents of my usb stick (/media/sdb4) which is where all of the Knoppix files have been copied to. I would like to have my usb Knoppix automatically recognize and mount any IDE drives such as internal hard drives, internal cd-burners, internal dvd-burners, etc.

Thanks!

Harry Kuhman
11-19-2008, 07:32 PM
... when I try to access my internal hard drive (/media/sda1 and /media/sda2), it seems to direct me to the contents of my usb stick (/media/sdb4)...I would like to have my usb Knoppix automatically recognize and mount any IDE drives.....
Knoppix normally recognized IDE drives just fine. But partitions on IDE drives should be seen as hda1, hda5, hdb1, hgb5 and so on, not as sda1 ... . sda1 is a SATA drive partition or a usb drive (maybe a SCSI partition also), not an IDE drive. Is this related to your USB booting at all? What happens if you boot Knoppix from CD or DVD and not from a flash drive? Are there valid uncorrupted partitions for Knoppix to find? And if these questions don't lead you to the answer, you might want to give specific hardware makes and model numbers.

d1g1tal_ph3r3t
11-20-2008, 12:54 PM
I am not sure if this helps but I have my 1GB Knoppix usb stick partitioned and formatted as a usb/zip. Harry, I read your reply, I am not sure why I am not able to access my internal drive now but I was able to earlier. I was using various mount commands until I seemed to fix my problem and then I issued another mount command and the problem resurfaced. I am about to give up!!!!!

I will boot from a Knoppix cd and see what I find and try to compare some things. I will try to report my findings here later on. Wow, I did not know Linux could be such a pain in the neck to use. I almost want to continue using Windows!!!!

dong99
11-30-2008, 07:31 AM
Hello all, I have similar problem.

I was able to boot Knoppix 5.1.1 from an USB drive, but the internal SATA hard drive was not mounted correctly by Knoppix. Please help.

During boot, Knoppix did recognize USB drive as /dev/sdb, internal SATA drive as /dev/sda. Now the problem: after booted into Knoppix, mounted USB drive become /dev/sda1, which was wrong. My internal SATA drive's 1st partition could not be accessed, since /dev/sda1 pointed to USB drive. But SATA drive's 2nd partition was OK as /dev/sda2. I could not unmount /dev/sda1 since Knoppix thinks it is in use (it is actually USB, so it is in use!).

I guess there is a bug in Knoppix 5.1.1. If there is a work around, please point me to the right direction. Thanks!

chip.ling
12-06-2008, 11:02 PM
I have been using my USB thumb drive to boot knoppix 5.1.1 for almost a year and I don't seems to have any problem at all.

I found the GUI part is a bit confusing to me so I stick to the command line option all the time.

I notice that when I booted up my knoppix from USB, which formatted as USB/ZIP drive format, it is recognized as /dev/sdb4. (zip drive is drive number 4 all the time). The OS recognizes my single internal drive with 2 NTFS partitions as /dev/sda1 and /dev/sda2.

When X-Windows (KDE) started, I noticed that the three icons on the desktop shown up as Hard Disk [sda1], Hard Disk [sda2] and Hard Disk [sdb4]. And I saw a little green arrow on the lower right hand corner at each icon, which suppose to mean mounted.

Then I open a konsole and try to access it


knoppix@Knoppix:~$ cd /media/sda1
knoppix@Knoppix:/media/sda1$ ls -l
total 0

Nothing return. So it is not mounted. Then I mount it manually via command line.


knoppix@Knoppix:/media/sda1$ cd
knoppix@Knoppix:~$ sudo mount -t ntfs /dev/sda1 /media/sda1 -o ro
knoppix@Knoppix:~$ cd /media/sda1
knoppix@Knoppix:/media/sda1$ ls -l

Now I can see my harddisk is mounted as read-only and can access all my data there. I have no problem so far for all my hard disk access. (read or write)

However, one thing I do not understand is the /etc/fstab, I did a snapshot on the /etc/fstab before I mount the sda1 and I did another snapshot after I mount the sda1. I found that both snapshots are identical. Any idea?

To my machine when using the command line, all drives are NOT mounted when it boot up. Not even the USB drive mount point (i.e. /media/sdb4). However, I can access the USB drive via mount point /cdrom.

Knoppix behaves identically as my CD boot up. Just wonder the other two members who have problem did anything special on the USB drive after created it as the boot drive. I follow the exact steps from http://www.knoppix.net/wiki/Bootable_USB_Key to format my USB thumb drive.

My suggestion to this issue is:

Try to boot knoppix from CD instead of USB drive and see how it behave. If it works fine, chances are something went wrong on the USB drive creation and you may want to re-create it again. If the same problem appears with CD boot up, then it is a bug.

Rgds,
Chip

chip.ling
12-07-2008, 09:53 PM
Just got an idea. How about checking your /etc/fstab file, here is what my machine /etc/fstab file looks like:


knoppix@Knoppix:~$ su

root@Knoppix:/ramdisk/home/knoppix# cat /etc/fstab

/proc /proc proc rw,nosuid,nodev,noexec 0 0
/sys /sys sysfs rw,nosuid,nodev,noexec 0 0
/dev/shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
/dev/pts /dev/pts devpts mode=0622 0 0
/dev/fd0 /media/fd0 auto user,noauto,exec,umask=000 0 0
/dev/cdrom /media/cdrom auto user,noauto,exec,ro 0 0
/dev/hdc /media/hdc auto users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/sda1 /media/sda1 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
# Added by KNOPPIX
/dev/sda2 /media/sda2 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
# Added by KNOPPIX
/dev/sdb4 /media/sdb4 vfat noauto,users,exec,umask=000,shortname=winnt,uid=kn oppix,gid=knoppix 0 0


Some explainations:
Column 1 is the device name.
Column 2 is the mount point.
Column 3 is the file system type.
Column 4 is the mount option.
Column 5 is the dump freq
Column 6 is the fsck scan order number.
Each column delimited by space.

Make sure the device name and it's corresponding mount point are correct. If not, manually edit it, save the file and reboot.
i.e. /dev/sda1 should map to /media/sda1 etc.

Some hints: for testing purposes, use "default" in column 4 and use zero for column 5 and column 6.

Rgds,
Chip