LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-17-2001, 02:38 PM   #1
adenardo
Member
 
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61

Rep: Reputation: 15
/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.
 
Old 10-17-2001, 05:55 PM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
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.
 
Old 10-17-2001, 05:59 PM   #3
adenardo
Member
 
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61

Original Poster
Rep: Reputation: 15
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
 
Old 10-17-2001, 06:01 PM   #4
adenardo
Member
 
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61

Original Poster
Rep: Reputation: 15
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?
 
Old 10-17-2001, 06:07 PM   #5
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Try fdisk -l /dev/sda and see if sda1 exists.
 
Old 10-17-2001, 07:20 PM   #6
adenardo
Member
 
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61

Original Poster
Rep: Reputation: 15
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.
 
Old 10-17-2001, 10:07 PM   #7
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You're welcome. Glad you found the problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount: /dev/sda1 is not a valid block device?????help mojarron Slackware 13 03-21-2005 05:33 AM
/dev/sda1 NOT a valid block device ??? mack4evr SUSE / openSUSE 5 10-15-2004 01:06 PM
/dev/sda1 not valid block device pcpinkerton Linux - Hardware 19 02-29-2004 07:48 AM
mount: /dev/sda1 is not a valid block device melody Linux - Hardware 1 09-14-2003 10:35 PM
/dev/sda1 is not a valid block device mschrijn Linux - Newbie 0 12-17-2001 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:14 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