Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Oct 2014, 21:51
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How do I format my Hard Drive for Puppy?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
Peter Diachun

Joined: 20 Sep 2005
Posts: 4

PostPosted: Tue 20 Sep 2005, 08:05    Post subject:  How do I format my Hard Drive for Puppy?  

This is the first time I have tried to post a question, so tell me if I am doing anything wrong.

I really like Puppy, but I have messed up my machine. I want to reformat the entire Hard Drive. I do not want to save anything. I want to start fresh with the best format for Puppy, which I understand to be fat 32. How do I do this? Is there a simple program either on puppy or that I can download which will allow me to format my hard drive?

Thanks!

Peter
Back to top
View user's profile Send private message 
PeterSieg

Joined: 04 May 2005
Posts: 361
Location: Germany, 37603

PostPosted: Tue 20 Sep 2005, 08:45    Post subject: format drive  

Hi. Your post is ok.

1. You should get familiar with unix/linux. Sooner or later you will need that!

2. A hard disk needs partitions. To maintain these, open a console terminal
and run the program: cfdisk
The program should be self explanatory. Make sure the partition type matches the later format: ex.: 0B = W95 fat32
Make also sure to write the changes to the drive prior to exiting cfdisk!

3. then run mkfs.msdos <partition> ex.: mkfs.msdos /dev/hda1
This formats the 1st. primary partition on the master of primary ide interface.
Here you need two know where you hard disk is attached (watch boot screen).

At next boot, Puppy should be able to find /dev/hda1 and create the pup00x
file on it..

PS

_________________
Have fun Smile
Back to top
View user's profile Send private message Visit poster's website 
Guest
Guest


PostPosted: Tue 20 Sep 2005, 10:31    Post subject:  

If you wish to use the whole hard drive for Puppy you would be better off formatting it as an ext2 or ext3 partition as they the main Linux filesystems and Puppy is after all Linux.

To do this boot your Puppy CD and if using a later version that allows you to select if you wish to write to the hard drive or not take the option not to write to the hard drive.

Click on rxvt on the desktop and type in cfdisk and read the instructions on how to create a partition. When you have created a partition for Puppy ensure that it is type Linux native (ext2 or 83), write the changes using write.

Next step is to format the partition type in this command to do that:

mke2fs /dev/hda1

this will format the first partition as an ext2 filesystem, then proceed to the Start/Setup wizards and do a Hard drive install.
Back to top
raffy

Joined: 25 May 2005
Posts: 4777
Location: Manila

PostPosted: Tue 20 Sep 2005, 16:43    Post subject: Tutorial  

You can find a tutorial in the link below
_________________
Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11130
Location: The Peoples Republic of California

PostPosted: Tue 20 Sep 2005, 19:47    Post subject:  

My school of thought is a bit conservative when it comes to partitioning and formatting drives.

Basically, what I do is reboot between the partitioning and formatting. Maybe its not necessary to do this. I'm not trying to suggest what is right or wrong, as much as share with you all, my approach to repartitioning and formatting drives.
Back to top
View user's profile Send private message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Wed 21 Sep 2005, 11:41    Post subject:  

In Linux you do not have to reboot all the time.

You can create partitions and format them and do an install without rebooting.
You can also install programs without having to reboot.

Linux is not Windows.
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Wed 21 Sep 2005, 12:25    Post subject:  

WARNING!!
ian wrote:
You can create partitions and format them and do an install without rebooting.


Take Ian's advice with a grain of salt:

It is a known behaviour that if you create partitions on a disk with other mounted partitions, the partition table does not get fully written until you shut down. Meanwhile it is kept into memory and you can continue working but there is always the risk of corruption. Actually you receive a warning when trying to write the partition table.

So in some cases is advisable to reboot, in some cases is not. Check the man pages for the version of the partition tool you are using (fdisk ,cfdisk, qtparted or any other you use) to confirm if you should or you should not.

I underline 'version' because different versions of the same tool may have different expectations.

You've been warned Wink

I am conservative on this regard. If I don't have any reason for not rebooting, then I prefer to do all my partitioning after booting from a liveCD that does not mount any partitions to the HDD (i.e. puppy booting with option 3). I frequently move partitions around to meet my testing needs and I haven't had any problems that way.
Back to top
View user's profile Send private message Visit poster's website 
max
Guest


PostPosted: Wed 12 Oct 2005, 14:52    Post subject:  

hi, im having the same problem. i think i trashed my hdd on my old lappy, and im trying to get a clean install. it wont recognise my partition though... i keep getting the message that it is an invalid partition, but its the very same /dev /hda1 linux partition i keep making. im at a loss now, what should i do?
Back to top
Bruce B


Joined: 18 May 2005
Posts: 11130
Location: The Peoples Republic of California

PostPosted: Wed 12 Oct 2005, 16:18    Post subject:  

Are you doing a type 2 install?

If so you could boot from CD disc, then start cfdisk in a terminal. Delete whatever partitions you want to delete, which may be all of them.

Make a primary type 83 partition for your Puppy install.

Make a primary type 82 for your swap partition.

Format the swap partition with mkswap.

Do not format the type 83 partition because Puppy will format it when it installs. Also not formatting it prevents thing like Puppy mounting the partition when you boot with the CD disc.

If you are not intending an option 2 install, disregard this post.

---------------

If you still have weird problems with the hard drive - I suggest nuke it with
Darik's Boot and Nuke

http://dban.sourceforge.net/
Back to top
View user's profile Send private message 
max
Guest


PostPosted: Wed 12 Oct 2005, 16:46    Post subject:  

hey thanks for the quick reply.

could you go into depth on the mkswap, im a real newbie, and the only things i know are what ive read ont he fourms and experimened with in the past day or so.

also i dont think i can do the nuke thing, im using a rather small vaio that is without a floppy drive (the dvd drive is external even)

thanks!
Back to top
Guest
Guest


PostPosted: Wed 12 Oct 2005, 16:53    Post subject:  

sorry for the double post...

i did the partitioning, and tried the mkswap command. it told me to specify a partition, so i typed "mkswap /dev/hda2" and it came up with "swap area needs to be at least 40kb, when i specificed a 300MB swap partiton...

what did i do wrong?
Back to top
Bruce B


Joined: 18 May 2005
Posts: 11130
Location: The Peoples Republic of California

PostPosted: Wed 12 Oct 2005, 21:08    Post subject:  

I don't know what you did wrong - if anything.

Run cfdisk and see what it says about /dev/hda2

For details

type mkswap --help

The sequence you need to go through is:

1) make a type 82 partition
2) format it with mkswap

-------------------------

If you are doing an Option 1 install the swap partition will be used automatically

If Option 2, you will need to tell it to use the swap partition, I'll explain how later if you need help.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0687s ][ Queries: 11 (0.0032s) ][ GZIP on ]