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

Re: Repartitioning harddisk

Vegard|drageV wrote:
Hi folks.
I'm going to do some partitioning on a Debian(-Woody)-based system
(Skolelinux, norwegian). A 10GB harddrive has the following partitions

cm-84:/home/erlend# fdisk -l /dev/hda

Disk /dev/hda: 255 heads, 63 sectors, 1232 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       117    939771   83  Linux
/dev/hda2           118      1232   8956237+   f  Win95 Ext'd (LBA)
/dev/hda5           118      1141   8225248+  8e  Linux LVM
/dev/hda6          1142      1232    730926   83  Linux

I'm going to clean this disk totally of data (of course with
backup)and repartition it. How can I make two (or more) partitions,
with no spare storage in extended partitions or logical volumes? And
with wich tool/program?  I've checked out fdisk's man-pages, but I
didn't understand how to use it to do these operations.

Cheers, Vegard

Bob|boB replies:

Well I would advise you use LVM2 with ext3 for all filesystems excluding the root filesystem which IMHO is better left on a physical partition.

With LVM2 you will be able to guess sizes of your partitions and then if you need resize them to make them 100% full.

I wonder why you want to do this since in itself it is not much of a security enhancement and in various filesystems can make your system behave very badly (/var, /tmp) or be unfriendly (/home).

If it is useful to you take a look at my current partitioning which is a fairly ample setup of a desktop system.

/dev/hda7 / ext3 defaults,errors=remount-ro 0 1 /dev/mapper/vg1-lvhome /home ext3 defaults 0 2 /dev/mapper/vg1-lvtmp /tmp ext3 defaults 0 2 /dev/mapper/vg1-lvusr /usr ext3 defaults 0 2 /dev/mapper/vg1-lvvar /var ext3 defaults 0 2 /dev/hda5 /0windata vfat rw,user,gid=1000,uid=1000 0 2

and here is the space occupation:

bob@t40:~$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda7               120411     81341     32646  72% /
tmpfs                   517656        16    517640   1% /dev/shm
                        667945    505757    133680  80% /home
                        118995      4145    108502   4% /tmp
                       2780960   2255144    384504  86% /usr
                       1439290    773978    603872  57% /var
/dev/hda5             35960416  31126352   4834064  87% /0windata
none                     10240      2760      7480  27% /dev

Here you will find some more loosely related notes:


Reply to: