LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   /dev/sda1 is not a valid block device (https://www.linuxquestions.org/questions/linux-general-1/dev-sda1-is-not-a-valid-block-device-7646/)

adenardo 10-17-2001 02:38 PM

/dev/sda1 is not a valid block device
 
RH 7.1 with kernel 2.4.7 i686

after 73 days of uptime, my system froze. I telnet'd into it from another box on my LAN and su'd to root and issued a 'shutdown -r now'.

during the reboot, I was asked to run fsck manually as there was a problem with my /data filesystem which lives by itself on /dev/sda1 (a 4G SCSI drive which can be verified with my Adaptec SCSI utility at boot time).

I have to remove the /dev/sda1...../data...defaults...1 2 line from my /etc/fstab to boot without interaction. then, I try to mount the /data filesystem with the mount /data command (after reinserting the entry in /etc/fstab) and I get '/dev/sda1 is not a valid block device' error.

any help appreciated. all of my data is on this filesystem, and I am mid-stream as far as a backup/recovery deployment...so I fear I am currently in a bad place. thanks in advance.

linuxcool 10-17-2001 05:55 PM

You left your file type out of this line:
/dev/sda1...../data...defaults...1 2 .
I assume you made a mistake in copying it.

Did you run fsck? Remember that you don't have to mount the partition to check it. Just fsck /dev/sda1.

Try mounting it with this command:
mount -t ext2 /dev/sda1 /data.

I hope this helps. :)

adenardo 10-17-2001 05:59 PM

mount -t ext2 /dev/sda1 /data
 
the line from my /etc/fstab is:

/dev/sda1 /data ext2 defaults 1 2

so the mount -t ext2 /dev/sda1 /data command still leaves me with the error:

mount: /dev/sda1 is not a valid block device

adenardo 10-17-2001 06:01 PM

fsck info
 
here is the output from an attempted fsck:

fsck /dev/sda1
Parallelizing fsck version 1.19 (13-Jul-2000)
e2fsck 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
fsck.ext2: No such device or address while trying to open /dev/sda1
Possibly non-existent or swap device?

linuxcool 10-17-2001 06:07 PM

Try fdisk -l /dev/sda and see if sda1 exists.

adenardo 10-17-2001 07:20 PM

DOH!
 
well, thanks linuxcool.

your suggestion didn't directly fix my situation, but led me down a path

what happened was fdisk -l /dev/sda did not return any device. so, I powered down my box and re-seated all the cables. my experience has taught me that scsi errors are commonly cable issues. I checked the other devices as well, and realized I had left a CD in my IDE CDROm drive. once I removed the CD, the scsi devices were recognized immediately.

since I have a scsi cd-rw and an IDE cdrom, I'm guessing there is some issue about them both being used at the same time? I do have the scsi drivers compiled as modules, but I digress to another thread.

thanks again.

linuxcool 10-17-2001 10:07 PM

You're welcome. Glad you found the problem.


All times are GMT -5. The time now is 01:19 PM.