LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   unable to format usb stick ?strange things happening as well!!! (http://www.linuxquestions.org/questions/solaris-opensolaris-20/unable-to-format-usb-stick-strange-things-happening-as-well-644759/)

wrapster 05-26-2008 12:27 AM

unable to format usb stick ?strange things happening as well!!!
 
Hi all,

I have a pendrive that is fat formatted...
It was being detected so far on solairs...but now during the re-installation of solaris ,i did not remove the drive and guess i screwed it up...
since then , i am unable to use it...guess its now not formatted or is corrupt...
but the irony is ,when i insert it into xp,it says "not formatted"...
when i insert into soaris through a usb hub its not detecting....
nothing in /media/
but if i connect it to the physical port then it works ,and i can look into its contents...
again here also i am unable to install many pkg that i have in it...
get an I/O error!!!

First of all, how can this be possible?
secondly i tried formatting this using the rmformat and this is what i got!!!
Code:

bash-3.2# rmformat -l
Looking for devices...
    1. Logical Node: /dev/rdsk/c0t1d0p0
        Physical Node: /pci@0,0/pci-ide@6/ide@0/sd@1,0
        Connected Device: TSSTcorp CD/DVDW SH-S182D SB03
        Device Type: DVD Reader/Writer
        Bus: IDE
        Size: 681.6 MB
        Label: <None>
        Access permissions: Medium is not write protected.
    2. Logical Node: /dev/rdsk/c4t0d0p0
        Physical Node: /pci@0,0/pci1043,8234@2/storage@4/disk@0,0
        Connected Device:          USB FLASH DRIVE  PMAP
        Device Type: Removable
        Bus: USB
        Size: 984.0 MB
        Label: <None>
        Access permissions: Medium is not write protected.
bash-3.2# rmformat -F long /dev/rdsk/c4t0d0p0
Formatting will erase all the data on disk.
Do you want to continue? (y/n)y

bash-3.2# mkfs -F pcfs /dev/rdsk/c4t0d0p0

Device /dev/rdsk/c4t0d0p0 was assumed to be a diskette.
A diskette specific operation failed on this device.
If the device is a hard disk, provide the name of the full physical disk,
and qualify that name with a logical drive specifier.

Hint: the device is usually something similar to

/dev/rdsk/c0d0p0 or /dev/rdsk/c0t0d0p0 (x86)
/dev/rdsk/c0t5d0s2 (sparc)

The drive specifier is appended to the device name. For example:

/dev/rdsk/c0t5d0s2:c or /dev/rdsk/c0d0p0:boot

bash-3.2#

What does this mean, and why am i not able to format the usb stick?

Person_1873 05-26-2008 05:05 PM

it means you forgot to specify which partition to format, it seems that solaris is slightly different to what i've used but it seems to follow the syntax, computer (dev/)/ hub(rdisk/)/ USB drive (c4t0d0p0), i'd be willing to bet that it requires a specification of which part of the drive to format, also if windows recignises it, why not format it there?

wrapster 05-26-2008 11:26 PM

Windows does recognize it but i want to try formatting from solaris....
As soon as i plug it in ,xp promptly detects and says it needs to be formatted...
Guess we should port the same thing over to solaris as well ;)

jlliagre 05-27-2008 08:19 AM

The error message is trying to tell you to specify a partition number and the manual page states it too.

Try:
Code:

mkfs -F pcfs /dev/rdsk/c4t0d0p0:c

Person_1873 06-03-2008 04:58 AM

thats what i was saying

jlliagre 06-03-2008 03:31 PM

Indeed. Your reply was missing the precise syntax though.

Person_1873 06-04-2008 08:48 AM

this is because im a linux user, not a solaris user ;)

jlliagre 06-04-2008 10:52 AM

Nobody's perfect ;)


All times are GMT -5. The time now is 05:43 AM.