Quote:
Originally Posted by gosha
...I should mount read-only /usr to get gzip and ssh, right?
|
I'd written, above:
Quote:
Originally Posted by jggimi
...mount what you need (such as /usr) read/only...
|
I have found ldd(1) extremely helpful for finding out what's needed by any executable. In this case, you need /usr/bin, /usr/lib, and /usr/libexec available:
Code:
$ ldd `which ssh`
/usr/bin/ssh:
Start End Type Open Ref GrpRef Name
1c000000 3c018000 exe 1 0 0 /usr/bin/ssh
08269000 2826e000 rlib 0 1 0 /usr/lib/libgssapi.so.5.0
058b0000 258c0000 rlib 0 1 0 /usr/lib/libkrb5.so.17.0
0a0e0000 2a120000 rlib 0 1 0 /usr/lib/libcrypto.so.18.0
0ac9d000 2aca5000 rlib 0 1 0 /usr/lib/libz.so.4.1
0b684000 2b689000 rlib 0 1 0 /usr/lib/libdes.so.9.0
0f7bc000 2f7f5000 rlib 0 1 0 /usr/lib/libc.so.51.0
030ab000 030ab000 rtld 0 1 0 /usr/libexec/ld.so
$ ldd `which gzip`
/usr/bin/gzip:
Start End Type Open Ref GrpRef Name
1c000000 3c005000 exe 1 0 0 /usr/bin/gzip
0a49e000 2a4a6000 rlib 0 1 0 /usr/lib/libz.so.4.1
07c65000 27c9e000 rlib 0 1 0 /usr/lib/libc.so.51.0
02399000 02399000 rtld 0 1 0 /usr/libexec/ld.so
$
Quote:
Also, if I write count=1 I will save the partition table, right?
|
It will
only save the primary partition table. It will miss any extended partition tables, and it will miss any boot loaders stored in the first track. Personally, I prefer fdisk(8) for saving and restoring MBRs; I don't back up my multibooter -- which is GAG -- I reinstall it.