Re: any easy way to resize the root partition ?
Posted: 29. Jun 2012, 14:07
The autoinstall option in the standard installation CD assigns 6GB to the / partition if a hard drive is >14GB, 1GB in swap and the rest as /home.
Linux for the Lazy Slacker
https://forum.salixos.org/
Code: Select all
zazlox[~]$ su
Password:
root[zazlox]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 37G 2.6G 33G 8% /
/dev/sda3 188G 220M 178G 1% /home
tmpfs 1.6G 0 1.6G 0% /dev/shm
/dev/sdc 1.9G 1.9G 42M 98% /media/disk
Code: Select all
root[zazlox]# cat /etc/fstab
/dev/sda2 swap swap defaults 0 0
/dev/sda1 / ext4 noatime,defaults 1 1
/dev/sda3 /home ext4 defaults 1 2
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,users,rw,umask=00 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
Code: Select all
root[zazlox]# cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
#compact # faster, but won't work on all systems.
# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/salix.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,20,255,20,255,20
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,29,0,255
# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt
# Append any additional kernel parameters:
append="quiet vt.default_utf8=1"
prompt
#timeout = 300
# VESA framebuffer console @ 1024x768x64k
vga = 791
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda1
label = linux
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
Code: Select all
root[zazlox]# fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002bff8
Device Boot Start End Blocks Id System
/dev/sda1 * 63 78124094 39062016 83 Linux
/dev/sda2 78124095 89835479 5855692+ 82 Linux swap
/dev/sda3 89835480 488397167 199280844 83 Linux
Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006a159
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 78124094 39062016 83 Linux
/dev/sdb2 78124095 476568224 199222065 83 Linux
/dev/sdb3 476568225 488397167 5914471+ 82 Linux swap
Disk /dev/sdc: 2020 MB, 2020904448 bytes
63 heads, 62 sectors/track, 1010 cylinders, total 3947079 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
root[zazlox]#
Code: Select all
lba32
append="quiet splash vt.default_utf8=1"
boot = /dev/sda
compact
bmp-retain
bitmap = /boot/salix.bmp
bmp-colors = 255,0,255,0,255,0
bmp-table = 60,6,1,16
bmp-timer = 65,27,0,255
prompt
timeout = 40
change-rules
reset
vga=791
# Salix
image = /boot/vmlinuz
root = /dev/sdb1
label = Linux
read-only