Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My goal is to completely wipe the hard disk on my Desktop and install a new Ubuntu distro. It currently has Suse, Windows and a 64 bit ubuntu install that isn't working out (RAM issue).
I've read most of the threads on similar questions but they don't quite hit the mark.
I am logged in as Root, can boot up fdisk, list the partitions with df (it doesn't like some of them and lets me know it).
The syntax for fdisk is a bit opaque: i.e. the command fdisk /dev/sda1 gets me some info about sda1 but when I type: d /dev/sda1 to delete this partition, I get a response: "Partition number (1-4); I entered 1 and was directed to (m for help).
I tried to just install the 32 bit ubuntu and figured on asking it then to just hog the whole disk. The trouble is that I no longer have enough disk space to accomodate that.
I've always found FDISK to be a bit of a pain. Your best bet if you want to just do simple partitioning (ie: delete the Ubuntu partition and install something else there) is to use the built in partitioner in the Linux installer- just make sure to select manual. If you want to resize partitions- i.e. change the Ubuntu partition from 40gb to 30gb without deleting anything- then download and burn a bootable copy of Gparted.
fdisk /dev/sda m to list the commands
p to list the partitions
d to delete a partition (and next we have to give the partition number to be deleted)
1 to delete partition /dev/sda1
p to list the partitions
d to delete a partition etc
and finally:
w to write the partition table and exit
fdisk /dev/sda1 gets me some info about sda1 but when I type: d /dev/sda1 to delete this partition, I get a response: "Partition number (1-4); I entered 1 and was directed to (m for help).
/dev/sda1 is the partition, you need to fdisk the drive: /dev/sda
P to view all partitions
D (repeatedly) to delete each partition
W to write
Why not just install Ubuntu and let the installer use the whole disk? As far as I can recall, there is no need for you to do any "wipe" before you install.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.