Saving to usb


 
Thread Tools Search this Thread
Operating Systems Solaris Saving to usb
# 15  
Old 10-12-2012
Hope this is what is expected

rmformat

Code:
Looking for devices...
     1. Logical Node: /dev/rdsk/c0t0d0s2
        Physical Node: /pci@1e,600000/ide@d/sd@0,0
        Connected Device: TEAC     DV-28E-V         1.AB
        Device Type: DVD Reader
     2. Logical Node: /dev/rdsk/c4t0d0s2
        Physical Node: /pci@1e,600000/usb@a/storage@2/disk@0,0
        Connected Device: USB      Flash Disk       1100
        Device Type: Removable

iostat -En

Code:
c1t1d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: FUJITSU  Product: MAW3073NCSUN72G  Revision: 1703 Serial No: 0738B0NTRG
Size: 73.41GB <73407865856 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c1t2d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE  Product: ST373307LSUN72G  Revision: 0507 Serial No: 0340B64WYL
Size: 73.41GB <73407865856 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c3t0d0           Soft Errors: 0 Hard Errors: 2 Transport Errors: 91
Vendor: USB      Product: Flash Disk       Revision: 1100 Serial No:
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 11 Predictive Failure Analysis: 0
c1t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: FUJITSU  Product: MAW3073NCSUN72G  Revision: 1703 Serial No: 0723B0ME5H
Size: 73.41GB <73407865856 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c4t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: USB      Product: Flash Disk       Revision: 1100 Serial No:
Size: 4.01GB <4010803200 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 44 Predictive Failure Analysis: 0
c0t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 1
Vendor: TEAC     Product: DV-28E-V         Revision: 1.AB Serial No:
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

for i in $(rmformat | grep "Logical Node" | nawk '{print $4}')
do
pfexec fdisk -v -W - $i | grep -v : | grep -v '^*$'
for p in 1 2 3 4
do
printf "%d " $p
fstyp $(echo $i | sed 's/.$/'$p'/')
done
done
Code:
bash-3.00# for i in $(rmformat | grep "Logical Node" | nawk '{print $4}')
do
        pfexec fdisk -v -W - $i | grep -v : | grep -v '^*$'
        for p in 1 2 3 4
> do
   >         pfexec fdisk -v -W - $i | grep -v : | grep -v '^*$'
                printf "%d " $p
                fstyp $(echo $i | sed 's/.$/'$p'/')
        done
done
>         for p in 1 2 3 4
>         do
>                 printf "%d " $p
>                 fstyp $(echo $i | sed 's/.$/'$p'/')
>         done
> done
fdisk: Cannot open device /dev/rdsk/c0t0d0s2.
1 getdisk/read: I/O error
/dev/rdsk/c0t0d0s1: Error 0
/dev/rdsk/c0t0d0s1: I/O error
Unknown_fstyp (no matches)
2 hsfs
3 getdisk/read: I/O error
/dev/rdsk/c0t0d0s3: Error 0
/dev/rdsk/c0t0d0s3: I/O error
Unknown_fstyp (no matches)
4 getdisk/read: I/O error
/dev/rdsk/c0t0d0s4: Error 0
/dev/rdsk/c0t0d0s4: I/O error
Unknown_fstyp (no matches)

* /dev/rdsk/c4t0d0s2 default fdisk table
*    512 bytes/sector
*     63 sectors/track
*    255 tracks/cylinder
*    487 cylinders

* Id    Act  Bhead  Bsect  Bcyl    Ehead  Esect  Ecyl    Rsect      Numsect
  11    128  1      1      0       127    54     971     3192       7830408
1 hsfs fstyp: cannot open </dev/rdsk/c4t0d0s1>
/dev/rdsk/c4t0d0s1: No such device or address
udfs fstyp: cannot open </dev/rdsk/c4t0d0s1> errorno <6>
/dev/rdsk/c4t0d0s1: No such device or address
open64: No such device or address
Unknown_fstyp (no matches)
2 ufs
3 hsfs fstyp: cannot open </dev/rdsk/c4t0d0s3>
/dev/rdsk/c4t0d0s3: No such device or address
udfs fstyp: cannot open </dev/rdsk/c4t0d0s3> errorno <6>
/dev/rdsk/c4t0d0s3: No such device or address
open64: No such device or address
Unknown_fstyp (no matches)
4 hsfs fstyp: cannot open </dev/rdsk/c4t0d0s4>
/dev/rdsk/c4t0d0s4: No such device or address
udfs fstyp: cannot open </dev/rdsk/c4t0d0s4> errorno <6>
/dev/rdsk/c4t0d0s4: No such device or address
open64: No such device or address
Unknown_fstyp (no matches)

# 16  
Old 10-12-2012
Is this SPARC ?

You have likely a 4 GB USB thumbdrive with a single ufs file system on it. Therefore there is no fat32 and that makes the drive unusable with windows or other OSes.
# 17  
Old 10-12-2012
It has been formatted to FAT32, it was ntfs
# 18  
Old 10-12-2012
"fstyp /dev/rdsk/c4t0d0s2" is reporting the file system there to be ufs, not fat32. Don't confuse partition IDs and file systems types.

What says

Code:
fstyp -v /dev/rdsk/c4t0d0s2
fstyp -v /dev/rdsk/c4t0d0s2:c

?
# 19  
Old 10-15-2012
fstyp -v /dev/rdsk/c4t0d0s2

Code:
cg 79:
Invalid Cylinder grp magic fffs:0  4.2 fs:0

log
log allocation block 98304
log size 0 bytes (0 calculated)

version         868257488               logstate        Error
bol             1471800577              eol             -207303747
requestsize     3188175108
statesize       946733180
logsize         158667651
maxtransfer     4240317308              devbsize        3206219344
head            -2084171703             head ident      0x7419382c
tail            1962320053              tail ident      0x7b4078b
                                debug           0xb40ecd
Bad chksum      0xf0ac3c00

fstyp -v /dev/rdsk/c4t0d0s2:c

Code:
 fstyp -v /dev/rdsk/c4t0d0s2:c
fstyp: cannot stat or open </dev/rdsk/c4t0d0s2:c>

# 20  
Old 10-15-2012
Plug this USB device into a Windows system, use disk administrator (or any other utility) to blow away the filesystem AND the partition. Get it showing up as 'free space'. Then create a new partition (primary partition) and format it fat32.

You could then test it by copying files to/from the Windows system.

Eject and move to Solaris and mount it. You'll probably need -F pcfs on your mount command to tell Solaris it's a Windows drive.

Now test copying to/from the Solaris system.
# 21  
Old 10-15-2012
Okay. I'll have to try that tomorrow. Working on getting a new dhtadm macro working :/
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Saving files

Hi all, I need to save my files at c, d or any drive location via script. Requirement. Say for example i have 10 files at location /usr/bi/ci location. 10 files naming a.ksh b,ksh c.ksh and so on I want to save the files and its content at some location (any drive on local... (4 Replies)
Discussion started by: j_panky
4 Replies

2. UNIX for Dummies Questions & Answers

USB-USB cable between linux and windows computers

Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive. Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies

3. Shell Programming and Scripting

bashrc not saving changes

I am trying to do some changes at bashrc file located at /etc directory of my server. First I tried to edit bashrc via FTP downloaded on my pc changed it and loaded back, but it seems like changes are not reflecting. Therefore I tried to change it via putty shel using vim bashrc command. but... (4 Replies)
Discussion started by: ninadgac
4 Replies

4. Red Hat

Live-cd Saving changes

Hi all, firstly apologies if this is in the wrong category. I have been making livecds (fedora based) and to change eg the background i use below in the ks file. this works fine, however when i install the livecd it loses the changes. How can i make the changes so that they stay when... (5 Replies)
Discussion started by: davewilks
5 Replies

5. Shell Programming and Scripting

Saving value as default value

Hi everybody, I have a prog who is filtering an image with a lot of parameters. The user has two choices : -Running the script with default values -Running the script manually (i.e choosing himself the parameters values) What I would like to do is that if he wants, the users can keep... (4 Replies)
Discussion started by: Moumou
4 Replies

6. Shell Programming and Scripting

saving a vi session

Apologies if this isn't quite the right thread I have a vi session and I have set a lot of tags with 'mx'. can I save this session preserving these tags so when I go back to the session I don't have to reset them all? cheers (0 Replies)
Discussion started by: ajcannon
0 Replies

7. UNIX for Dummies Questions & Answers

saving from unix into pc

hi, i access unix through secure shell (SSH) from my pc running on windows. Can i save files from unix directly into windows-run pc?. e.g. vi files into notepad??? thanks alot, -a (6 Replies)
Discussion started by: alikun
6 Replies

8. UNIX for Dummies Questions & Answers

Saving scripts to usb device

How do I save a script to a pen drive? (3 Replies)
Discussion started by: beginner1
3 Replies

9. UNIX for Dummies Questions & Answers

Saving to a floppy

How do I save a file to a floppy. I mounted the drive and it is there. Everytime I try to save to the floppy, it tells me the resource is busy. Please advise. Thanks, (1 Reply)
Discussion started by: umether
1 Replies
Login or Register to Ask a Question