Re: Formattering af USB-"pen"
Ejnar Zacho Rath <[email protected]>
| Newsgroups | gmane.org.user-groups.flug.tech |
|---|---|
| Message-ID | <[email protected]> |
Morten Juhl Johansen skrev:
> Ejnar Zacho Rath wrote:
>> Jeg har fået en USB-"pen" som en reklamegave. Reklameriet består i, at
>> den er partitioneret som to enheder, hvor den ene, der har reklamerne,
>> bilder maskinen ind, at den er et CD-drev.
>>
>> Da jeg nu ligesom er blevet mæt af reklamen, ville jeg gerne have fuld
>> råderet over hele dimsen, men jeg har ikke haft meget held af det endnu.
>> fdisk ser kun den "frie" del af pennen. Forslag er yderst velkomne.
>
> Hvordan rapporteres den, når du sætter den i - hvad siger
> dmesg | tail
Ja, dmesg giver:
8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
usb 4-3: new high speed USB device using ehci_hcd and address 2
usb 4-3: new high speed USB device using ehci_hcd and address 3
usb 4-3: new device found, idVendor=058f, idProduct=6981
usb 4-3: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 4-3: Product: Mass Storage
usb 4-3: Manufacturer: Generic
usb 4-3: SerialNumber: 627FF9DB
usb 4-3: configuration #1 chosen from 1 choice
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
Vendor: USB2.0 Model: Flash Disk Rev: 8.01
Type: Direct-Access ANSI SCSI revision: 02
Vendor: Generic Model: Autorun Disk Rev: 8.00
Type: Direct-Access ANSI SCSI revision: 02
usb-storage: device scan complete
SCSI device sda: 1003518 512-byte hdwr sectors (514 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 1003518 512-byte hdwr sectors (514 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
sda: sda1
sd 0:0:0:0: Attached scsi removable disk sda
SCSI device sdb: 2048 512-byte hdwr sectors (1 MB)
sdb: Write Protect is on
sdb: Mode Sense: 03 00 80 00
sdb: assuming drive cache: write through
SCSI device sdb: 2048 512-byte hdwr sectors (1 MB)
sdb: Write Protect is on
sdb: Mode Sense: 03 00 80 00
sdb: assuming drive cache: write through
sdb: sdb1 sdb4
sd 0:0:0:1: Attached scsi disk sdb
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:1: Attached scsi generic sg1 type 0
8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
Så prøvede jeg lige lidt mount:
8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
linux-gp34:~ # mount
.....
/dev/sda1 on /media/disk type vfat
(rw,nosuid,nodev,noatime,uid=1000,utf8,shortname=lower)
/dev/sdb1 on /media/RSPCSITE type vfat
(ro,nosuid,nodev,noatime,uid=1000,utf8,shortname=lower)
.....
linux-gp34:~ # mount -o remount,rw -t vfat /dev/sdb1 /media/RSPCSITE
mount: block device /dev/sdb1 is write-protected, mounting read-only
linux-gp34:~ #
8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
og fdisk:
8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
linux-gp34:~ # fdisk /dev/sdb
You will not be able to write the partition table.
Command (m for help): p
Disk /dev/sdb: 1 MB, 1048576 bytes
3 heads, 32 sectors/track, 21 cylinders
Units = cylinders of 96 * 512 = 49152 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 11 480+ 1 FAT12
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(0, 1, 32)
Partition 1 has different physical/logical endings:
phys=(500, 2, 32) logical=(10, 1, 32)
/dev/sdb4 1 1 0+ 0 Empty
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(0, 0, 0) logical=(0, 0, 1)
Partition 4 has different physical/logical endings:
phys=(0, 0, 0) logical=(0, 0, 1)
Partition 4 does not end on cylinder boundary.
Command (m for help): q
linux-gp34:~ #
linux-gp34:~ # fdisk /dev/sda
Command (m for help): p
Disk /dev/sda: 513 MB, 513801216 bytes
255 heads, 63 sectors/track, 62 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 62 497983+ c W95 FAT32 (LBA)
Command (m for help): q
linux-gp34:~ #
8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
Tjah, bum, bum, bum....
> Alt godt,
> Morten
>
> __
> http://www.syntaktisk.dk
Vh
--
Ejnar Zacho Rath
Kølstrup Bygade 48
Kølstrup
5300 Kerteminde
Prøv en komplet åben dansk kontorpakke: http://da.openoffice.org
--
flug-teknik mailing list
[email protected]
To unsubscribe send a mail to [email protected]