Saving to usb | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Saving to usb

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-10-2012
kuriosity_prime kuriosity_prime is offline
Registered User
 
Join Date: Sep 2012
Last Activity: 2 December 2013, 8:29 AM EST
Location: Saint John, NB
Posts: 21
Thanks: 4
Thanked 1 Time in 1 Post
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
Sponsored Links
    #2  
Old 10-10-2012
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 2 September 2014, 2:46 PM EDT
Location: Saskatchewan
Posts: 19,273
Thanks: 774
Thanked 3,237 Times in 3,035 Posts
What filesystem is the drive formatted to? Solaris probably can't understand NTFS.
Sponsored Links
    #3  
Old 10-10-2012
kuriosity_prime kuriosity_prime is offline
Registered User
 
Join Date: Sep 2012
Last Activity: 2 December 2013, 8:29 AM EST
Location: Saint John, NB
Posts: 21
Thanks: 4
Thanked 1 Time in 1 Post
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
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 2 September 2014, 2:46 PM EDT
Location: Saskatchewan
Posts: 19,273
Thanks: 774
Thanked 3,237 Times in 3,035 Posts
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...
Sponsored Links
    #5  
Old 10-11-2012
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
 
Join Date: Feb 2012
Last Activity: 2 September 2014, 9:27 AM EDT
Location: Cornwall, UK
Posts: 795
Thanks: 39
Thanked 148 Times in 133 Posts
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.
Sponsored Links
    #6  
Old 10-11-2012
kuriosity_prime kuriosity_prime is offline
Registered User
 
Join Date: Sep 2012
Last Activity: 2 December 2013, 8:29 AM EST
Location: Saint John, NB
Posts: 21
Thanks: 4
Thanked 1 Time in 1 Post
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
Sponsored Links
    #7  
Old 10-11-2012
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
 
Join Date: Feb 2012
Last Activity: 2 September 2014, 9:27 AM EDT
Location: Cornwall, UK
Posts: 795
Thanks: 39
Thanked 148 Times in 133 Posts
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).
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Saving files j_panky Shell Programming and Scripting 4 04-20-2011 04:30 AM
Saving value as default value Moumou Shell Programming and Scripting 4 07-20-2009 08:50 AM
saving a vi session ajcannon Shell Programming and Scripting 0 09-20-2007 04:07 AM
saving macros for VIM yngwie UNIX for Dummies Questions & Answers 3 05-14-2007 12:26 AM
saving from unix into pc alikun UNIX for Dummies Questions & Answers 6 03-28-2007 02:03 AM



All times are GMT -4. The time now is 02:55 PM.