Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Restore .dmg containing multiple partitions to bootable USB flash drive Post 303031348 by Don Cragun on Tuesday 26th of February 2019 06:49:48 PM
Old 02-26-2019
If the dd from the hard drive successfully copied both slices to the destination file and you then successfully copied that file to your flash drive, one might guess that the partition table on your flash drive was expecting the partition where your second filesystem was mounted to be at a different place on the flash drive than where dd placed it.

That is why I asked how you partitioned your flash drive. If at least the first partitions on the partitions on both the source and destination drives are not the same size, the position of the 2nd partition on the flash drive will not be located where mount will see it as the root of that filesystem.

On the other hand, if you copy the filesystems separately, each filesystem will be copied onto the flash drive at the locations that fit the partition table for that flash drive and everything is likely to work (just as you are seeing in your experiments).
 

10 More Discussions You Might Find Interesting

1. Solaris

USB flash Drive

Hello all.. I have a Verbatim 2 GB flash drive. I also have Solaris 10 running on my workstation. If I am in the Windows environment, it detects the flash drive. But when I plug it while I am in solaris, nothing happens. How will solaris 10 detect my flash drive? What do I have to do? any... (4 Replies)
Discussion started by: vr76413
4 Replies

2. UNIX for Dummies Questions & Answers

USB flash drive is not mounting what to do...?

hello forum.. i am using RHEL 4.0 and my system is dual boot.normally the usb flash drive should be auto mount , but in my system i am unable to mount the drive plz help... i am a new user so plz give me in detail. thank u in advance. (5 Replies)
Discussion started by: manoranjan
5 Replies

3. SCO

mounting USB floppy drive /Flash drive in OSR 6.0

Can anybody help me out to mount USB flash /floppy drive in sco openserver 6.0 . (5 Replies)
Discussion started by: sureshdrajan
5 Replies

4. UNIX for Dummies Questions & Answers

Does HPUX 10.2 or 11.i support any USB flash drive?

Where can I get a driver that support usb flash drives for my unix machines. I need a solution to transfer data easily for techs. I am running C3750 and c8000 HP equipment. Or is there a way to mount them and use them without adding drivers? thanks! (0 Replies)
Discussion started by: jkend12
0 Replies

5. Solaris

removable usb flash drive

# rmformat Looking for devices... 1. Logical Node: /dev/rdsk/c0t0d0p0 Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0 Connected Device: HL-DT-ST DVD+-RW GWA4164B E113 Device Type: DVD Reader/Writer 2. Logical Node: /dev/rdsk/c2t0d0p0 Physical Node:... (26 Replies)
Discussion started by: seyiisq
26 Replies

6. Ubuntu

USB flash drive/keyfob will not automount

I am working on an Ubuntu Linux 8.10 system that I do not want to reboot. For some reason, USB flash drives (mass storage devices) now no longer automount. I want to restore that functionality without rebooting. I can manually mount and unmount these things by doing: cd /media sudo mkdir thing... (4 Replies)
Discussion started by: ropers
4 Replies

7. UNIX for Dummies Questions & Answers

Booting different partitions on a usb drive with syslinux

Hello, I have an 8gb usb flash drive that I had high aspirations of using for a recovery/install/messing around multipurpose drive. fdisk shows: $ sudo fdisk -l /dev/sdb password for woodnt: Disk /dev/sdb: 8036 MB, 8036285952 bytes 255 heads, 63 sectors/track, 977 cylinders Units =... (0 Replies)
Discussion started by: Narnie
0 Replies

8. Boot Loaders

How to install grub on USB flash drive?

I wanna install grub on my flash drive for rescue usage. My computer installs winxp, and I have fedora12 installed in vmware. I did like this: step1: format the flash drive as FAT in winXP. step2: in fedora12, mount the flash drive on /media/flash step3: excute the command: grub-install... (10 Replies)
Discussion started by: vistastar
10 Replies

9. UNIX for Advanced & Expert Users

how to increase cylinders on USB Flash Drive

Hello All, I faced a unique issue. I have written a script for transferring backup data on my host machine to a USB Flash drive. The Flash drive must be of 16GB size. So, my script creates two primary partitionon the USB flash drive. I require approx 5900 cylinders for the first partition on... (8 Replies)
Discussion started by: Pkumar Sachin
8 Replies

10. Ubuntu

Need help in making bootable USB flash with customized 12.04

I'd like to make bootable USB flash with 12.04 desktop on it with some additional packages and customizations, such as added language. What I tried so far - I went through pendrivelinux.com ISO to USB program and have working bootable USB with 12.04 desktop on it. The problem is all my changes... (8 Replies)
Discussion started by: migurus
8 Replies
mpartition(1)						      General Commands Manual						     mpartition(1)

Name
       mpartition - partition an MSDOS hard disk

Note of warning
       This  manpage  has been automatically generated from mtools's texinfo documentation, and may not be entirely accurate or complete.  See the
       end of this man page for details.

Description
       The mpartition command is used to create MS-DOS file systems as partitions.  This is intended to be used on non-Linux systems, i.e. systems
       where fdisk and easy access to SCSI devices are not available.  This command only works on drives whose partition variable is set.

       mpartition -p drive
       mpartition -r drive
       mpartition -I [-B bootSector] drive
       mpartition -a drive
       mpartition -d drive
       mpartition -c [-s sectors] [-h heads]
       [-t cylinders] [-v [-T type] [-b
       begin] [-l length] [-f]

       Mpartition supports the following operations:

       p      Prints a command line to recreate the partition for the drive.  Nothing is printed if the partition for the drive is not defined, or
	      an inconsistency has been detected.  If verbose (-v) is also set, prints the current partition table.

       r      Removes the partition described by drive.

       I      Initializes the partition table, and removes all partitions.

       c      Creates the partition described by drive.

       a      "Activates" the partition, i.e. makes it bootable.  Only one partition can be bootable at a time.

       d      "Deactivates" the partition, i.e. makes it unbootable.

       If no operation is given, the current settings are printed.

       For partition creations, the following options are available:

       s sectors
	      The number of sectors per track of the partition (which is also the number of sectors per track for the whole drive).

       h heads
	      The number of heads of the partition (which is also the number of heads for the whole drive).  By default, the geometry  information
	      (number of sectors and heads) is figured out from neighboring partition table entries, or guessed from the size.

       t cylinders
	      The number of cylinders of the partition (not the number of cylinders of the whole drive.

       b begin
	      The  starting offset of the partition, expressed in sectors. If begin is not given, mpartition lets the partition begin at the start
	      of the disk (partition number 1), or immediately after the end of the previous partition.

       l length
	      The size (length) of the partition, expressed in sectors.  If end is not given, mpartition figures out the size from the	number	of
	      sectors,	heads  and  cylinders.	 If these are not given either, it gives the partition the biggest possible size, considering disk
	      size and start of the next partition.

       The following option is available for all operation which modify the partition table:

       f      Usually, before writing back any changes to the partition, mpartition performs certain consistency  checks,  such  as  checking  for
	      overlaps	and  proper alignment of the partitions.  If any of these checks fails, the partition table is not changes.  The -f allows
	      you to override these safeguards.

       The following options are available for all operations:

       v      Together with -p prints the partition table as it is now (no change operation), or as it is after it is modified.

       vv     If the verbosity flag is given twice, mpartition will print out a hexdump of the partition table when reading it from and writing it
	      to the device.

       The following option is available for partition table initialization:

       B bootSector
	      Reads the template master boot record from file bootSector.

See Also
       Mtools' texinfo doc

Viewing the texi doc
       This  manpage  has  been automatically generated from mtools's texinfo documentation. However, this process is only approximative, and some
       items, such as crossreferences, footnotes and indices are lost in this translation process.  Indeed, these items have no appropriate repre-
       sentation  in  the manpage format.  Moreover, not all information has been translated into the manpage version.	Thus I strongly advise you
       to use the original texinfo doc.  See the end of this manpage for instructions how to view the texinfo doc.

       *      To generate a printable copy from the texinfo doc, run the following commands:

		     ./configure; make dvi; dvips mtools.dvi

       *      To generate a html copy,	run:

		     ./configure; make html

       A premade html can be found at `http://www.gnu.org/software/mtools/manual/mtools.html'

       *      To generate an info copy (browsable using emacs' info mode), run:

		     ./configure; make info

       The texinfo doc looks most pretty when printed or as html.  Indeed, in the info version certain examples are difficult to read due  to  the
       quoting conventions used in info.

mtools-4.0.13							      28Feb10							     mpartition(1)
All times are GMT -4. The time now is 06:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy