LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   DamnSmallLinux (https://www.linuxquestions.org/questions/damnsmalllinux-42/)
-   -   cfdisk fatal error: cannot open disk drive (on serial ata) (https://www.linuxquestions.org/questions/damnsmalllinux-42/cfdisk-fatal-error-cannot-open-disk-drive-on-serial-ata-672314/)

kuser:) 09-25-2008 10:05 AM

cfdisk fatal error: cannot open disk drive (on serial ata)
 
Hi,
I successfully installed Damn Small Linux 4.2.5 on a Dell Dimension 4500 (pretty old) from the live CD. This computer has a parallel ata interface (the standard ultra ata one, predecessor of the serial ata).
The commands I used to partition the drive were:
Code:

sudo -s
cfdisk /dev/hda

and they worked fine.

I tried the very same CD to install it on my HP Pavilion a1330n, which has a serial ATA type hard disk drive, and:
Code:

sudo -s
works fine, but the
Code:

cfdisk /dev/sda
gives a blank screen with this message:
"FATAL ERROR: Cannot open disk drive
Press any key to exit cfdisk"

Does Damn Small Linux support serial ata, and how do I install it on such a disk?

Thanks,
K

PTrenholme 09-25-2008 01:06 PM

Did you note the "BUGS" comment at the bottom of the man page that cfdisk cannot handle multiple disks? Try unplugging all drives except the one you want to partition.

Alternatively, either parted or fdisk should work from a command line. (Not being a DSL user, I don't know what you'd need to do to get those installed, but fdisk is part of the util-linux-ng GNU package that contains cfdisk, so it's likely that you already have fdisk available.)

roystonlodge 09-26-2008 10:00 PM

Whenever I've had that problem I reboot from the LiveCD and type install at the boot prompt, which boots into a menu instead of booting into X. Selecting cfdisk from that menu usually allows me access to my drives.

kuser:) 09-27-2008 12:18 PM

I think my HDD is damaged - the serial ATA one :(. I need to use a weird combination of steps to turn it on. Most of the time it looks like this:
1. I power on my PC, and I can only see the power and the HDD leds burning, but it won't boot.
2. I press and hold the power button for a few seconds until the optical drives leds blink, at which moment I release the power button, and the PC reboots, and starts normally (if I hold it a bit longer, it shuts down).
3. Sometimes, I need to power it off before step 2 works.

This started to happen since I accidentally struck my PC when it was turned on as I was taking a sit at my desk.

How should I diagnose my HDD?
It's a Pavilion a1330n.

I can install for example Ubuntu without any problems, but the strange way of powering on the PC persists...

PTrenholme 09-27-2008 06:05 PM

I recently added a second serial ata drive to my laptop and noticed that GRUB was unable to access the drive for boot. (Since it was a second drive, I didn't need it to be bootable.) I have Ubuntu (Hardy), and Vista (which was pre-installed) on the first drive, and Fedora 9 on the second. When I boot Fedora 9 (using GRUB, the kernel, and the initial RAM disk image, from the first drive), I get about a page of error messages about the second drive being "frozen" until the kernel gives up and resets the disk transfer rate from 3Gb/sec to 1.5Gb/sec. After that, everything works fine.

The point in all that is that perhaps your problem is just that your drive is slower than what it's telling your BIOS it can handle.

Cool Javelin 11-21-2008 11:08 PM

OK, I was having this problem on a simple IDE drive. Turns out it was a permissions issue.

Try booting in using the DSL live CD, and then go to a terminal (A little icon on the application bar, not in the menu,) and type...

sudo cfdisk

Worked for me, Good luck.

More....

I had troubles when I had 2 drives and a logical volume manager (LVM) spanning across the 2 drives.

One failed, (not the boot one (hda)) then DOS fdisk couldn't remove the partitions. Also, I couldn't get DSL cfdisk to do it either (I forgot to do the sudo part then.)

I had to start an install using xubuntu and make it repartition the drive, then I could boot DOS and FDISK could then delete that and recreate another. Turns out CFDISK still couldn't do the work then I remembered the sudo thing. (several hours wasted on a simple thing.)

cfdisk should suggest the permissions issue to remind us poor forgetful humans.

Mark.


All times are GMT -5. The time now is 11:09 PM.