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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-17-2001, 02:38 PM
|
#1
|
Member
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61
Rep:
|
/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.
|
|
|
10-17-2001, 05:55 PM
|
#2
|
LQ Addict
Registered: Jun 2001
Posts: 1,183
Rep:
|
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.
|
|
|
10-17-2001, 05:59 PM
|
#3
|
Member
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61
Original Poster
Rep:
|
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
|
|
|
10-17-2001, 06:01 PM
|
#4
|
Member
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61
Original Poster
Rep:
|
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?
|
|
|
10-17-2001, 06:07 PM
|
#5
|
LQ Addict
Registered: Jun 2001
Posts: 1,183
Rep:
|
Try fdisk -l /dev/sda and see if sda1 exists.
|
|
|
10-17-2001, 07:20 PM
|
#6
|
Member
Registered: Oct 2001
Location: Fort Collins, Colorado
Distribution: RHEL3/FedoraCore3
Posts: 61
Original Poster
Rep:
|
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.
|
|
|
10-17-2001, 10:07 PM
|
#7
|
LQ Addict
Registered: Jun 2001
Posts: 1,183
Rep:
|
You're welcome. Glad you found the problem.
|
|
|
All times are GMT -5. The time now is 02:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|