LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-22-2004, 11:28 AM   #1
pcpinkerton
LQ Newbie
 
Registered: Feb 2004
Location: Brazil
Posts: 15

Rep: Reputation: 0
Question /dev/sda1 not valid block device


I thought I had it!!??


HELP!

After reading a thread on this issue I did the following :

modprobe usb_storage and was able to mount /dev/sda1 /mnt/usbhd
just fine.

After rebooting I cannot mount this device any more??

Is this telling me to mounr /dev/sg1?

If so I get the same error:

mount -t ext3 /dev/sg1 /mnt/usbhd
mount: /dev/sg1 is not a block device!!

Geeze It mounted yesterday. I only rebooted?
______________________________________________________________


I get : dmesg snips
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub

drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1
uhci_hcd 0000:00:1f.2: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1f.2 to 64
uhci_hcd 0000:00:1f.2: irq 5, io base 0000ef40
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
uhci_hcd 0000:00:1f.4: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1f.4 to 64
uhci_hcd 0000:00:1f.4: irq 9, io base 0000ef80
uhci_hcd 0000:00:1f.4: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
drivers/usb/core/usb.c: registered new driver usbkbd
drivers/usb/input/usbkbd.c: :USB HID Boot Protocol keyboard driver
drivers/usb/core/usb.c: registered new driver usbmouse
usb 1-2: new full speed USB device using address 2
usb 2-2: new full speed USB device using address 2
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: SONY Model: DVD RW DRU-510A Rev: 1.0c
Type: CD-ROM ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: IC35L090 Model: AVV207-0 Rev: V23O
Type: Direct-Access ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
drivers/usb/core/usb.c: registered new driver usb-storage
USB Mass Storage support registered.

Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5
Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 0
_______________________________________________________

mount /dev/sda1 /mnt/usbhd
mount: you must specify the filesystem type.

mount -t ext3 /dev/sda1 /mnt/usbhd
mount: /dev/sda1 is not a valid block device.

lsmod:
usb_storage 65472 0
scsi_mod 115512 2 sg,usb_storage

lspci
0000:00:00.0 Host bridge: Intel Corp. 82850 850 (Tehama) Chipset Host Bridge (MCH) (rev 02)
0000:00:01.0 PCI bridge: Intel Corp. 82850 850 (Tehama) Chipset AGP Bridge (rev 02)
0000:00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB PCI Bridge (rev 02)
0000:00:1f.0 ISA bridge: Intel Corp. 82801BA ISA Bridge (LPC) (rev 02)
0000:00:1f.1 IDE interface: Intel Corp. 82801BA IDE U100 (rev 02)
0000:00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 02)
0000:00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev 02)
0000:00:1f.4 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #2) (rev 02)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon VE QY
0000:02:0a.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
0000:02:0a.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 07)
0000:02:0c.0 Communication controller: Conexant HCF 56k Data/Fax/Voice/Spkp Modem (rev 08)
0000:02:0d.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)

uname -r
2.6.2-48932cl

scsibus1:
1,0,0 100) 'IC35L090' 'AVV207-0 ' 'V23O' Disk
lsusb
Bus 002 Device 002: ID 0c0b:b001 Dura Micro, Inc. (Acomdata)












 
Old 02-22-2004, 11:56 AM   #2
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Rep: Reputation: 30
I've had this happen before too and I don't know why. I guess when your computer starts, it assigns a device name to your devices depending on the order in which they were plugged in. For example, if you have another usb device plugged in, it might have become sda1 during the reboot, so now your device might be sdb1. There are only two ways that I have found to solve this problem:
1. Mount as root, including the fs type.
Code:
root# mount -t vfat /dev/sda1 /mnt/usbhd
or
2. Using the 2.6.3 kernel, I wrote udev rules so that the device is always named /dev/usbhd. Here's a good tutorial on how to do that.

Last edited by busbarn; 02-22-2004 at 11:58 AM.
 
Old 02-22-2004, 01:18 PM   #3
pcpinkerton
LQ Newbie
 
Registered: Feb 2004
Location: Brazil
Posts: 15

Original Poster
Rep: Reputation: 0
still I get /dev/sda1 not a valid block device when I use as root mount -t ext3 /dev/sda1 /mnt/usbhd.

Like I said it worked before I re-booted ??

Thanks for trying though

PC
 
Old 02-22-2004, 01:33 PM   #4
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Rep: Reputation: 30
For some reason, your usb drive isn't being assigned a device address. It looks like the kernel can see it, it just doesn't label it. WHat kernel are you using--2.4.x or 2.6.x?
 
Old 02-22-2004, 01:44 PM   #5
pcpinkerton
LQ Newbie
 
Registered: Feb 2004
Location: Brazil
Posts: 15

Original Poster
Rep: Reputation: 0
uname -r
2.6.2-48932cl

When I run cdrecord -scanbus I get:

scsibus1:

1,0,0 100) ' IC35L090 ' 'AVV207-0 ' 'V230' DISK


I assumed this was a valid address is it Not ?
 
Old 02-22-2004, 01:46 PM   #6
pcpinkerton
LQ Newbie
 
Registered: Feb 2004
Location: Brazil
Posts: 15

Original Poster
Rep: Reputation: 0
See the end of my first post for more details
 
Old 02-22-2004, 01:50 PM   #7
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Rep: Reputation: 30
have you installed udev or are you still using devfs?
 
Old 02-22-2004, 01:57 PM   #8
pcpinkerton
LQ Newbie
 
Registered: Feb 2004
Location: Brazil
Posts: 15

Original Poster
Rep: Reputation: 0
not sure how do I tell ?? I did not install anything after installing the distro with 2.61 and using apt to upgrade to 2.6.2
 
Old 02-22-2004, 01:59 PM   #9
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Rep: Reputation: 30
what distro are you using?
 
Old 02-22-2004, 02:14 PM   #10
pcpinkerton
LQ Newbie
 
Registered: Feb 2004
Location: Brazil
Posts: 15

Original Poster
Rep: Reputation: 0
Conectiva 10
 
Old 02-22-2004, 03:57 PM   #11
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Login as su or root and type fdisk -l /dev/sda. If /dev/sda1 doesn't show then the kernel doesn't recoqnize your USB device. You have to add a few lines of code to a certain file or add a line in the usb-distmap in the hotplug directory.

I don't know how kernel 2.6.x is setup. I'm still using kernel version 2.4.x. Probably between March and August I'll try to compile 2.6.x but it depends on VMware if they can revise their modules for 2.6.x kernel.
 
Old 02-23-2004, 02:04 PM   #12
pcpinkerton
LQ Newbie
 
Registered: Feb 2004
Location: Brazil
Posts: 15

Original Poster
Rep: Reputation: 0
we may be getting some where as fdisk -l /dev/sda returns nothing?

Weird as this WAS WORKING until I rebooted!

Note I also need to use VMware and found it will not install.
 
Old 02-23-2004, 03:11 PM   #13
pcpinkerton
LQ Newbie
 
Registered: Feb 2004
Location: Brazil
Posts: 15

Original Poster
Rep: Reputation: 0
I may have found the problem. I plugged the USB-STORAGE device into another system running 2.6.1 kernel
and it mounted ok.

Then I ran lsmod and compared with the 2.6.2 kernel system.

Seems the 2.6.2 kernel is missing usbcore module ? which is weird as my printer is usb and works?
 
Old 02-23-2004, 03:20 PM   #14
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Rep: Reputation: 30
hmm try updating to 2.6.3 and see if that fixes it.
 
Old 02-24-2004, 12:12 PM   #15
pcpinkerton
LQ Newbie
 
Registered: Feb 2004
Location: Brazil
Posts: 15

Original Poster
Rep: Reputation: 0
NO need to install 2.6.3 Here is what makes it work.

1) turn off USB-Storage device
2) re-boot system
3) turn on USB-Storage device
4) mount /dev/sda1 /mnt/usbhd

Not sure why this works? Perhaps a hot-plug feature/bug?


Philip
 
  


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 Off
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/Novell 5 10-15-2004 01:06 PM
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
/dev/sda1 is not a valid block device adenardo Linux - General 6 10-17-2001 10:07 PM


All times are GMT -5. The time now is 03:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration