LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 05-26-2008, 01:27 AM   #1
wrapster
Member
 
Registered: May 2008
Posts: 155

Rep: Reputation: 30
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?
 
Old 05-26-2008, 06:05 PM   #2
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Rep: Reputation: 39
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?
 
Old 05-27-2008, 12:26 AM   #3
wrapster
Member
 
Registered: May 2008
Posts: 155

Original Poster
Rep: Reputation: 30
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
 
Old 05-27-2008, 09:19 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
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
 
Old 06-03-2008, 05:58 AM   #5
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Rep: Reputation: 39
thats what i was saying
 
Old 06-03-2008, 04:31 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Indeed. Your reply was missing the precise syntax though.
 
Old 06-04-2008, 09:48 AM   #7
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Rep: Reputation: 39
this is because im a linux user, not a solaris user
 
Old 06-04-2008, 11:52 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Nobody's perfect
 
  


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
USB memory stick - badblocks - how to format? mazzo Linux - Hardware 6 10-29-2008 01:26 AM
LXer: Strange things happening with my OpenBSD box, but excellent documentation saves LXer Syndicated Linux News 0 02-29-2008 03:10 PM
SD card & USB stick format chaos JohnKFT Slackware 5 10-04-2006 07:31 PM
Something STRANGE is happening when I try to mount USB / floppies etc. yekrahs Fedora 4 09-15-2005 07:04 AM
Mixing 512MB Ram 2700 stick with a 256MB 3200 stick? Will it screw things up? Fear58 Linux - Hardware 2 07-15-2004 02:20 PM


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

Main Menu
Advertisement
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