[Ubuntu PA] Disk Imaging Solutions
Kevin Valentine
kevin.valentine at gmail.com
Mon Jan 28 15:15:15 GMT 2008
Yep, tried exactly that start/stop setup before. Just tested it again
for good measure :) I still get messages like this in fdisk:
Partition 1 has different physical/logical endings
Partition 1 does not end on cylinder boundary
For now, I will just disregard them. I'm able to mount the drive and
read/write without issues. They don't appear to be errors, just
warnings. My main reason for concern was that I don't see the same
behavior after doing the same partition layout in gparted. Doesn't make
much sense. Oh well, time to move forward.
btw, I vaguely recall seeing similar output in fdisk when looking at a
disk's partitions after I installed Puppy to it. Puppy does it's own
partitioning depending upon the setup you choose.
-kevin
Brian Stempin wrote:
> Kevin,
> All of my partitions came out fine. There were 2 things I did
> differently than you:
>
> 1. I did not use dd to delete the first 512 bytes of the disk. I
> believe that parted re-writes this part of the disk once you use the
> mklabel command, so I thought it was kind of pointless to run the
> extra command.
>
> 2. My start value for a partition was the stop value for the last
> partition.
> Example:
> parted --script /dev/sdb mklabel msdos
> parted --script /dev/sdb mkpartfs primary linux-swap 0 64MB
> parted --script /dev/sdb mkpartfs primary ext2 64MB 124MB
> parted --script /dev/sdb mkpartfs primary ext2 124MB 80GB
>
> assuming an 80GB hard drive.
>
>
> On Jan 27, 2008 9:34 PM, Kevin Valentine <kevin.valentine at gmail.com
> <mailto:kevin.valentine at gmail.com>> wrote:
>
> Brian Stempin wrote:
> > Just a bit of an update:
> >
> > 1. I was able to repartition a USB disk without having to power
> cycle
> > or eject/inject using parted.
> > 2. I was able script the creation of partitions.
> >
> > A little more on Item 2:
> > I'm currently writing a full-fledged script to handle partitioning.
> > I'm currently working on the error handling and input sanitation.
> > There is, however, one thing that I have yet to figure out. When
> > parted creates a partition, it requires a begin and end point.
> I have
> > yet to find a way to tell it to just use the rest of the remaining
> > space. I have an idea of how to solve this, but it's going to
> require
> > some leg-work on my part.
> Yes, this is exactly what I've been experiencing. I also checked
> on the
> power cycling. Definitely not necessary with parted. After you
> create
> your first two partitions, have you taken a look at them with fdisk?
> The first partition always comes out fine, it's the rest of them that
> get mangled. If all three of your partitions look good in fdisk,
> let me
> know what you are using for start and stop values. I've been through
> the official parted manual so many times now. I think what we
> need to
> do is specify sectors instead of disk size. This will most likely
> need
> some kind of calculation.
>
> It seems like this should be such a simple task but it's getting
> messier
> by the day. I'm glad you're working on this too. I'll also let you
> know if I find any info on the start and stop parameters.
>
> -kevin
>
> --
> Ubuntu-us-pa mailing list
> Ubuntu-us-pa at lists.ubuntu.com <mailto:Ubuntu-us-pa at lists.ubuntu.com>
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-pa
>
>
More information about the Ubuntu-us-pa
mailing list