Saving to usb - Page 2 | 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
    #8  
Old 10-11-2012
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 25 October 2014, 8:02 AM EDT
Location: Paris
Posts: 4,431
Thanks: 16
Thanked 474 Times in 427 Posts
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.
Sponsored Links
    #9  
Old 10-11-2012
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
 
Join Date: Feb 2012
Last Activity: 24 October 2014, 1:47 PM EDT
Location: Cornwall, UK
Posts: 832
Thanks: 44
Thanked 157 Times in 142 Posts
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.
Sponsored Links
    #10  
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 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
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 24 October 2014, 4:38 PM EDT
Location: Saskatchewan
Posts: 19,683
Thanks: 823
Thanked 3,352 Times in 3,139 Posts
Did you change the partitions in any way? Microsoft Windows doesn't show multiple partitions on removable drives...
Sponsored Links
    #12  
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 attempted to make a partition initially, but it kept coming back saying it couldn't partition the usb, so no.
Sponsored Links
    #13  
Old 10-11-2012
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
 
Join Date: Feb 2012
Last Activity: 24 October 2014, 1:47 PM EDT
Location: Cornwall, UK
Posts: 832
Thanks: 44
Thanked 157 Times in 142 Posts
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.)
Sponsored Links
    #14  
Old 10-11-2012
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 25 October 2014, 8:02 AM EDT
Location: Paris
Posts: 4,431
Thanks: 16
Thanked 474 Times in 427 Posts
@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

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 08:40 AM.