Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I screwed up my partitioning apparently trying to get LVM and RAID1 going. The machine is an Intel dual core dt with 2 GB of RAM and 2 SATA drives, one 250g and the other 500g.

  1. Have onboard gigabit ethernet that apparently uses same driver as Realtek 811c. I installed a pcie gigabit card also 811c. At several points the eth0 has accessed the internet fine, but the eth1 will not communicate.
  2. I saw a "fix" for this online which from root: rmmod r8169. This immediately killed the working onboard card.
  3. I tried to re-install 11.10 figuring that would re-install r8169. However I messed something up in my partitioning and can't get a clean boot now.
  4. So I think after 12 re-installs or so and 2 days. I can get through it right if I can start over with clean drives, but I can't figure out how to empty them out with soft raid and LVM partitions.

Seems like I've had it going well and then trying to fix that one little problem, I go backwards.

share|improve this question

closed as too localized by qbi, Eric Carvalho, Uri Herrera, Seth, Raja Mar 3 '13 at 6:43

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

If your question is just how to effectively wipe your disks, the answer is to create new partition tables on them. This will effectively prevent any other data from being recognized as constituting or being part of any partition.

One utility that will let you do this is fdisk. For example:

ek@Apok:~$ sudo fdisk /dev/sda

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): o

Please note that if you want to do this to more than one disk (e.g., to everything that was originally in the LVM or RAID), and you want to use fdisk, you must run fdisk on each physical drive. (I ran it on /dev/sda in the example.)

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.