Archive for December, 2007

NTFS resize on DSL (Damn Small Linux)

open a terminal
optionally set proxy


export http_proxy=http://proxy.somedomain:8080/
export http_proxy=http://ntlmuser:ntlmpasswd@proxy.somedomain:8080/

open the MyDSL Panel


mydslPanel.dsl

From “System”, install gcc1-with-libs, gnu-utils and linux-kernel-headers (probably only need the first)

Point your Browser to http://linux-ntfs.org/ and download the source for ntfsprogs to /tmp. the usual compiling:


cp /tmp/
tar -xjvf ntfsprogs-*.tar.bz2
cd ntfsprogs-*/
./configure && make

in the subfolder are the utils, most interesting at the moment, ntfsresize.


cd ntfsprogs
./ntfsresize --help
./ntfsresize -i /dev/hda1
./ntfsresize -i /dev/hda5
./ntfsresize -n -s 6500M /dev/hda5
# before, check that your battery won't run out and your data is backed up.
./ntfsresize -s 6500M /dev/hda5

Note: all the *.dsl in /tmp that are downloaded by mydslPanel can be reused with mysdl-load.
Just copy them to a stick, samba- or ssh-server and copy them back after a restart.

No Comments