Sponsored Content
Full Discussion: .usb file
Operating Systems Solaris .usb file Post 302984017 by Corona688 on Wednesday 19th of October 2016 06:53:07 PM
Old 10-19-2016
It involves raw disk access, ignoring all partition layout -- just starting at sector zero and going all the way to the end. In Linux this is easy, in Windows it's a pain.

If you read the data from a compact disk beginning to end this way, and saved it to file, you get an ISO file. No translation is necessary, the data started that way.

Code:
dd bs=4M if=/dev/cdrom of=myfile.iso

You may need root access to get at the device.

If you read all the data in a USB thumb drive from beginning to end and saved it to file, you'd get a disk image:

Code:
dd bs=4M if=/dev/mythumbdrive of=myusbdrive.usb

You will definitely need root access to get at a raw disk device.

What "kind" of image depends on what it was formatted as. Unlike a CDROM, USB storage devices are just raw block devices which can hold anything and everything. The only difference between a disk formatted as GPT and one formatted as a Solaris partition type is what data is contained in those raw blocks. If you back up the contents, you've backed up literally everything. There is no difference between a thumbdrive image, a hard drive image, an SSD image -- it's all just blocks which make as much sense on any of them.

To put an image back into the device, you'd reverse the process:

Code:
dd bs=4M if=myfile.usb of=/dev/myusbdrive

You will definitely need raw disk access to do this, which is dangerous, because:

Moderator's Comments:
Mod Comment UNIX WILL NOT STOP YOU FROM TRASHING YOUR HARD DRIVE IF YOU GIVE THE WRONG DEVICE.

UNIX WILL NOT STOP YOU FROM TRASHING A DEVICE THAT'S IN USE.

BE VERY VERY SURE WHICH DEVICE IS WHICH AND THAT YOUR SYSTEM HAS NOT MOUNTED IT.


Giving more specific instructions would mean knowing which linux. if it's ubuntu a lot of effort may be needed to defeat the automounter, etc.
This User Gave Thanks to Corona688 For This Post:
 

9 More Discussions You Might Find Interesting

1. Cybersecurity

Usb??????????????

it's true that USB port has no security?? (0 Replies)
Discussion started by: lolo_vang
0 Replies

2. Programming

Development for USB

Hi, I am working with Sun Solaris 9(Generic_112233-07 sun4u sparc SUNW,Sun-Blade-100)and I need to develop the USB part in our application using C/C++.In our application,we are monitoring the UPS by Serial port and now I have to develop the USB part to mointor the UPS. So I need your help to... (0 Replies)
Discussion started by: smartgupta
0 Replies

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

4. Shell Programming and Scripting

script to detect a file from inserted usb and puts into a Variable

There is a same named log file that I have on my 2 different android phones. When I plug it into my computer, it appears in the media folder, For example the first android phone: /media/F6BA-0AF5/folder/A.log I want to put that into a variable to be manipulated.... (3 Replies)
Discussion started by: tobenguyen
3 Replies

5. OS X (Apple)

USB File Transfer MacOS 10.6.5 to Android 2.2?

I'm trying to get a MacBook Air (MBA) running 10.6.5 to recognize a Samsung Galaxy S (Android 2.2) vis the USB interface for simple file transfers back and forth. Nothing works so far. I've tried many things! :wall: I noticed when I connect my phone to the MBA, there is a message in system.log... (2 Replies)
Discussion started by: Neo
2 Replies

6. Solaris

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 (20 Replies)
Discussion started by: kuriosity_prime
20 Replies

7. UNIX for Advanced & Expert Users

USB-Ethernet/Ethernet-USB

Hi, I have posted several times regarding my application. In a nutshell, I have a server application that logs attached instrument data over USB and Ethernet. My restriction here is having two wires or more to plug all instrumentation in - at least one for USB and at least one for ethernet. ... (16 Replies)
Discussion started by: fedora18
16 Replies

8. UNIX for Advanced & Expert Users

Waking Up USB External Hard Drive for file archiving

Hello Experts, I hope I'm writing to the correct category for my question. I have a very basic shell script for doing file archiving to the external usb hard drive (WD studio edition II 2TB formatted as FAT32 for compatibility). The shell script only needs to run once per day. It basically... (8 Replies)
Discussion started by: johankor
8 Replies

9. AIX

Has anyone created JFS2 file system on a USB drive attached to AIX server?

We have an IBM Power 710. It has a USB port on the front. I have done some searching and see that there is information out there on how to create a JFS2 file system on USB drives. A few have commented that they would not recommend it, if the server is important, may crash the server... Just... (0 Replies)
Discussion started by: mbenedi
0 Replies
All times are GMT -4. The time now is 07:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy