Saving to usb


 
Thread Tools Search this Thread
Operating Systems Solaris Saving to usb
# 1  
Old 10-10-2012
Saving to usb

Greetings.

I am trying to save a file to a usb from solaris 10.

If I do rmformat, I see my usb, but can't find a location to tell things to save to or figure out how to save/view the files on the disk.

Any help/thoughts/etc would be appreciated.

Thanks!

~K
# 2  
Old 10-10-2012
What filesystem is the drive formatted to? Solaris probably can't understand NTFS.
# 3  
Old 10-10-2012
Yup. Didn't think of that.

Am i wrong in thinking that once it recognizes the device, a folder should be listed where I can move files to?
# 4  
Old 10-10-2012
There was a thread on this but I can't find it. I think so but aren't 100% sure. Make sure it's FAT, then try again, and post what happens...
# 5  
Old 10-11-2012
It depends on whether you are purely backing up to USB (ie, a Solaris filesystem on the USB is what you want) or you want to move files to a Windows filesystem format on the USB for transportation to another (Windows) system.

For a Solaris filesystem the basic steps are:-

1.

Code:
 
rmformat -l

To see whether the hardware device is seem by the system. (you've already done that). This gives you the device name, /dev/rdsk/<whatever>

2. You need to stop the automatic volume management services while you manipulate the USB device

On Solaris 10: (post if you have a prior version)

Code:
 
svcadm disable volfs

3. Create a partition on the USB device using:

Quote:
fdisk /dev/rdsk/<whatever>
4. Create a filesystem (assume UFS here) on the USB device:

Code:
 
newfs /dev/rdsk/<whatever>

5. Create an arbitary mount point (typically a top level directory using mkdir) eg.

Code:
 
mkdir usbstick

6. Mount the USB filesystem under this mount point

Code:
 
mount /dev/dsk/<whatever> /usbstick

You can then copy stuff to your new USB based filesystem under the /usbstick directory.

After you're done you can sync and umount the filesystem and remove the stick.

If the USB device is already formatted with another filesystem eg. NTFS, then you should be able to just do steps 5 & 6.

Hope that helps.

Post back any questions.

---------- Post updated 11-10-12 at 09:32 AM ---------- Previous update was 10-10-12 at 07:33 PM ----------

Forgot to say that if the USB device is preformatted on another system eg, fat32, you will need to tell the mount command (in step 5) that it's not a native Solaris filesystem by using the -F switch on mount (see man pages).

For example:

Code:
mount -F pcfs /dev/dsk/c5t0d0s0 /mnt

or whatever suitable -F argument to tell Solaris what format to look for.
# 6  
Old 10-11-2012
I had found another article and followed the directions on it. It can find the usb, I have the directory showing (it said to do mount /dev/dsk/<blahblah> /mnt. I'm not having any errors returned, but it's not saving to the usb.

Is there a way to start over and follow hicksd8? (It's an FAT usb, btw)

(Have I mentioned that the first time I used Solaris was when they said "Congrats! Here's your lab, now go make it work")

Thanks!

~K
# 7  
Old 10-11-2012
I think that you might need to format it fat32 (on another machine).

If the mount command gives you no errors, you should be able to see it listed in the output of the command:

Quote:
mount
Once you can see it there you can copy files to the USB device by copying them to /mnt (or whatever mountpoint you used).
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