Author Topic: Swap 32gb Cf For Microdrive  (Read 14291 times)

ajnk

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • http://
Swap 32gb Cf For Microdrive
« Reply #30 on: April 09, 2008, 11:07:37 am »
Quote from: ZDevil
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.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Swap 32gb Cf For Microdrive
« Reply #31 on: April 09, 2008, 12:42:54 pm »
Quote from: ArchiMark
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.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Swap 32gb Cf For Microdrive
« Reply #32 on: April 11, 2008, 04:35:39 pm »
Quote from: speculatrix
Quote from: ArchiMark
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: [Select]
#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!
« Last Edit: April 11, 2008, 04:38:02 pm by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Swap 32gb Cf For Microdrive
« Reply #33 on: April 11, 2008, 04:54:16 pm »
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.
« Last Edit: April 11, 2008, 04:55:33 pm by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Swap 32gb Cf For Microdrive
« Reply #34 on: April 11, 2008, 05:03:08 pm »
Quote from: speculatrix
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....

 
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

maemorandum

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
Swap 32gb Cf For Microdrive
« Reply #35 on: April 11, 2008, 06:52:14 pm »
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  . Anyway, writing a cf-card is much slower than reading it - and might be slower than reading a microdrive.

Pro: Bigger, less power consumption  
Contra: Might be slower, shorter life, when used as swap

agree?
SL-C3200 with opened 2nd CF-Slot, Debian EABI 2.6.23.9-yonggun on 2 GB High-Speed-CF
SL-C1000, Cacko-ROM

ASUS WL-110, hacked with external SMA Antenna Jack
AmbiComWL 1100C-CF, Buffalo Airstation-CF

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Swap 32gb Cf For Microdrive
« Reply #36 on: April 11, 2008, 07:36:02 pm »
Quote from: maemorandum
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  . Anyway, writing a cf-card is much slower than reading it - and might be slower than reading 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...
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Swap 32gb Cf For Microdrive
« Reply #37 on: April 12, 2008, 03:34:51 pm »
so, archimark, have you done it yet? we eager readers are desperate to know!
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Swap 32gb Cf For Microdrive
« Reply #38 on: April 12, 2008, 03:51:38 pm »
Quote from: speculatrix
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.
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/