Skip to Content.
Sympa Menu

unclug - [unclug] FC2 & USB

unclug AT lists.ibiblio.org

Subject: UNC Linux Users Group

List archive

Chronological Thread  
  • From: dsandif <dsandif AT email.unc.edu>
  • To: unclug AT lists.ibiblio.org
  • Subject: [unclug] FC2 & USB
  • Date: Fri, 18 Jun 2004 13:06:26 -0400

I am trying to get Fedora core 2 to see a external usb hard drive
(Maxtor 300Gig). I have tried to follow directions on this web site and
others and set
this up but to no avail and/or success. I have attached the following
files to this email so you can see what I've been doing. I thought that
FC2 would be better for USB support but I guess I have some more work to

do. Let me know what you think. Thxs all.

p.s,
My device is reconized as /dev/sda when I do a dmesg and I made a
directory called /mnt/usbdisk
but these didn't fly.

D-


[root@Geosci-linux-xp mnt]# cd /
[root@Geosci-linux-xp /]# mkdir /mnt/usbdisk
[root@Geosci-linux-xp /]# mount /mnt/usbdisk
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems
[root@Geosci-linux-xp /]# cd etc
[root@Geosci-linux-xp etc]# vi fstab
[root@Geosci-linux-xp etc]# vi mtab
[root@Geosci-linux-xp etc]# mount /mnt/usbdisk
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems
[root@Geosci-linux-xp etc]# vi fstab
[root@Geosci-linux-xp etc]# vi mtab
[root@Geosci-linux-xp etc]# mount /dev/sda1
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems
[root@Geosci-linux-xp etc]# mount /dev/sda
mount: can't find /dev/sda in /etc/fstab or /etc/mtab
[root@Geosci-linux-xp etc]# cd /
[root@Geosci-linux-xp /]# cd mnt
[root@Geosci-linux-xp mnt]# ls
cdrom floppy usbdisk
[root@Geosci-linux-xp mnt]#
[root@Geosci-linux-xp log]# dmesg
Linux version 2.6.5-1.358 (bhcompile AT bugs.build.redhat.com) (gcc version
3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 Sat May 8 09:04:50 EDT 2004
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000fff0000 (usable)
BIOS-e820: 000000000fff0000 - 000000000fff3000 (ACPI NVS)
BIOS-e820: 000000000fff3000 - 0000000010000000 (ACPI data)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
255MB LOWMEM available.
zapping low mappings.
On node 0 totalpages: 65520
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 61424 pages, LIFO batch:14
HighMem zone: 0 pages, LIFO batch:1
DMI 2.2 present.
ACPI: RSDP (v000 VIA694 ) @ 0x000f6bb0
ACPI: RSDT (v001 VIA694 AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x0fff3000
ACPI: FADT (v001 VIA694 AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x0fff3040
ACPI: DSDT (v001 VIA694 AWRDACPI 0x00001000 MSFT 0x0100000d) @ 0x00000000
ACPI: PM-Timer IO Port: 0x4008
Built 1 zonelists
Kernel command line: ro root=LABEL=/
mapped 4G/4G trampoline to ffff3000.
Initializing CPU#0
CPU 0 irqstacks, hard=02345000 soft=02344000
PID hash table entries: 1024 (order 10: 8192 bytes)
Detected 1000.442 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Memory: 256444k/262080k available (1540k kernel code, 4916k reserved, 599k
data, 144k init, 0k highmem)
Calibrating delay loop... 1982.46 BogoMIPS
Security Scaffold v1.0.0 initialized
SELinux: Initializing.
SELinux: Starting in permissive mode
There is already a security framework initialized, register_security failed.
Failure registering capabilities with the kernel
selinux_register_security: Registering secondary module capability
Capability LSM initialized
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0183f9ff c1c7f9ff 00000000 00000000
CPU: After vendor identify, caps: 0183f9ff c1c7f9ff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After all inits, caps: 0183f1ff c1c7f9ff 00000000 00000020
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: AMD Athlon(tm) processor stepping 04
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfb230, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040326
ACPI: IRQ9 SCI: Level Trigger.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 *5 6 7 10 11 12 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
usbcore: registered new driver usbfs
usbcore: registered new driver hub
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 5
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 5
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even
'acpi=off'
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
apm: overridden by ACPI.
audit: initializing netlink socket (disabled)
audit(1087377042.4294965923:0): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux: Registering netfilter hooks
Initializing Cryptographic API
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
ACPI: Fan [FAN] (on)
ACPI: Processor [CPU0] (supports C1 C2, 2 throttling states)
ACPI: Thermal Zone [THRM] (40 C)
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected VIA KT266/KY266x/KT333 chipset
agpgart: Maximum main memory to use for agp memory: 203M
agpgart: AGP aperture is 128M @ 0xd0000000
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
divert: not allocating divert_blk for non-ethernet device lo
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PDC20265: IDE controller at PCI slot 0000:00:0f.0
PDC20265: chipset revision 2
PDC20265: 100% native mode on irq 11
PDC20265: (U)DMA Burst Bit ENABLED Primary MASTER Mode Secondary MASTER Mode.
ide2: BM-DMA at 0xd800-0xd807, BIOS settings: hde:pio, hdf:pio
ide3: BM-DMA at 0xd808-0xd80f, BIOS settings: hdg:pio, hdh:DMA
VP_IDE: IDE controller at PCI slot 0000:00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8233a (rev 00) IDE UDMA133 controller on pci0000:00:11.1
ide0: BM-DMA at 0xdc00-0xdc07, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xdc08-0xdc0f, BIOS settings: hdc:DMA, hdd:pio
hda: WDC WD200BB-00CFC0, ATA DISK drive
Using cfq io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: CDU5211, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 39102336 sectors (20020 MB) w/2048KiB Cache, CHS=38792/16/63, UDMA(100)
hda: hda1 hda2 hda3 hda4 < hda5 hda6 >
hdc: ATAPI 52X CD-ROM drive, 120kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
input: PS/2 Generic Mouse on isa0060/serio1
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI: (supports S0 S1 S4 S5)
checking if image is initramfs...it isn't (no cpio magic); looks like an
initrd
Freeing initrd memory: 186k freed
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 144k freed
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SLPB]
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:11.2: UHCI Host Controller
uhci_hcd 0000:00:11.2: irq 5, io base 0000e000
uhci_hcd 0000:00:11.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:11.3: UHCI Host Controller
uhci_hcd 0000:00:11.3: irq 5, io base 0000e400
uhci_hcd 0000:00:11.3: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usb 1-1: new full speed USB device using address 2
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
EXT3 FS on hda3, internal journal
device-mapper: 4.1.0-ioctl (2003-12-10) initialised: dm AT uk.sistina.com
usb 1-1.1: new full speed USB device using address 3
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Sony Model: MSAC-US1 Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
USB Mass Storage device found at 3
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
SCSI device sda: 7904 512-byte hdwr sectors (4 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
inserting floppy driver for 2.6.5-1.358
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
cdrom: open failed.
Adding 1020088k swap on /dev/hda6. Priority:-1 extents:1
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
parport0: PC-style at 0x378 [PCSPP,TRISTATE]
8139too Fast Ethernet driver 0.9.27
divert: allocating divert_blk for eth0
eth0: RealTek RTL8139 at 0xc000, 00:50:fc:41:ef:83, IRQ 11
eth0: Identified 8139 chip type 'RTL-8139C'
divert: allocating divert_blk for eth1
eth1: RealTek RTL8139 at 0xc400, 00:07:95:46:73:cd, IRQ 5
eth1: Identified 8139 chip type 'RTL-8100B/8139D'
divert: freeing divert_blk for eth0
divert: freeing divert_blk for eth1
ip_tables: (C) 2000-2002 Netfilter core team
8139too Fast Ethernet driver 0.9.27
divert: allocating divert_blk for eth0
eth0: RealTek RTL8139 at 0xc000, 00:50:fc:41:ef:83, IRQ 11
eth0: Identified 8139 chip type 'RTL-8139C'
divert: allocating divert_blk for eth1
eth1: RealTek RTL8139 at 0xc400, 00:07:95:46:73:cd, IRQ 5
eth1: Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Bluetooth: Core ver 2.4
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.1
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM ver 1.2
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
parport0: PC-style at 0x378 [PCSPP,TRISTATE]
lp0: using parport0 (polling).
lp0: console ready
NET: Registered protocol family 10
Disabled Privacy Extensions on device 022db720(lo)
IPv6 over IPv4 tunneling driver
divert: not allocating divert_blk for non-ethernet device sit0
warning: process `update' used the obsolete bdflush system call
Fix your initscripts?
eth0: no IPv6 routers present
warning: process `update' used the obsolete bdflush system call
Fix your initscripts?
[drm] Initialized mga 3.1.0 20021029 on minor 0
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode
PCI: Setting latency timer of device 0000:00:11.5 to 64
usb 1-1: USB disconnect, address 2
usb 1-1.1: USB disconnect, address 3
hub 1-0:1.0: connect-debounce failed, port 2 disabled
usb 1-2: new full speed USB device using address 4
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: Maxtor Model: OneTouch Rev: 0200
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 585938944 512-byte hdwr sectors (300001 MB)
sda: assuming drive cache: write through
sda: sda1
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
USB Mass Storage device found at 4
usb 1-2: USB disconnect, address 4
usb 1-1: new full speed USB device using address 5
scsi2 : SCSI emulation for USB Mass Storage devices
Vendor: Maxtor Model: OneTouch Rev: 0200
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 585938944 512-byte hdwr sectors (300001 MB)
sda: assuming drive cache: write through
sda: sda1
Attached scsi disk sda at scsi2, channel 0, id 0, lun 0
USB Mass Storage device found at 5
usb 1-1: USB disconnect, address 5
usb 1-2: new full speed USB device using address 6
scsi3 : SCSI emulation for USB Mass Storage devices
Vendor: Maxtor Model: OneTouch Rev: 0200
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 585938944 512-byte hdwr sectors (300001 MB)
sda: assuming drive cache: write through
sda: sda1
Attached scsi disk sda at scsi3, channel 0, id 0, lun 0
USB Mass Storage device found at 6
usb 1-2: USB disconnect, address 6
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
[root@Geosci-linux-xp log]# fdisk -l /dev/sda

Disk /dev/sda: 300.0 GB, 300000739328 bytes
255 heads, 63 sectors/track, 36473 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 36472 292961308+ 7 HPFS/NTFS
[root@Geosci-linux-xp log]#

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
/dev/hda5 /fat32 vfat defaults 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda6 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro
0 0/dev/sda1 /mnt/usbhd ext2 defaults 1 2
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
~
~
~
~
~
~
~
~
~
~
~
~
~
1,1
/dev/hda3 / ext3 rw 0 0
none /proc proc rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hda2 /boot ext3 rw 0 0
/dev/hda5 /fat32 vfat rw 0 0
none /dev/shm tmpfs rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/fd0 /mnt/floppy vfat rw,nosuid,nodev 0 0
/dev/sda1 /mnt/usbhd ext2 defaults 1 2
~
~
~
~
~
~
~
~
~
~
~
~
"mtab" 11L, 420C 11,1
All
http://www.linuxforum.com/forums/index.php?s=5c34b16e4aca365dc29741eeb0eb6e7d&showtopic=73436






Instructions for attaching a USB mass storage device:
*****************************************************

1. Inspect SCSI devices
2. Find exact path (/dev/???) for the USB mass storage device partition
3. add info to /etc/fstab
4. mount
5. done!

********
keywords: mount usb mass storage scsi fstab
********


Step 1:
********************************************************
to inspect the SCSI devices: (USB disks map onto scsi)
cat /proc/scsi/scsi

note the number of your usb device (eg: scsi3)


Step 2.1:
********************************************************
inspect the kernel messages logged when connecting the usb device:
dmesg

look for the following:

Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi3 : SCSI emulation for USB Mass Storage devices
Vendor: USB 2.0 Model: Storage Device Rev: 0100
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sdb at scsi3, channel 0, id 0, lun 0
SCSI device sdb: 78165360 512-byte hdwr sectors (40021 MB)
<<<----------!!!!!!!
sdb: sdb1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.


The marked line above indicates our USB device is on /dev/sdb



Step 2.2:
********************************************************
to inspect the partitions on the USB device:
fdisk -l /dev/sdb

Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 4865 39078081 c W95 FAT32 (LBA)




now we know that the partition is in /dev/sdb1

Step 3:
********************************************************

now go ahead and append to /etc/fstab:

http://www.linux-usb.org/USB-guide/x498.html recommends:

"
A suitable entry for a hard disk with a single partition would be:
/dev/sda1 /mnt/usbdisk ext2 defaults 1 2
"

in my case:
/dev/sdb1 /mnt/usbdisk vfat defaults 1 2

Step 4:
********************************************************
THEN:
mkdir /mnt/usbdisk
mount /mnt/usbdisk


Step 5:
********************************************************
Find your USB disk mounted at:
/mnt/usbdisk


NOTE: I think one needs to unmount before powering down:
umount /mnt/usbdisk


********************************************************



Archive powered by MHonArc 2.6.24.

Top of Page