Sponsored Content
Full Discussion: Saving to usb
Operating Systems Solaris Saving to usb Post 302714503 by kuriosity_prime on Friday 12th of October 2012 09:00:44 AM
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)

 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
All times are GMT -4. The time now is 03:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy