LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-18-2006, 07:44 PM   #1
pwaller
LQ Newbie
 
Registered: Jul 2006
Posts: 9

Rep: Reputation: 0
Magic: The disappearing hard drive trick


I'm running the latest Ubuntu (6.06, 2.6.15-23-386).

The livecd boots fine, installing is fine. However, when I reboot and try to boot from hard disk, it isn't there.

Here is what I think is the relevant stuff from dmesg. (the full thing can be found at ht-tp://misc.randomphp.net/dmesgdat). The output to lspci can be found at ht-tp://misc.randomphp.net/lspcidat.

Code:
[4294672.063000] pata_get_dev_handle: dev_handle: 0xdfff9ca0, parent_handle: 0xc20d7ea0
[4294672.063000] pata_get_dev_handle: for dev=0x1f.2, addr=0x1f0002, parent=0xdff86a00, *handle=0xdfff9ca0
[4294672.070000] Driver 'sd' needs updating - please use bus_type methods
[4294672.074000] SCSI device sda: 195371568 512-byte hdwr sectors (100030 MB)
[4294672.074000] SCSI device sda: drive cache: write back
[4294672.075000] SCSI device sda: 195371568 512-byte hdwr sectors (100030 MB)
[4294672.076000] SCSI device sda: drive cache: write back
[4294672.076000]  sda:<3>ata1: command 0x25 timeout, stat 0xd0 host_stat 0x24
[4294702.076000] ata1: translated ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
[4294702.076000] ata1: status=0xd0 { Busy }
[4294702.076000] sd 0:0:0:0: SCSI error: return code = 0x8000002
[4294702.076000] sda: Current: sense key: Aborted Command
[4294702.076000]     Additional sense: Scsi parity error
[4294702.076000] end_request: I/O error, dev sda, sector 0
[4294702.076000] Buffer I/O error on device sda, logical block 0
[4294705.299000]  unable to read partition table
[4294705.299000] sd 0:0:0:0: Attached scsi disk sda
This is curious, because if I reboot the livecd, `ls /dev/sd*` just shows /dev/sda (not /dev/sda1, my root partition). Going into gparted, it correctly shows the partitions however with an exclaimation mark. If I delete and recreate said partitions, I can mount, access them and write and read files to and from them. ls correctly lists /dev/sda1. So it seems gparted is doing something when it performs the reformat/repartition that correctly sets up access.

As soon as I reboot, it all becomes inaccessable, I haven't found a way of getting to them yet.

I have consulted quite a few people on the subject and they seem to think this behaviour is very strange. I have actually submitted a bug report to ht-tps://launchpad.net/distros/ubuntu/+bug/53385 - this may contain more information. Does anyone have any ideas? Thanks in advance.

(remove the '-'s from the http links because it wouldn't let me post them until I've made three other posts..)

- Peter.
 
Old 07-19-2006, 01:37 AM   #2
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
Hi, Peter.

This is, indeed, a very strange problem. What boggles me a bit (and makes me think that it could be a bug in Ubuntu's implementation of parted/gparted, or perhaps fdisk) is that when you reboot, the partition goes away. One way to rule out a software problem is to try it with different software.

Download Knoppix from www.knoppix.org and burn it to a CD. (Here's hoping that you have another computer you can do this with.) Boot from the Knoppix CD and use QTParted (the KDE version of GParted), or just plain parted (from the command line, as root) to set up your partitions on /dev/sda. Copy some stuff to the partition(s) you create and reboot, logging once again into Knoppix. Now try to access the files you put on the partition(s) you created. If it works, chances are that it's a problem somewhere in Ubuntu (and you should post all this, including what you did to make it work, on the bug tracker). If it doesn't work, it's probably a hardware problem.

If knoppix has trouble seeing your hard drive (unlikely), try looking at the boot options when you first start up with the Knoppix disk in the drive. There may be something in there about SCSI or SATA that you should use (assuming that you're using a SCSI or SATA drive).

If you can get the partitions to "stay put" using Knoppix, there's still hope for installing Ubuntu: partition them in Knoppix, and then just tell the Ubuntu installer where you want the mount points to be.

Let me know how it goes.

--Dane
 
Old 07-19-2006, 02:31 AM   #3
pwaller
LQ Newbie
 
Registered: Jul 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Okay, trying this. Gonna take an hour or so to download.

[edit]

It didn't make a difference, but while doing the download I found qtparted under ubuntu, and tried the same process as described above. The knoppix ISO should be done in about 1 minute, I'll probably be trying to install it over the next half hour.

Last edited by pwaller; 07-19-2006 at 03:34 AM.
 
Old 07-19-2006, 04:39 AM   #4
pwaller
LQ Newbie
 
Registered: Jul 2006
Posts: 9

Original Poster
Rep: Reputation: 0
well, I just successfully booted knoppix and it found and automatically mounted /dev/sda1, and the files I created from within the Ubuntu livecd were there.

So does this confirm it to be a Ubuntu bug, is there anything I can do about it?

Is it useful for the Ubuntu bug tracking list to know about this?

- Peter
 
Old 07-19-2006, 05:53 PM   #5
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
Hi, Peter.

At least it's not a hardware problem. :-)

I would definitely report it to the Ubuntu bug tracker, including a detailed description of what did and didn't work. It may even be a problem with udev or something like that.

You may, however, be able to find a workaround so that you can get your Ubuntu installation up and running. If you would like to give that a shot, please post the contents of /boot/grub/menu.lst, /boot/grub/device.map, and /etc/fstab on your /dev/sdax partition (where x is the "/" partition that Ubuntu will be using). Note that you must have Ubuntu installed on that drive in order to get these files off of it (although you can use Knoppix to access them).

Alternatively, you can download and install from the Ubuntu Alternate CD. This doesn't boot into a live CD, and has a text-based installer (ncurses), but is capable of doing more stuff (perhaps in a better fashion) that the default Desktop CD.

Have a good one.

--Dane
 
Old 07-20-2006, 08:36 AM   #6
pwaller
LQ Newbie
 
Registered: Jul 2006
Posts: 9

Original Poster
Rep: Reputation: 0
After much, much faffing (I spent almost two days solid on this), I ended up building the lastest kernel from scratch from within Knoppix. This has fixed the problem and I'm now talking to you from my new installation. Whoopie!

Although building a kernel from scratch isn't exactly a satisfactory solution, mind.

I did report this to Launchpad but I doubt they'll do anything about it.

- Pete
 
Old 07-20-2006, 03:21 PM   #7
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
I'm glad you got it working! Ubuntu is a great distro.

Since this is a pretty severe problem from a useability standpoint, I imagine they'll get on it pretty soon. Or maybe not.

Have a good one.

--Dane
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disappearing hard drive Lakota Linux - Hardware 5 01-02-2006 10:03 PM
Can you trick Wine into reading cdrom from hard drive? Dragon 2075 Linux - Newbie 8 09-27-2005 11:56 AM
Disappearing Hard Drive...or...Where Has All My Space Gone? mijenks Linux - General 4 03-07-2004 03:09 PM
Disappearing Hard Drive zuele Linux - Hardware 2 10-28-2003 06:59 AM
my cdrom and its disappearing file trick IceGrill Linux - Hardware 2 12-13-2002 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration