Hi;
I got a free 1 Gig USB stick as a promotional. I would like to install SystemRescueCD on it to make it into a "live usb stick". My computer is running Ubuntu 8.04.
I am having trouble detecting the device it is on and I think there may be partition or file system issues on the stick.
First issue: finding out what device the USB stick is:
running this command
yields with the USB stick plugged in (& autodetected) and NOT plugged in to eliminate my computer's devices yields this:
Quote:
8 16 987135 sdb
8 17 979933 sdb1
|
I get 2 device names, but I only have one USB ( or any ) device plugged into my computer.
Why do I get two device names?
funning modprobe with the USB plugged in and automounted by Ubuntu yields nothing
Quote:
root@Wisdom:~# modprobe usb-storage
root@Wisdom:~#
|
runnng dmesg seems to indicate a problem, but I don't understand the output
Quote:
root@Wisdom:~# dmesg | tail -n 50
[ 8014.002943] sd 7:0:0:0: [sdb] Write Protect is off
[ 8014.002950] sd 7:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 8014.002953] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 8014.006049] sd 7:0:0:0: [sdb] 1974271 512-byte hardware sectors (1011 MB)
[ 8014.006924] sd 7:0:0:0: [sdb] Write Protect is off
[ 8014.006929] sd 7:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 8014.006932] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 8014.006939] sdb: sdb1
[ 8014.116805] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[ 8014.116859] sd 7:0:0:0: Attached scsi generic sg3 type 0
[ 9316.958841] cdrom: This disc doesn't have any tracks I recognize!
[10381.662373] FAT: invalid media value (0xa5)
[10381.662381] VFS: Can't find a valid FAT filesystem on dev sdb.
[11014.741098] FAT: invalid media value (0xa5)
[11014.741106] VFS: Can't find a valid FAT filesystem on dev sdb.
[11288.298450] usb 4-2: USB disconnect, address 7
[11293.905004] usb 4-2: new high speed USB device using ehci_hcd and address 8
[11294.040007] usb 4-2: configuration #1 chosen from 1 choice
[11294.071004] scsi8 : SCSI emulation for USB Mass Storage devices
[11294.077307] usb-storage: device found at 8
[11294.077313] usb-storage: waiting for device to settle before scanning
[11299.074071] usb-storage: device scan complete
[11299.075331] scsi 8:0:0:0: Direct-Access USB 2.0 Flash Disk 0.00 PQ: 0 ANSI: 2
[11299.082540] sd 8:0:0:0: [sdc] 1974271 512-byte hardware sectors (1011 MB)
[11299.083541] sd 8:0:0:0: [sdc] Write Protect is off
[11299.083548] sd 8:0:0:0: [sdc] Mode Sense: 00 00 00 00
[11299.083551] sd 8:0:0:0: [sdc] Assuming drive cache: write through
[11299.086894] sd 8:0:0:0: [sdc] 1974271 512-byte hardware sectors (1011 MB)
[11299.087889] sd 8:0:0:0: [sdc] Write Protect is off
[11299.087894] sd 8:0:0:0: [sdc] Mode Sense: 00 00 00 00
[11299.087897] sd 8:0:0:0: [sdc] Assuming drive cache: write through
[11299.087904] sdc: sdc1
[11299.197969] sd 8:0:0:0: [sdc] Attached SCSI removable disk
[11299.198024] sd 8:0:0:0: Attached scsi generic sg3 type 0
[11300.740252] FAT: Directory bread(block 3858) failed
[11300.740267] FAT: Directory bread(block 3859) failed
[11300.740275] FAT: Directory bread(block 3860) failed
[11300.740282] FAT: Directory bread(block 3861) failed
[11300.740289] FAT: Directory bread(block 3862) failed
[11300.740296] FAT: Directory bread(block 3863) failed
[11300.740303] FAT: Directory bread(block 3864) failed
[11300.740310] FAT: Directory bread(block 3865) failed
[11300.740361] FAT: Directory bread(block 3858) failed
[11300.740368] FAT: Directory bread(block 3859) failed
[11300.740375] FAT: Directory bread(block 3860) failed
[11300.740382] FAT: Directory bread(block 3861) failed
[11300.740388] FAT: Directory bread(block 3862) failed
[11300.740395] FAT: Directory bread(block 3863) failed
[11300.740401] FAT: Directory bread(block 3864) failed
[11300.740408] FAT: Directory bread(block 3865) failed
root@Wisdom:~#
|
running fdisk -l on the first device sdb yields
Quote:
Disk /dev/sdb: 1010 MB, 1010826752 bytes
255 heads, 63 sectors/track, 122 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0007627f
Device Boot Start End Blocks Id System
/dev/sdb1 1 122 979933+ c W95 FAT32 (LBA)
root@Wisdom:~#
|
running fdisk -l on the second device yields listings that are almost identical ( the same device, two partitions? ) except no file system
Quote:
Disk /dev/sdb1: 1003 MB, 1003451904 bytes
255 heads, 63 sectors/track, 121 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
root@Wisdom:~#
|
To figure out which is my USB I replugged the stick in and let Ubuntu auto detect and mount it. I then put a file called
Hello.txt on it and then I unmounted the USB stick.
Attempting to mount the first device, sdb yields an error message
Quote:
root@Wisdom:~# mount -t vfat /dev/sdb /mnt/usb
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
root@Wisdom:~#
|
Attempting to mount the second device, sdb1 is successful and it has my text file
Quote:
root@Wisdom:~# mount -t vfat /dev/sdb1 /mnt/usb
root@Wisdom:~# ls /mnt/usb
Hello.txt
root@Wisdom:~#
|
So, I come back to the question, why 2 device names when there is only one USB device plugged in?
Thanks much in advance for any info