vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi! How can I increase my / partition without reformatting and hosing my system? I used the default setting (couldn't find a way to set a bigger partition so I left that way, but now Kernel got too big!) when installing Debian with Sarge installer back in September 2004. Here's the log: # apt-get install kernel-image-2.6.9-1-k7 Reading Package Lists... Done Building Dependency Tree... Done Suggested packages: lilo kernel-doc-2.6.9 kernel-source-2.6.9 The following NEW packages will be installed: kernel-image-2.6.9-1-k7 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 15.4MB of archives. After unpacking 45.4MB of additional disk space will be used. Get:1 http://ftp.debian.org unstable/main kernel-image-2.6.9-1-k7 2.6.9-3 [15.4MB] Fetched 15.4MB in 2m5s (122kB/s) Selecting previously deselected package kernel-image-2.6.9-1-k7. (Reading database ... 100257 files and directories currently installed.) Unpacking kernel-image-2.6.9-1-k7 (from ..../kernel-image-2.6.9-1-k7_2.6.9-3_i386.deb) ... Setting up kernel-image-2.6.9-1-k7 (2.6.9-3) ... mkcramfs: ROM image write failed (wrote 237568 of 4603904 bytes): No space left on device? Failed to create initrd image. dpkg: error processing kernel-image-2.6.9-1-k7 (--configure): subprocess post-installation script returned error exit status 9 Errors were encountered while processing: kernel-image-2.6.9-1-k7 E: Sub-process /usr/bin/dpkg returned an error code (1) ANTian-AXP:/home/ant/download# apt-get install kernel-image-2.6.9-1-k7 ANTian-AXP:/home/ant/download# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda1 135468 135467 0 100% / tmpfs 518288 0 518288 0% /dev/shm /dev/hda8 20121812 3507344 15592336 19% /home /dev/hda7 369000 8266 341074 3% /tmp /dev/hda5 4807056 1836572 2726300 41% /usr /dev/hda6 2885780 224428 2514764 9% /var /dev/hdb5 5336664 1428984 3636588 29% /storage I tried to be smart and tried to remove old Kernel: # apt-get remove kernel-image-2.6.8-1-k7 Reading Package Lists... Done Building Dependency Tree... Done The following packages will be REMOVED: kernel-image-2.6.8-1-k7 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0B of archives. After unpacking 43.3MB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 101980 files and directories currently installed.) Removing kernel-image-2.6.8-1-k7 ... You are running a kernel (version 2.6.8-1-k7) and attempting to remove the same version. This is a potentially disastrous action. Not only will /boot/vmlinuz-2.6.8-1-k7 be removed, making it impossible to boot it, (you will have to take action to change your boot loader to boot a new kernel), it will also remove all modules under the directory /lib/modules/2.6.8-1-k7. Just having a copy of the kernel image is not enough, you will have to replace the modules too. I repeat, this is very dangerous. If at all in doubt, answer no. If you know exactly what you are doing, and are prepared to hose your system, then answer Yes. Remove the running kernel image (not recommended) [No]? I was too scared to try this so I aborted that plan. # uname -a Linux ANTian-AXP 2.6.8-1-k7 #1 Thu Nov 25 04:13:37 UTC 2004 i686 GNU/Linux How can I increase the partition so I can install the latest greatest Kernel? This is my Debian workstation box. Please note that I am not a Linux expert. I just know some ways around in it. Thank you in advance. -- "Caution is not cowardice; even the ants march armed." --Ugandan Proverb /\___/\ / /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx | |o o| | Ant's Quality Foraged Links: http://aqfl.net \ _ / Please remove ANT if replying by e-mail. ( ) |
| |||
| ANTant@zimage.com wrote: > Hi! How can I increase my / partition without reformatting and hosing my > system? .... use a live CD and use 'parted' -- << http://michaeljtobler.homelinux.com/ >> Love thy neighbor as thyself, but choose your neighborhood. - Louise Beal |
| |||
| mjt <mjtobler@removethis_mail.ru> wrote: > ANTant@zimage.com wrote: > > Hi! How can I increase my / partition without reformatting and hosing my > > system? > ... use a live CD and use 'parted' Will KNOPPIX v3.7 do? -- "Caution is not cowardice; even the ants march armed." --Ugandan Proverb /\___/\ / /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx | |o o| | Ant's Quality Foraged Links: http://aqfl.net \ _ / Please remove ANT if replying by e-mail. ( ) |
| |||
| mjt <mjtobler@removethis_mail.ru> wrote: > ANTant@zimage.com wrote: > > Hi! How can I increase my / partition without reformatting and hosing my > > system? > ... use a live CD and use 'parted' I am going to need some help after reading parted's manual on http://www.gnu.org/software/parted/m...no/parted.html ... What would I put for resize [minor start end] in my situation? I am not knowledgeable on disk partitions. Is there a GUI version like Partition- Magic that makes things easier? -- "Caution is not cowardice; even the ants march armed." --Ugandan Proverb /\___/\ / /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx | |o o| | Ant's Quality Foraged Links: http://aqfl.net \ _ / Please remove ANT if replying by e-mail. ( ) |
| |||
| <ANTant@zimage.com> wrote in message news:0Y2dnURrX6I9GyPcRVn-1w@mminternet.net... > mjt <mjtobler@removethis_mail.ru> wrote: > > ANTant@zimage.com wrote: > What would I put for resize [minor start end] in my situation? I am not > knowledgeable on disk partitions. Is there a GUI version like Partition- > Magic that makes things easier? Can you try QTParted? Cheeka |
| |||
| Srikanth NS <nssrikanth@hotmail.com> wrote: > <ANTant@zimage.com> wrote in message > news:0Y2dnURrX6I9GyPcRVn-1w@mminternet.net... > > mjt <mjtobler@removethis_mail.ru> wrote: > > > ANTant@zimage.com wrote: > > What would I put for resize [minor start end] in my situation? I am not > > knowledgeable on disk partitions. Is there a GUI version like Partition- > > Magic that makes things easier? > Can you try QTParted? Oooh! I like after downloading parted via apt-get, but I cannot seem to resize the / partition. It is greyed out. -- "Caution is not cowardice; even the ants march armed." --Ugandan Proverb /\___/\ / /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx | |o o| | Ant's Quality Foraged Links: http://aqfl.net \ _ / Please remove ANT if replying by e-mail. ( ) |
| |||
| > > > What would I put for resize [minor start end] in my situation? I am not > > > knowledgeable on disk partitions. Is there a GUI version like Partition- > > > Magic that makes things easier? > > Can you try QTParted? > Oooh! I like after downloading parted via apt-get, but I cannot seem to > resize the / partition. It is greyed out. Uh oh, it looks like I can't resize EXT2 and EXT3 partitions according to http://qtparted.sourceforge.net/features.en.html ... Any other ideas? I don't mind doing command lines if I get detailed instructions as long as my HDD data stay intact. -- "Caution is not cowardice; even the ants march armed." --Ugandan Proverb /\___/\ / /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx | |o o| | Ant's Quality Foraged Links: http://aqfl.net \ _ / Please remove ANT if replying by e-mail. ( ) |
| |||
| ANTant@zimage.com wrote: > Hi! How can I increase my / partition without reformatting and hosing my > system? You could boot up with knoppix liveCD, run QtParted and shrink/expand partitions to hearts content. After booting up on knoppix, you can also zip up and back up entire partitions.. change to /mnt/hda1 or whatever your hard disk is.. to zip up into one file*** tar -cfzv <filename.gz> . likewise when restoring go to the correct drive like /mnt/hda1 or whatever, and then to unzip the files** tar -zpvf <filename.gz> |
| |||
| In article <MrGdnQ_0qfzI3CDcRVn-tA@mminternet.net>, ANTant@zimage.com wrote: >Filesystem 1K-blocks Used Available Use% Mounted on >/dev/hda1 135468 135467 0 100% / >tmpfs 518288 0 518288 0% /dev/shm >/dev/hda8 20121812 3507344 15592336 19% /home >/dev/hda7 369000 8266 341074 3% /tmp >/dev/hda5 4807056 1836572 2726300 41% /usr >/dev/hda6 2885780 224428 2514764 9% /var >/dev/hdb5 5336664 1428984 3636588 29% /storage This is an example of why fewer partitions is better. If you had merged /, /usr and /var into one partition, you wouldn't have had this problem. |
| ||||
| In alt.os.linux.debian Lawrence D?Oliveiro <ldo@geek-central.gen.new_zealand> wrote: > In article <MrGdnQ_0qfzI3CDcRVn-tA@mminternet.net>, ANTant@zimage.com > wrote: > >Filesystem 1K-blocks Used Available Use% Mounted on > >/dev/hda1 135468 135467 0 100% / > >tmpfs 518288 0 518288 0% /dev/shm > >/dev/hda8 20121812 3507344 15592336 19% /home > >/dev/hda7 369000 8266 341074 3% /tmp > >/dev/hda5 4807056 1836572 2726300 41% /usr > >/dev/hda6 2885780 224428 2514764 9% /var > >/dev/hdb5 5336664 1428984 3636588 29% /storage > This is an example of why fewer partitions is better. If you had merged > /, /usr and /var into one partition, you wouldn't have had this problem. I believe those were the defaults in Sarge installer. This is ignoring hdb. /storage was my former Red Hat Linux partition and backup HDD. I am still learning Linux. -- "Caution is not cowardice; even the ants march armed." --Ugandan Proverb /\___/\ / /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx | |o o| | Ant's Quality Foraged Links: http://aqfl.net \ _ / Please remove ANT if replying by e-mail. ( ) |