LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-21-2004, 11:03 AM   #1
tszhim
Member
 
Registered: Feb 2003
Posts: 54

Rep: Reputation: 15
partition problems


I had installed debian with only two partition
512MB for swap, the remaining space for /, I am going to setup a server using debian, is the setting ok?

Also, if i want to make /usr, /home, /tmp...etc

can i make it without reinstalling the debian again?

thanks
 
Old 05-21-2004, 11:25 AM   #2
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
and this has to with laptops and handhelds?

but yes u can do that, you'll have to create the partitions, mount them to where you want them and then you'll have edit /etc/fstab
 
Old 05-21-2004, 11:29 AM   #3
masinick
Member
 
Registered: Apr 2002
Location: Greenville, SC
Distribution: Debian, antiX, MX Linux
Posts: 632
Blog Entries: 15

Rep: Reputation: 104Reputation: 104
Re: partition problems

Quote:
Originally posted by tszhim
I had installed debian with only two partition
512MB for swap, the remaining space for /, I am going to setup a server using debian, is the setting ok?

Also, if i want to make /usr, /home, /tmp...etc

can i make it without reinstalling the debian again?

thanks
I assume you're looking for opinions and advice, so I'll offer mine. IF you are using the system only for personal use, then a single swap partition and a single root (/) file system is fine. But if you are intending to create a server for the purposes of creating an Email, Web, FTP, or print server (or any other kind of server) that you intend to be sharing with the public, consider starting over and creating partitions with somewhat intelligent choices for size and location. For instance, you may consider spreading the workload across more than one disk and do performance load sharing. You also want to isolate /tmp, /var, and /usr, and /home from / if you are building a production system. Backups will be much easier, as will moves and upgrades.

Using GNU Parted, cfdisk, and judiciously modifying the file system table (/etc/fstab, and sometimes /etc/mtab) it is possible to do this on the fly, one file system at a time. The way to do it is to use GNU Parted to reduce the size of the existing partitions to make room for new partitions. Then you temporarily create a directory and a mount point and use a two way pipe with the tar command to copy from one location to another. Then once things are copied, you check them out at the temporary mount point, and if they are correct, you remove the data from the former location, unmount the temporary mount point and create a new mount point for the directory.

Example:

mkdir /mnt/home

mount /dev/hda7 /mnt/home
(cd /home; tar cvpf - . ) | (cd /mnt/home; tar xvpf - )

umount /mnt/home

Add /dev/hda7 /home entry to /etc/fstab
mount -a
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition problems jespr Linux - Newbie 6 10-13-2005 02:59 AM
partition problems in FC@ spookyechc Fedora 1 10-14-2004 10:35 AM
Partition problems DarkSun4241 Linux - Newbie 4 08-04-2004 04:20 PM
Partition problems mistahemu Linux - General 1 03-31-2003 10:30 AM
help! partition problems! Aman9090 Linux - Newbie 1 09-20-2002 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration