| |
| |
| |
|
Page: 1 2 3 4 5 6
Comments:
<Idle247> ok <newbie77> the default softbs (block size for copy operation) is 64k <Idle247> I dont know how dd_rescue does it <newbie77> I should have written "frequency of fsny calls on outfile" instead of "sync frequency". Does that make a difference? <newbie77> fsync <Idle247> no <tiGbx> when im trying to compare variable size, using ${#var}, its not working.. :( <bougyman> -eq <Idle247> tiGbx: if [ "${#var}" -eq "${#var2}" ]; <Idle247> == is for strings, counter intuitively <tiGbx> im using -le <Idle247> whats the line <tiGbx> var=20; until [ ${#var} -le 8 ] do blahblah <tiGbx> its not going into my do <bougyman> huh? <Pastr> huh yourself <bougyman> var=four;var2=five;[ ${#var} -eq ${#var2} ] && echo Yes <Idle247> cause ${#var} == 2 <Idle247> ${var} == 20 <Idle247> ${#var} is the string length <tiGbx> oh crap <newbie77> Idle247: wif you read the beginning of www.garloff.de/kurt/linux/ddrescue/, do you understand how it does it? <Idle247> kinda busy <tiGbx> thanks yalls <newbie77> Idle247: sorry for so many questions. <Idle247> :P <newbie77> But I feel that we are close to solve the issue :-) <Idle247> you should not use conv= at all <Idle247> if you want a raw raw raw copy <Idle247> of course, noerror helps <newbie77> did you access the link above? <Idle247> no <newbie77> may I please ask you to just read the beginning? <tiGbx> can you do and/or conditionals in bash? <Idle247> tiGbx: yes <tiGbx> pipe? <Idle247> if [ test ] || [ othertest ] <Idle247> && as well <tiGbx> ahh double pipes <Idle247> newbie77: looks like dd will work just fine <Idle247> standard dd, to restore <tiGbx> oh, brackets around each section? <Idle247> tiGbx: yes <Idle247> as its 2 seperate instances of 'test' <Idle247> I think 'test' may support internal ands <Idle247> -a <Idle247> and -o <Idle247> if [ test -o othertest ] <Idle247> man test <tiGbx> cool <newbie77> Idle247: so you had a look at the website? (sorry for asking this, but the data is very important) <Idle247> newbie77: keep that data file, and dd it to another disk... <Idle247> or copy, then mount the 'image' <newbie77> but did you read the beginning of that webpage about dd_rescue?? <zoibergus> hi.. is there any reason this wouldn't work: i have windows and want to test linux on a root partition .. i install and it works, so i delete the windows, move the root partition and create a swap and home and go on with life <Idle247> YES <Idle247> its just a raw copy, ffs <Idle247> zoibergus: bootloader <Idle247> reinstall it <zoibergus> but other than that i should be okay? <Idle247> and depends how you move it <zoibergus> what do you mean? <newbie77> Idle247: Thank you very very much!! <Idle247> :) <howto> :-) <Idle247> zoibergus: if you just change the partition start, wont work <Idle247> if you actually move the data, then it will <Idle247> you cant just move a partition <zoibergus> if i use gparted or something? <zoibergus> or even partition magic? <Idle247> I personally like cp -rp, since I can use unmatched sizes <Idle247> no <Idle247> partition magic wont move the data around <Idle247> honestly, leave your root partition alone <Idle247> use that now free space, or 'windows' partition, and just make that a new /home, or similar <Idle247> or make a lvs, to combine it with an existing drive <newbie77> can cp copy partitions too? <Idle247> not really <zoibergus> how big should i make my root partition? like 5 gigs? <Idle247> should be enough, yes <Idle247> depending tho <zoibergus> just for a simple laptop .. only planning on having root swap and /home <Idle247> if you start filling it with a complete install, youll have issues <newbie77> when you say "not really", does that mean "no", or "usually no, but sometimes maybe yes"? (please understand that I learned English late :-) <Idle247> I generally just do a /, no swap, just a swapfile <Waterman> whats a swap file? <Idle247> newbie77: I mean, it can copy the data, if your very careful <Idle247> but, generally, no, dont do it, ever <newbie77> thanks <Idle247> Waterman: use a swap file, instead of a partition <zoibergus> Idle247 is there any performance difference? <Idle247> like, /swapfile, then add it to fsta <Idle247> b <Idle247> zoibergus: I dont see any <Idle247> rarely do you ever touch swap <zoibergus> oh so there's really no point to it then <Waterman> Idle247, which means u dont have to create a swap partition you can use swap space that is created on / for example? <Idle247> 15:31:47 up 374 days, 15:45, 1 user, load average: 0.13, 0.03, 0.01 <Idle247> woooohooo <Idle247> Waterman: which also allows you to change the size :D <Waterman> hm <Waterman> how do you create that? <Idle247> dd if=/dev/zero of=/swapfile <Idle247> mkswap /swapfile <Idle247> swapon /swapfile <Waterman> nice <Idle247> add it to fstab <Waterman> thx <zoibergus> interesting <Waterman> i know <Waterman> :) <zoibergus> adds a lot of flexibility <Waterman> 257 mb <Waterman> :D <Waterman> enough <howto> :) <Waterman> so its reserved space for swap <Waterman> it i understand <Waterman> just like partition <Waterman> empty space that is located on / <Waterman> if* <Idle247> :D <Waterman> ? <Idle247> yea <Waterman> nice.. <Idle247> I hate seetting aside space for anything <Waterman> me too <Waterman> this is good <Waterman> it works <Waterman> /swapfile swap swap defaults 0 0 <Waterman> itd my fstab line , looks fine? <Idle247> yea <Waterman> nice :) <Waterman> i have 1 gb of ram <Waterman> 256mb swap should be enough <Waterman> :D <Waterman> 245* <Trengo> Waterman i'd set the same amount <Waterman> :D <Waterman> hehe <howto> :o) <Waterman> this is good <Trengo> in the good old days it was 2.5 times your core <Idle247> I use 19mb swap, on 160mb ram <Waterman> yes <Waterman> 19? <Idle247> yea <Waterman> as far as i remember using red hat 6.0 <Idle247> its been running for over a year <Waterman> 32mb ram -> 64 mb swap
Return to
#linuxhelp or Go to some related
logs:
#computers #politics ubuntu eaglectrl unknown option #stocks make a friend feel okay #politics #eggtcl #nintendo openwrt availa pci #flash
|
|