Spinning down also decreased used power and I’ve written post regarding the power consumption comparison.įirst we need to nstall hdparm tool: sudo apt-get install hdparm I will reconsider if I will periodically store some data to HDD. Since this is not my case I decided to activate spinning down of HDD. Spinning down and up a lot will wear the drive and potentially lower lifetime. To restore partitions: sudo hdparm -z /dev/nandĪlso nice video how to move root partition to HDD. So I did also gzip img version so to restore I can just follow that video: dd if=/dev/nand bs=1M | gzip > /media/disk/backup/ nand_back_Īfter 20minuts the file was created with 777MB (and not 4GB as pure img file).Īnd to restore it I will execute (hope will not need it): sudo bash -c "gzip -dc nand_back_ | dd of=/dev/nand bs=1M" I’ve found this youtube video where you can see how to destroy your nand and use the backup image. I hope I will not need these backup files, but who knows… sudo dd if=nand.img of=/dev/nand It might be safer to also create an almost full copy of your nand: sudo dd if=/dev/nand of=/media/disk/backup/nand.imgħ782400+0 records in 7782400+0 records out 3984588800 bytes (4.0 GB) copied, 367.863 s, 10.8 MB/sĪlso create a MD5 check sum, so you can check it if it safe to use the image: sudo md5sum nand.imgģ438a6f4709d232d0409de947213112f nand.img Tar: Removing leading `/' from member names If anything goes wrong, you can use these files to set up a working nand boot partition again. To have a copy of the data in the boot partition. If anything goes wrong, you can use this to set up a working nand boot partition again. To have a copy of the data in the first megabyte of your NAND. Since now I have lot of available space, it might be a good idea to have backup of my data in NAND memory. configuring SAMBA – windows sharing – TODO. configuring minidlna – media server on ubuntu.In next posts I will configure minidlna server and add some NAS features as samba and ftp: Since I already had data on it, I have changed the owner of the folder: sudo chown -R linaro Movies/ To have mount persistent also after reboot, you have to add line to /etc/fstab: sudo mcedit /etc/fstabĪfter the change sudo cat /etc/fstab has the following output on my cubieboard2: # UNCONFIGURED FSTAB FOR BASE SYSTEM Sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL sudo mkdir -p /media/diskįilesystem Size Used Avail Use% Mounted on These are commands that mounts drive to /media/disk folder. I already created a folder and copied some files to HDD connected directly to my desktop PC so after mount I saw folders and used capacity. To create an ext2 partition (for media I do not need ext4): sudo mkfs -t ext2 /dev/sda1 Or also fdisk: sudo fdisk -l Mounting HDD There are many ways to see all disks and partitions but my favorite command is lsblk: sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL This post has 3 parts related to HDD connected to Cubieboard2 with lubuntu: I have old HDD from notebook, so I wanted to use it as a media server. The main advantage of cubieboard is it’s SATA connector.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |