LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-13-2008, 10:11 AM   #1
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Rep: Reputation: 15
Unhappy re Sidux


Hello everybody, newbie

Unfortunately I cannot register in Sidux forums as I am told that I give the wrong answers. Many times I have tried to no avail, so it is here that I have to ask two questions, one of which is specifically Sidux oriantated:

a. Through my weekly apt-get update and apt-get dist-upgrade of Sidux, my root (/) partition has swollen to about 9.1GB. It seems that every time the downloaded files are added and nothing is deleted.

Am I supposed to run some command for it ? Was not able to find something relevant neither in the manual nor in the wiki or in the forums (as guest).


b. I have installed Sidux in a multi distro Linux only machine, having a / partition currently of 23.1 GB (after enlarging it from originally 10.3 GB for the "overswelling" above mentioned reason) and a /home partition of 66.57 GB. They are installed in an IDE 250 GB hd.

I want to enlarge /home but there is no space in my hd so I want to add a new hd
of 500 GB but it has to be SATA as my mobo will not take any further IDE.

The question is how to add this new hd as a continuation to the existing /home, making it a total of 566.57 GB.

It is needed to hold video files.



Thank you for your attention,


borgibo Unhappy
 
Old 07-13-2008, 08:19 PM   #2
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
b. create a partition on your new hd, then mount it and run cp -ar /home /mnt/<mountpointfordrive>, then you can unmount the old home and mount the new one and MAKE SURE IT WORKS before you delete your old home
 
Old 07-13-2008, 08:35 PM   #3
aus9
LQ Guru
 
Registered: Oct 2003
Posts: 5,124

Rep: Reputation: Disabled
I do not use Sidux but I have used the live cd.

a) sounds like either you are not emptying your /tmp or other temp files

and/or

your package manager has not be set to delete old ones. You could install a different front end to apt like aptitude etc and configure that.

a2) If that is a bit difficult for you...in the meantime you can have a look at /var for .deb files....a search using root powers may find them

eg

find /var -name *.deb

However you need to be careful deleting files because some may still be required.....so I suggest IMHO you are better off using a front end (gui) to apt to manage your packages.

b) You have 3 main options....

1) cull the current drive to appropriate disk space so not needing a second drive.....save da money

2) install sata....configure bios to detect it....use sidux to partition and format it and then some more options

i) in /etc/fstab mount it as folder /data
using root powers
mkdir /data

check your current fstab to see if you want to use UUID or /dev style and create the entry in fstab for example

UUID=e705446a-0d69-11dd-8e2f-0dcbd9ac6bd7 /data ext3 relatime 1 1

to get the UUID the first time you can manually mount the sata
eg

mount -t ext3 /dev/sda1 /data and check /dev/disk/by-uuid for the UUID

If sidux used /dev/style change fstab to

/dev/sda1 /data ext3 relatime 1 1

but those numbers on the right hand side can change but you will need to post your fstab so we can see what to make the count.

ii) you can move all of /home to new drive

use manual mount to get UUID...use root powers to move all of home to new sata partition
then change fstab to reflect new device and reboot to test.

iii) if you save money....fix your package manager
if you can afford a new drive....create one partition for /data and another partition for /images

and use partimage to backup your data to /images and then burn them to a dvdrw
 
Old 07-13-2008, 10:28 PM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
# aptitude autoclean

Of course, since you're running the wrong package manager, you may have to to do ...
# apt-get autoclean
 
Old 07-15-2008, 07:08 AM   #5
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
First a big huge thank you to all of you that answered my request.

Please bear in mind that I am a novice in computers, have had no schooling or experience of any operating system other than Linux, hence my questions may seem outrageous.

1)

a. I first tried the easiest for me: #apt-get autoclean, which deleted 1.9GB of files within seconds ! So my / partition now stands at 7.2GB not bad considering that I have both kde and gnome managers installed.

b. Then I went over and checked:
/tmp = 41.2KB
/usr = 3.5GB
/var = 2GB >cache = 1.8GB >apt = 1.7GB> archives = 1.7GB.
No files to be deleted I think. Of course they were probably there but were deleted with: #apt-get autoclean.

2)

Concerning the addition of a sata 500GB hd:

a. AceofSpades19 says: "b. create a partition on your new hd, then mount it and run cp -ar /home /mnt/<mountpointfordrive>, then you can unmount the old home and mount the new one and MAKE SURE IT WORKS before you delete your old home"

I can create a ext3 partition on the new hd with gparted but: how do I mount it? I can run: "cp -ar /home /mnt/sda1 (provided that I have created the whole hd (500GB) as partition sda1), will this command annex it to the already existing /home of 66.57GB so that I will have a single /home of total 566.57GB ?

How do I "unmount the old home and mount the new one" ? or "delete your old home".

Sorry for the questions but I am new to computers.

b. aus9 says: "ii) if you save money....fix your package manager
if you can afford a new drive....create one partition for /data and another partition for /images

and use partimage to backup your data to /images and then burn them to a dvdrw"

As I understand it you suggest that I create two /homes, one /home/data and another /home/images to segregate the data and image files. If so it seems a marvellous idea to keep video files(images) separated from documents(data), unless "data" and "images" have a different meaning in the IT world.

borgibo the illiterate
_____
 
Old 07-15-2008, 10:14 AM   #6
aus9
LQ Guru
 
Registered: Oct 2003
Posts: 5,124

Rep: Reputation: Disabled
nope

its your computer....you can use root powers to create any folder you like

I meant /data not /home/data

but you can do whatever you like.....its a free world.

check out www.partimage.org to see what images can do for you.....allows you to make some mistakes and recover

good hunting
 
Old 07-15-2008, 12:25 PM   #7
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
@aus9

Well you have confused me a lot ! but I insist !

"2) install sata....configure bios to detect it....use sidux to partition and format it and then some more options

i) in /etc/fstab mount it as folder /data
using root powers
mkdir /data"

nr 2) I can manage easily.
nr 2)i):do I: #mkdir /etc/fstab/data ?

Here is my fstab:

/etc/fstab - static information about the filesystems - fstab(5)
#
# /etc/fstab is only read by programs, and not written; it is the duty of the
# system administrator to properly maintain this file.
#
# Instead of giving the device explicitly, one may indicate the filesystem
# that is to be mounted by its UUID or VOLUME label. This will make the
# system more robust: adding or removing a disk changes the disk device name
# but not the filesystem UUID or VOLUME label.
#
# <filesystem> <mountpoint> <type> <options> <dump> <pass>

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part13, /dev/sda13
UUID=9bf93d16-3350-4bd9-af40-4f563bd7e6f2 / ext3 defaults,noatime,errors=remount-ro 0 1

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part14, /dev/sda14
UUID=b0f2072c-e288-4a34-b322-3644680af5a4 /home ext3 defaults,noatime 0 2

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part1
/dev/sda1 none swap sw 0 0

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part10, /dev/sda10
UUID=cc6d2807-24af-4b12-9327-db8a06e0c210 /media/disk1part10 ext3 auto,users,exec,noatime 0 2

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part11, /dev/sda11
UUID=fd514a51-9db1-471f-a99b-a38446ea8dc9 /media/disk1part11 ext3 auto,users,exec,noatime 0 2

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part12, /dev/sda12
UUID=58513114-cb17-11dc-820b-abf1f327668c /media/disk1part12 ext3 auto,users,exec,noatime 0 2

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part2, /dev/sda2
UUID=6ea9c97a-9296-40c3-b6be-4d89c0c67a00 /media/disk1part2 ext3 auto,users,exec,noatime 0 2

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part3, /dev/sda3
UUID=8bed6cf6-627d-4e8d-9b2c-1b3ed2a84511 /media/disk1part3 ext3 auto,users,exec,noatime 0 2

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part5, /dev/sda5
UUID=52177897-3872-417b-8ec8-96e1c73aa65a /media/disk1part5 ext3 auto,users,exec,noatime 0 2

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part6, /dev/sda6
UUID=c658c40c-a32a-4ec6-8c59-ac6b5a509be9 /media/disk1part6 ext3 auto,users,exec,noatime 0 2

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part7, /dev/sda7
UUID=f40763c1-c690-4d28-83ae-6dcc393405f1 /media/disk1part7 ext3 auto,users,exec,noatime 0 2

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part8, /dev/sda8
UUID=24c041a9-ae26-49ee-9506-26d46d4ba80b /media/disk1part8 ext3 auto,users,exec,noatime 0 2

# automatically added, WDC_WD2500JB-00R-WD-WCANK5059687-part9, /dev/sda9
UUID=8ea8fa40-402e-4091-b6f2-0126daa1fb2a /media/disk1part9 ext3 auto,users,exec,noatime 0 2

# automatically added, HL-DT-ST_DVDRAM_GSA-H12N_K0F6B1G2752
/dev/cdrom /media/cdrom udf,iso9660 user,noauto 0 0

# automatically added
/dev/fd0 /media/fd0 auto rw,user,noauto 0 0

# temporary filesystem in virtual memory
#tmpfs /tmp tmpfs defaults 0 0


It seems it uses /dev/sda for my only hd which is IDE though. So I suppose the new 500GB sata will be sdb;

Now I am confused with "/dev/sda1 /data ext3 relatime 1 1

"ii) you can move all of /home to new drive" How? jv is me the user in my machine. Sidux is installed: "/" in "/dev/sda13" (23.50GB), and "/home" in "/dev/sda14" (66.57GB).

Do I go: #mv /dev/sda14/home/jv /dev/sdb1/home/jv ?

Question: The old home at /sda14 if moved will free 66.57GB ? To be used otherwise or will it be annexed to the new /home ?

If I have given enough information about my machine, would it be asking too much from you to write for me the required commands ?


borgibo the illiterate
 
Old 07-15-2008, 08:22 PM   #8
aus9
LQ Guru
 
Registered: Oct 2003
Posts: 5,124

Rep: Reputation: Disabled
1) quote "Now I am confused with "/dev/sda1 /data ext3 relatime 1 1"
well I said eg or for example....meaning they were examples only not to be as official.

thanks for posting your fstab.

2) do I mkdir /etc/fstab/data no please...you add entries or amend entries using root powers.

eg all of your fstab seems to work thru having your distro automatically adding entries.

try amending that to fixed entry eg....(for example)
move this line
UUID=9bf93d16-3350-4bd9-af40-4f563bd7e6f2 / ext3 defaults,noatime,errors=remount-ro 0 1

to immediately below this line
# <filesystem> <mountpoint> <type> <options> <dump> <pass>

so that it reads

# <filesystem> <mountpoint> <type> <options> <dump> <pass>
UUID=9bf93d16-3350-4bd9-af40-4f563bd7e6f2 / ext3 defaults,noatime,errors=remount-ro 0 1

3) make sure you copy and paste or put a hash (#) in front of the old entry....which stops it being read as a real line.

4) before I forget...please please make a backup of your file before making any changes....name it something like
/etc/fstab-old

so on reboot if it fails to boot ....you use a live cd to mount the partition and rename the old fstab file to become the fstab file.

5) yes I agree ...if you have no other devices sdb is likely to be the new drive.

but I disagree you need a new drive....the aptitude autoclean should have worked.

its not entirely clear to me why you have so many partitions.....its a free world...but did you know each partition costs you free space

eg...if you have only 2 partitions..../ and swap...total free space will always be greater than

3 or more partitions with same data due to the way to partition system operates.

I am not suggesting you should use only 2 partitions I am just illustrating the extremes so you get the idea.

6) You may wish to do some reading on the matter?

I am a blunt person...so will try to seduce you to my way heh heh but others may differ. Its a free world.

--------IMHO------

partition system to have 3 primary partitions

/ about 7 G
swap about 500 megs
/data (balance of drive)

I do not do any big file downloading but if I do it goes to data and is backed up to dvdrw
I use a live cd to partimage (image) my / to write to /data....backed up to dvdrw

Partimage will compress...I choose that option ....so 7G full will come roughly 2G image which is small enough to be burnt to dvdrw....but I never go that far.

I have a manual page of details of how to re-create my partition table...using a live cd of course....so if I have to buy a new drive....I can migrate very easily.

--------end of opinion-------

7) to your question on howto move home drive....I still think you are wrong to do so...clean up your current drive and gain more space by reducing the number of partitions....learn to backup your stuff....learn to use a live cd....save da money

cheerio
 
Old 07-16-2008, 03:50 AM   #9
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
@aus9

Hi,

The reason I have too many partitions is that as a newcomer to computing I am trying to learn about this kind of beast, and I must say that I am extremelly impressed by its capabilities ! So I have two machines with a total of about 20 Linux only OSs, experimenting,
as I know nothing about MS, Unix, Apple etc.
Usually I have one partition for root and one for home.
Being spoiled as I am I download a lot of video files, presently more than 50GB using miro, with Sidux, which works perfectly with miro for about two months now. I did the same with another distro, downloaded about 65GB of video files but although it was ok at the beginning after the first upgrade I could not watch them any more ! I tried a lot of ways around to no avail. I could not watch them even using another distro. So I deleted them.
Since Sidux works ok and hoping it will do so in the future, I need that 500GB new disc to fill it up with cartoons, old films etc. Probably an additional one will be needed as well ! 1TB . That is all that my mobo will take, 2 IDE and two sata.

My other machine is specialized in sound for music files. Best distros for sound I discovered: 64Studio, Jacklab and Blag.
Still have to try Musix and earOS which refuses to install.

That is my story !

Thanks for the suggestions about fstab, I must say that I am reluclant to try them presently, afraid that I will make a mistake and I do not know how to use a live cd if I do.


A Big thank you again,


borgibo the illiterate
 
Old 07-16-2008, 04:39 AM   #10
aus9
LQ Guru
 
Registered: Oct 2003
Posts: 5,124

Rep: Reputation: Disabled
ahh thats why you have so many fstab entries....well let me introduce you to

http://www.virtualbox.org/

I use it myself....which is why I do not need so many partitions.

d/load an iso ....no need to burn it....run it in vbox to test....too easy.
 
Old 07-16-2008, 07:44 AM   #11
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
oooh!

thanks for the link aus9, I have been reading about virtualisation a lot, different types like quemu, or something similar, and others, but did not know how to grab them ! I suppose I will be able to learn now through this site.

Having all those distros installed though helps me jump from one to the other when for example I want to evaluate sound quality of a specific stream, usually at bbc radio 3's channel.

Have a nice night, I am in Greece, full summer 35`C 2.45pm.


borgibo
 
Old 07-16-2008, 01:38 PM   #12
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
Further to my yesterday's post, I ran today again #apt-get autoclean which removed another 0.2GB of files within 1-2 seconds and then I remembered I read somewhere about the command #apt-get autoremove which I used, removing some more 0.8GB of files!!! It took quite some time though. Now root stands at a respectable 6.2GB.


borgibo the illiterate.
 
Old 07-16-2008, 03:32 PM   #13
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
I would stay away from "apt-get autoremove". Tends to bork things up by removing needed stuff.
"apt-get clean" removes more than autoclean. Have a look at "man apt-get".
 
Old 07-17-2008, 09:23 AM   #14
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
more news:

today my files stand at 4.8GB!!!!!

I did run #apt-get clean, possibly that did the trick and deleted another 1.4GB.

Now referring to the new hhd that I want to add as a continuation to my existing /home:

I unearthed a 5 month old instruction which I had never applied, concerning a similar request by me for an external hdd though, for reasons of being too difficult for me at that time and because the distro to be applied to did not behave and could not read the video files after an update. 65GB of them, which I erased.

Initially that distro had lvm + graphical interface and I could proceed if I wanted to, something that I could not do with Sidux until I realized that the problem was the lack of the interface called system-config-lvm. I discovered that in the excellent Kpackage and installed it. Now I can proceed which I will do within the next 2 days when I receive the new WD500GB hdd. And inform about the outcome, either laughing or crying if I mess up everything and lose all my files!!

The instructions by Stevea are as follows:..............."see system-config-lvm........
No problem w/ more questions. But you must answer the question of how you want to use the 590GB drive+partition.

If the usb drive is a permanent addition and you want to go the LVM route then ....
use gparted to make one big "unformatted" partition (/dev/sb1 perhaps) the full size of the volume.

Open "uninitialized entities" and click "initialize entity"

Open the system-config-lvm and select "unallocated volumes", then select the external drive "/dev/sdb" (or whatever) and select the big partition ("Partition 1" I expect).

Click - "create new volume group", give it a volume group name like "mygroup" and use the other defaults.
"mygroup" now appears under "Volume Groups"

Next you needd to create a logical volume (similar idea as a partition). So select "mygroup Logical View" and click "create new logical volume". Make up a logical volume name like "myhomevol". Select a size [pulldowd 'Gigabytes' and max out the slider]. Select filesystem "ext3" , select "mount" and "mount when rebooted" and add a mountpoint like "/home2". Click OK. You now have a ~500GB ext3-on-lvm mounted as /home2.

If you type "mount" as root in a terminal you should see a line like ...
/dev/mapper/mygroup-myhomevol on /home2 type ext3 (rw)

==
Next step you want to copy all of the existing /home to /home2
As root type the command
mv /home/* /home2

Next we want the LVM you mount at /home next time and we want the current /home to not mount at all next time.
So edit the file /etc/fstab as root and you'll see two relevant lines like ...
/dev/sda3 /home ext3 defaults 1 2
/dev/mygroup/myhomevol /home2 ext3 defaults 1 2
--
Change these to read like
# /dev/sda3 /home ext3 defaults 1 2
/dev/mygroup/myhomevol /home ext3 defaults 1 2
--
Then reboot and you should see that /home has all the user directories and everything is happy and you have an unused old /home partition at /dev/sda2 or whereever.

Use system-config-lvm to "initialize entity" and then add /dev/sda3 to existing volume group "mygroup". UNder "myhome Logical view" select "myhome". Then "edit properties" and move the slider to max ~590GB in your case. Click "ok" and you are done.

The "resize ext3" popup will take some time to complete."

This is not exactly my present system but very much so.

will proceed with trepidation and will inform you !!!!


Lesson up to now:
Go: #apt-get update, apt-get dist-upgrade, apt-get clean


Thank you all for your time spent on my problems and the wonderful information that you supplied. All for free. I suppose we are entering a better phase in the world.


borgibo the illiterate
 
  


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
How Can I Add Repos To Sidux ? DOTT.EVARISTI Linux - General 2 07-07-2008 08:46 AM
LXer: The ease of sidux LXer Syndicated Linux News 0 03-05-2008 10:20 AM
Sid vs. Sidux Zaskar Debian 23 10-27-2007 07:56 PM
siduxcc and kio-sidux craigevil Debian 6 09-07-2007 08:54 AM
Sidux info - for anyone interested. bigjohn Linux - Distributions 22 02-01-2007 12:26 PM


All times are GMT -5. The time now is 12:37 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