Saving to usb


 
Thread Tools Search this Thread
Operating Systems Solaris Saving to usb
# 8  
Old 10-11-2012
Please provide some clues about what you are doing and how it fails.

Using an usb disk is generally quite simple, especially when the file system is fat.
- Plug the device and it is automatically mounted, "df -h" will tell you where.
- Write your file on it using the CLI or a file manager.
- Unmount the device before unplugging it to avoid media corruption and that's it.

Disabling the automounter makes thinks more complex so is generally not advisable.
# 9  
Old 10-11-2012
I agree that you don't need to disable the automounter if the USB device is preformatted by another system but if you want to write a native Solaris filesystem to the USB device you will need to run fdisk and you cannot do that (without errors) with the automounter on.
# 10  
Old 10-11-2012
I see it when I run the mount command. I can move files to my /mnt, I can see them if I do an ls. When I try to find it on my windows machine, it says the drive is empty.

I'll try making it FAT32. And let you know the results.

---------- Post updated at 02:31 PM ---------- Previous update was at 12:17 PM ----------

So, changed the USB to FAT32, checked that it was picked up by solaris, no mount issues, no moving file issues, no sync issues, still showing nothing on the usb.
# 11  
Old 10-11-2012
Did you change the partitions in any way? Microsoft Windows doesn't show multiple partitions on removable drives...
# 12  
Old 10-11-2012
i attempted to make a partition initially, but it kept coming back saying it couldn't partition the usb, so no.
# 13  
Old 10-11-2012
Are you dismounting the USB device cleanly?

Code:
 
sync
umount /mnt

Otherwise the USB contents could be in cache and not actually written out before you disconnect the USB.

(To all experts reading this: yes, I know sync is probably no longer required but no harm done in doing it.)
# 14  
Old 10-11-2012
@kuriosity_prime What report the following commands (as root, ksh/bash syntax):
Code:
rmformat
iostat -En
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

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