LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-28-2013, 07:34 AM   #1
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Rep: Reputation: Disabled
configuring a partition on a older notebook - best practice


hello dear Linux-Experts


just installed another Notebook that i have found here.
(note i have newer ones - with pretty good hardware and big drives.
This one - is a older Toshiba - with not so good data / harddrive and other performance data. ) I use it - beside the two other and stronger ones - as a notebook that i take along with me - when i travel around... So there are no extensive features wanted - and no big performance.

But i like it for its big screen and the nice and very good keyboard. So i installed the opensuse 13.1 - from scratch and it worked great.

Note: used the LXDE - Environment - and not the KDE. which ends up in some leightweight view. Butg this is okay for me.

the first overall-impression after the installation is great. All works great. I cannot see any loss in speed and all seems fine.

Here some data: guess that i can configure the drive in a more efficient way like i did:

note - this might be agreat way to learn - how to do best in configuring.

BTW - how can a reorganisation of the partition AFTER the installation. Is this doable - what do you say.!?

Which values for the following are appropiate and useful!?

rootfs
home
extended-partition


what do you advice!?

Would you do this with gparted or with the linux-tools that are shipped with opensuse 13.1?


and last but not least. Are there any values that i can request via Terminal!?



Code:
4	./.gnome2_private
34712	.
martin@linux-74t6:~> zypper lr -d
# | Alias                     | Name                               | Aktiviert | Aktualisieren | Priorität | Typ   | URI                                                                 | Dienst
--+---------------------------+------------------------------------+-----------+---------------+-----------+-------+---------------------------------------------------------------------+-------
1 | openSUSE-13.1-1.10        | openSUSE-13.1-1.10                 | Ja        | Nein          |   99      | yast2 | cd:///?devices=/dev/disk/by-id/ata-MATSHITADVD-RAM_UJ-841S,/dev/sr0 |       
2 | repo-debug                | openSUSE-13.1-Debug                | Nein      | Ja            |   99      | NONE  | http://download.opensuse.org/debug/distribution/13.1/repo/oss/      |       
3 | repo-debug-update         | openSUSE-13.1-Update-Debug         | Nein      | Ja            |   99      | NONE  | http://download.opensuse.org/debug/update/13.1/                     |       
4 | repo-debug-update-non-oss | openSUSE-13.1-Update-Debug-Non-Oss | Nein      | Ja            |   99      | NONE  | http://download.opensuse.org/debug/update/13.1-non-oss/             |       
5 | repo-non-oss              | openSUSE-13.1-Non-Oss              | Ja        | Ja            |   99      | NONE  | http://download.opensuse.org/distribution/13.1/repo/non-oss/        |       
6 | repo-oss                  | openSUSE-13.1-Oss                  | Ja        | Ja            |   99      | NONE  | http://download.opensuse.org/distribution/13.1/repo/oss/            |       
7 | repo-source               | openSUSE-13.1-Source               | Nein      | Ja            |   99      | NONE  | http://download.opensuse.org/source/distribution/13.1/repo/oss/     |       
8 | repo-update               | openSUSE-13.1-Update               | Ja        | Ja            |   99      | NONE  | http://download.opensuse.org/update/13.1/                           |       
9 | repo-update-non-oss       | openSUSE-13.1-Update-Non-Oss       | Ja        | Ja            |   99      | NONE  | http://download.opensuse.org/update/13.1-non-oss/                   |       
martin@linux-74t6:~>
and the following data:
Code:
martin@linux-74t6:~> df - aTh
df: „-“: Datei oder Verzeichnis nicht gefunden
df: „aTh“: Datei oder Verzeichnis nicht gefunden
martin@linux-74t6:~> df -aTh
Dateisystem    Typ             Größe Benutzt Verf. Verw% Eingehängt auf
rootfs         rootfs            20G    3,5G   15G   19% /
devtmpfs       devtmpfs         933M     16K  933M    1% /dev
tmpfs          tmpfs            945M       0  945M    0% /dev/shm
tmpfs          tmpfs            945M    3,1M  942M    1% /run
devpts         devpts              0       0     0     - /dev/pts
/dev/sda6      ext4              20G    3,5G   15G   19% /
proc           proc                0       0     0     - /proc
sysfs          sysfs               0       0     0     - /sys
securityfs     securityfs          0       0     0     - /sys/kernel/security
tmpfs          tmpfs            945M       0  945M    0% /sys/fs/cgroup
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/systemd
pstore         pstore              0       0     0     - /sys/fs/pstore
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/cpuset
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/cpu,cpuacct
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/memory
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/devices
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/freezer
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/net_cls
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/blkio
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/perf_event
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/hugetlb
systemd-1      autofs              0       0     0     - /proc/sys/fs/binfmt_misc
debugfs        debugfs             0       0     0     - /sys/kernel/debug
hugetlbfs      hugetlbfs           0       0     0     - /dev/hugepages
mqueue         mqueue              0       0     0     - /dev/mqueue
tmpfs          tmpfs            945M    3,1M  942M    1% /var/lock
tmpfs          tmpfs            945M    3,1M  942M    1% /var/run
/dev/sda7      ext4              31G     84M   30G    1% /home
fusectl        fusectl             0       0     0     - /sys/fs/fuse/connections
gvfsd-fuse     fuse.gvfsd-fuse     0       0     0     - /run/user/1000/gvfs
gvfsd-fuse     fuse.gvfsd-fuse     0       0     0     - /var/run/user/1000/gvfs
/dev/sr0       iso9660          4,2G    4,2G     0  100% /run/media/martin/openSUSE-13.1-DVD-i5860091
/dev/sr0       iso9660          4,2G    4,2G     0  100% /var/run/media/martin/openSUSE-13.1-DVD-i5860091
martin@linux-74t6:~>
what would you say

btw - what can be seen as overhead and useless here. Are there any partitions that are not needed!?

How to optimize all

which is a minimalistic partition-table!?

Last edited by sayhello_to_the_world; 12-29-2013 at 07:25 PM.
 
Old 12-28-2013, 11:55 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Your actual linux disk partitions are /,/home and I assume you have swap but it is not listed in the output of df. Everything else in the post is a virtual file system.

Yes it is possible to modify your partitions and gparted running from a live CD is the suggested method. Your / is 20GB and /home is 31GB. Without knowing how the rest of the drive is partitioned nor how you intend to use the linux on this computer it is not possible to say how to optimise the partition layout.

The minimum number of partitions you actually need is one i.e. swap may not be needed. Again without knowing how you intend to use the laptop I would suggest having one. An extended partition allows one to create more then four partitions on a hard drive that uses a Master Boot Record (MBR).
 
Old 12-28-2013, 05:53 PM   #3
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Original Poster
Rep: Reputation: Disabled
hello dear Michaelk, good evening

many thanks for the many information and tipps. Great to get so many valuable advices.
Note: i konw that the notebook is quite very old - and i want to use it as a "third" notebook.
I have two others which are faster / better and much newer.

your ideas are very good and i think i will apply some of them.


and well - i think that the following data is valuable and interesting too

# How are the hard drives partitioned
fdisk -l

Code:
linux-74t6:/home/martin # fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes, 156301488 sectors
Units = Sektoren of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0001159f

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *    46153728   156301311    55073792    f  W95 Ext'd (LBA)
/dev/sda2         4208640    46153727    20972544   8e  Linux LVM
/dev/sda4          321536     4208639     1943552   8e  Linux LVM
/dev/sda5        46155776    50364415     2104320   82  Linux swap / Solaris
/dev/sda6        50366464    91553791    20593664   83  Linux
/dev/sda7        91555840   156280831    32362496   83  Linux

Partitionstabelleneinträge sind nicht in Platten-Reihenfolge
linux-74t6:/home/martin #
and - i guess that this is valuable too:

# Memory and swap information
cat /proc/meminfo

Code:
linux-74t6:/home/martin # cat /proc/meminfo
MemTotal:        1934352 kB
MemFree:         1194208 kB
Buffers:           42092 kB
Cached:           317732 kB
SwapCached:            0 kB
Active:           386272 kB
Inactive:         305744 kB
Active(anon):     333616 kB
Inactive(anon):    16848 kB
Active(file):      52656 kB
Inactive(file):   288896 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:       1055368 kB
HighFree:         394304 kB
LowTotal:         878984 kB
LowFree:          799904 kB
SwapTotal:       2104316 kB
SwapFree:        2104316 kB
Dirty:               132 kB
Writeback:             0 kB
AnonPages:        332200 kB
Mapped:           101800 kB
Shmem:             18280 kB
Slab:              28724 kB
SReclaimable:      17808 kB
SUnreclaim:        10916 kB
KernelStack:        2224 kB
PageTables:         3100 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3071492 kB
Committed_AS:    1378132 kB
VmallocTotal:     122880 kB
VmallocUsed:       13160 kB
VmallocChunk:     109208 kB
HardwareCorrupted:     0 kB
AnonHugePages:     90112 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB
DirectMap4k:       20472 kB
DirectMap4M:      888832 kB
linux-74t6:/home/martin #



and the command parted -l

Code:
martin@linux-74t6:~> su
Passwort: 
linux-74t6:/home/martin # parted -l
Model: ATA TOSHIBA MK8026GA (scsi)
Disk /dev/sda: 80,0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 4      165MB   2155MB  1990MB  primary                   lvm, type=8e
 2      2155MB  23,6GB  21,5GB  primary                   lvm, type=8e
 1      23,6GB  80,0GB  56,4GB  extended                  boot, lba, type=0f
 5      23,6GB  25,8GB  2155MB  logical   linux-swap(v1)  type=82
 6      25,8GB  46,9GB  21,1GB  logical   ext4            type=83
 7      46,9GB  80,0GB  33,1GB  logical   ext4            type=83


Warning: Unable to open /dev/sr0 read-write (Das Dateisystem ist nur lesbar).
/dev/sr0 has been opened read-only.
Error: Can't have a partition outside the disk!                           
Model: MATSHITA DVD-RAM UJ-841S (scsi)
Disk /dev/sr0: 4442MB
Sector size (logical/physical): 2048B/2048B
Partition Table: unknown

linux-74t6:/home/martin # parted -l

well - if i have a closer look at the data then i think it is intersting to see the following.


Code:
6      25,8GB  46,9GB  21,1GB  logical   ext4            type=83
7      46,9GB  80,0GB  33,1GB  logical   ext4            type=83

Questions - that come up to my mind:

Well - i miss the words /home
where is this description!?
Can we migrate position 6 and 7 into one
in other words: what do position 6 and 7 do - i guess that i can make one out of both - and name it - home

what do you say!?



well again - i think that i will apply some ideas that you provide


greetings

Last edited by sayhello_to_the_world; 12-29-2013 at 07:20 PM.
 
Old 12-28-2013, 09:18 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Did you create the LVM partitions when you installed SuSE? It didn't appear that they were being used?
 
Old 12-29-2013, 08:26 AM   #5
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Original Poster
Rep: Reputation: Disabled
hello dear Michaelk


many thnanks for the hints - yes

i did it when i installed SuSE.

Quote:
Did you create the LVM partitions when you installed SuSE? It didn't appear that they were being used?
what do you mean by - it din´t appear that they were being used.

well Michael - as i regard it now - i would like to use it not!!

At the moment i am willing to turn it to off! i think that using LVM will complicates things.

well - i now think that i will not use LVM.

At the moment i have put in a Gparted-Disk into the Notebook -
With Gparted i have many many options of configuring

BTW - can i set the LVM-Flag with (in) the Gparted or
would you prefer to do that with the installation-DVD - the installation-medium opensuse 13.1?

Note - i a m big fan of using Gparted because it has a nice and clear overview on all the partitions.

But if i cannot set the LVM-Flag to off - i will make all the changes - with the installation-medium - the opensuse 13.1 dvd


What do you advice!?

love to hear from you

greetings
 
Old 12-29-2013, 08:51 AM   #6
moonfrog
Member
 
Registered: Oct 2008
Location: San Diego County, CA
Distribution: LFS, Gentoo
Posts: 64

Rep: Reputation: 23
Gparted does have the lvm setting in the "manage flags" dialog
 
Old 12-29-2013, 06:55 PM   #7
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Original Poster
Rep: Reputation: Disabled
hello and good evening


Many thanks for the hints - i am happy to get such hints.

in the meantime i ve made a new configuration with Gparted



Code:
linux-ibyp:/home/martin # parted -l
Model: ATA TOSHIBA MK8026GA (scsi)
Disk /dev/sda: 80,0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 2      1049kB  13,1GB  13,1GB  primary   ext4            boot, type=83
 1      13,1GB  80,0GB  66,9GB  extended                  type=05
 5      13,8GB  20,2GB  6349MB  logical   linux-swap(v1)  type=82
 6      20,2GB  80,0GB  59,8GB  logical   ext4            type=83


Warning: Unable to open /dev/sr0 read-write (Das Dateisystem ist nur lesbar).
/dev/sr0 has been opened read-only.
Error: Can't have a partition outside the disk!                           
Model: MATSHITA DVD-RAM UJ-841S (scsi)
Disk /dev/sr0: 4442MB
Sector size (logical/physical): 2048B/2048B
Partition Table: unknown
btw - is this okay to have such a big extended partition!?


see also the following output:

Code:
linux-ibyp:/home/martin # df -aTh
Dateisystem    Typ             Größe Benutzt Verf. Verw% Eingehängt auf
rootfs         rootfs            12G    3,5G  7,9G   31% /
devtmpfs       devtmpfs         933M     16K  933M    1% /dev
tmpfs          tmpfs            945M       0  945M    0% /dev/shm
tmpfs          tmpfs            945M    3,1M  942M    1% /run
devpts         devpts              0       0     0     - /dev/pts
/dev/sda2      ext4              12G    3,5G  7,9G   31% /
proc           proc                0       0     0     - /proc
sysfs          sysfs               0       0     0     - /sys
securityfs     securityfs          0       0     0     - /sys/kernel/security
tmpfs          tmpfs            945M       0  945M    0% /sys/fs/cgroup
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/systemd
pstore         pstore              0       0     0     - /sys/fs/pstore
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/cpuset
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/cpu,cpuacct
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/memory
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/devices
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/freezer
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/net_cls
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/blkio
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/perf_event
cgroup         cgroup              0       0     0     - /sys/fs/cgroup/hugetlb
systemd-1      autofs              0       0     0     - /proc/sys/fs/binfmt_misc
debugfs        debugfs             0       0     0     - /sys/kernel/debug
hugetlbfs      hugetlbfs           0       0     0     - /dev/hugepages
mqueue         mqueue              0       0     0     - /dev/mqueue
tmpfs          tmpfs            945M    3,1M  942M    1% /var/run
tmpfs          tmpfs            945M    3,1M  942M    1% /var/lock
/dev/sda6      ext4              55G     91M   53G    1% /home
fusectl        fusectl             0       0     0     - /sys/fs/fuse/connections
gvfsd-fuse     fuse.gvfsd-fuse  0,0K    0,0K  0,0K     - /run/user/1000/gvfs
gvfsd-fuse     fuse.gvfsd-fuse  0,0K    0,0K  0,0K     - /var/run/user/1000/gvfs
/dev/sr0       iso9660          4,2G    4,2G     0  100% /run/media/martin/openSUSE-13.1-DVD-i5860091
/dev/sr0       iso9660          4,2G    4,2G     0  100% /var/run/media/martin/openSUSE-13.1-DVD-i5860091
linux-ibyp:/home/martin #
look forward to hear from you again

greetings
say

Last edited by sayhello_to_the_world; 12-29-2013 at 07:09 PM.
 
Old 12-29-2013, 07:08 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Yes, an extended partition is just a container for the logical partitions. This lets you create more then 4 partitions with a disk that uses a Master Boot Record.

Last edited by michaelk; 12-29-2013 at 07:10 PM.
 
Old 12-29-2013, 07:23 PM   #9
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Original Poster
Rep: Reputation: Disabled
hello dear Michaelk

great to hear from you - note: you are very very quick!

many many thanks - you helped me alot! And your answers are very clear and
also very convincing

thx for your great work you do here at the forums.



greetings ;-)
say

note: now i am going to make a "Solved" thread out of this one! - greetings

Last edited by sayhello_to_the_world; 12-29-2013 at 07:25 PM.
 
  


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
Linux Mint 11 stalls during installation to older HP Pavillion notebook FluffyNipper Linux - Newbie 6 09-24-2011 02:33 PM
Attempting install on older notebook, error when partitioning. Desolate One Gentoo 4 09-01-2010 09:28 AM
Which OLDER version of Slackware for ancient notebook? Don_Nadie Slackware 19 07-20-2010 02:14 PM
older live CD for 8 year old apple notebook? Mohtek Linux - General 1 10-01-2006 05:22 PM
older notebook, 333mhz just some suggestions please joshthehappy Linux - Laptop and Netbook 3 05-20-2004 10:59 PM


All times are GMT -5. The time now is 01:13 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration