![]() ![]() |
Apr 9 2008, 07:07 AM
Post
#31
|
|
|
Group: Members Posts: 39 Joined: 9-April 04 Member No.: 2,752 |
Good to know that things are working now. ajnk: so do you mean the latest yonggun kernel can boot off an ext2 partition? I remember the previous one only takes ext3 ... I don't know the answer to your question as I enabled the journal (tune2fs -j /dev/hda1) before inserting the CF into the Z. I left journaling off while copying about 2.5Gb of data to it (the recovery from the laptop) - it sped things up A LOT and stopped my laptop from crashing. I almost looked like the CF was thrashing - but it's memory not a disk ?!?! Also edited /etc/fstab on the Z to add the noatime option to the filesystem mount - to turn off recording off access times - again should help performance. |
|
|
|
Apr 9 2008, 08:42 AM
Post
#32
|
|
![]() Group: Admin Posts: 3,281 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
So......why does my existing microdrive with Debian EABI only use 25% of the drive and the new 32GB CF card use 46% of drive??? hmm, odd. try doing an "ls -laR" within each, redirecting output to file and diff'ing them? might need to "grep -v ^d" to omit directory names. |
|
|
|
Apr 11 2008, 12:35 PM
Post
#33
|
|
![]() Group: Members Posts: 975 Joined: 25-June 03 From: Silicon Valley Member No.: 208 |
So......why does my existing microdrive with Debian EABI only use 25% of the drive and the new 32GB CF card use 46% of drive??? hmm, odd. try doing an "ls -laR" within each, redirecting output to file and diff'ing them? might need to "grep -v ^d" to omit directory names. Thanks for the suggestion, speculatrix.... Meanwhile, decided to just bite the bullet and deleted everything on CF card and copied over stuff again.... Now, when I did 'df' I get: CODE #df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda2 5589680 1317392 3988340 25% / tmpfs 31180 0 31180 0% /lib/init/rw udev 10240 80 10160 1% /dev tmpfs 31180 0 31180 1% /dev/shm /dev/hdc1 5589680 1386936 3918796 27% /mnt/cf1 So, hda2 and cf1 are close now, but still slightly different. Is this OK?? Or ??? Also, since I've: 1) 'flipped' location of Debian from second partition (hda2) on microdrive to first partition (cf1) on 32GB CF card and 2) just copied over directories as-is from microdrive to CF card Is there going to be any issue when I yank out microdrive and put in CF card in it's place? In other words is there any other things I need to do in order to make sure that CF will be recognized and then boot up Debian after CF card is installed? Thanks! |
|
|
|
Apr 11 2008, 12:54 PM
Post
#34
|
|
![]() Group: Admin Posts: 3,281 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
you will find that a file copy using tar, rsync or cpio will be different.. say, for example, a directory had loads of files in it and the directory occupied lots of blocks, but then most of the files were deleted, the directory's usage wouldn't diminish. back to the original size.
when you mkfs, you can specify how much of the disk should be reserved - the default IIRC is 10% but on large disks that's often more than necesssary. On a 100GB+ disk I'll drop it to 5%, on a 750GB+ I'll use just 3. DONT set to 0 because it'll cause fragmentation as space runs out. You can change the % with tune2fs. --edit-- if you're moving debian from one part'n to another you may need to flash a different kernel, as the location of the root part'n is wired in at build time. See the multi-boot thread on debian for details of the different kernels to be used for different root locations. |
|
|
|
Apr 11 2008, 01:03 PM
Post
#35
|
|
![]() Group: Members Posts: 975 Joined: 25-June 03 From: Silicon Valley Member No.: 208 |
you will find that a file copy using tar, rsync or cpio will be different.. say, for example, a directory had loads of files in it and the directory occupied lots of blocks, but then most of the files were deleted, the directory's usage wouldn't diminish. back to the original size. when you mkfs, you can specify how much of the disk should be reserved - the default IIRC is 10% but on large disks that's often more than necesssary. On a 100GB+ disk I'll drop it to 5%, on a 750GB+ I'll use just 3. DONT set to 0 because it'll cause fragmentation as space runs out. You can change the % with tune2fs. --edit-- if you're moving debian from one part'n to another you may need to flash a different kernel, as the location of the root part'n is wired in at build time. See the multi-boot thread on debian for details of the different kernels to be used for different root locations. Thanks for the explanations, speculatrix! So, I guess that I can 1) swap out internal drive, then 2) reflash kernel from SD card, then 3) let 3200 boot up to new CF card.... and hope this Z boots up properly.... |
|
|
|
Apr 11 2008, 02:52 PM
Post
#36
|
|
![]() Group: Members Posts: 57 Joined: 12-March 08 From: North Pole Member No.: 21,496 |
Does it make sense replacing the internal microdrive with a bigger compact-flashcard? So, if you use a part of your cf as swap-image in Debian it will probably have a lot of writing cycles on it. I was told, a cf-card has not as many overwriting cycles (about 200.000 or so) as a microdrive
Pro: Bigger, less power consumption Contra: Might be slower, shorter life, when used as swap agree? |
|
|
|
Apr 11 2008, 03:36 PM
Post
#37
|
|
![]() Group: Members Posts: 975 Joined: 25-June 03 From: Silicon Valley Member No.: 208 |
Does it make sense replacing the internal microdrive with a bigger compact-flashcard? So, if you use a part of your cf as swap-image in Debian it will probably have a lot of writing cycles on it. I was told, a cf-card has not as many overwriting cycles (about 200.000 or so) as a microdrive Pro: Bigger, less power consumption Contra: Might be slower, shorter life, when used as swap agree? Good points, maemorandum.... However, please see earlier posts in this thread, like ZDevil's post #7 that has link to webpage on this subject, it appears that it might take 25 years for the effects that you refer to show up... |
|
|
|
Apr 12 2008, 11:34 AM
Post
#38
|
|
![]() Group: Admin Posts: 3,281 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
so, archimark, have you done it yet? we eager readers are desperate to know!
|
|
|
|
Apr 12 2008, 11:51 AM
Post
#39
|
|
![]() Group: Members Posts: 975 Joined: 25-June 03 From: Silicon Valley Member No.: 208 |
so, archimark, have you done it yet? we eager readers are desperate to know! Not yet... Per my other thread on XFCE4, stylus stopped working, no response to screen taps, want to fix that first then, do swap out.....so that I know I have fully working setup when I swap... So, if I can fix this today, then I'll swap tonight or if not, tomorrow....will report back after I do it... Thanks. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 05:19 PM |