Re: Advice requested

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/02/2015 11:28 PM, o1bigtenor wrote:
> gdisk
> 
> n 1 2048 1923518592
> 
> Will that change any of the data on the sectors?
> 
> Please - - - is there any way of getting specific commands?

gdisk /dev/md0

{Yes, you put /dev/md0 on the gdisk command line.}

then select 'n' for new partition.  It should offer to create partition
#1.  It should offer 2048 as the starting sector.  It should offer the
last legal sector as the ending sector.  It will probably assign type
8300 by default too.  All good.  Just make sure it *does* get the
starting sector right (2048).

When it gives you its prompt again, select 'p' to print it out so you
can double check.  Then select 'w' to write the new partition table.  It
will warn you, but yes you are sure (as long as the start sector is 2048).

You will end up back at the shell prompt.  You may or may not have seen
a partition device name in the messages.  If not, use "partprobe /dev/md0".

Finally, use "dmesg |tail" to see the last few kernel messages -- the
new device name should show up there.  Or use "blkid" to see all known
partition names.

Whatever name it is, fsck it with the '-n' option.

Then mount it.

Then make backups.

Phil
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux