===== INDEX ===== LaCie disk see [[SATA]] ===== HOW TO ====== Backup : sfdisk -d /dev/sdb -O sfdisk-sdb.txt === how to recreate partitions from "/proc/partitions" === photorec can help * http://prefetch.net/blog/index.php/2009/12/20/using-the-linux-parted-utility-to-re-create-a-lost-partition-table/ * http://unix.stackexchange.com/questions/35681/accidentally-deleted-the-partitions-on-my-boot-disk-the-system-is-still-running * http://www.brzitwa.de/mb/gpart/ === Partition vs [[FileSystem]]=== * Important : 1st part must be <= 1023 cyl (+4024M on my USB key) * [[DVD]] size 4.7 *10^9 bytes = 4700000000.0 bytes = 4.37721610069274902344 * 16^9 bytes * vfat 32 Go, 4 Go max file * [[Linux]] System : 5 Go * [[WindowS7]] : 5545MB+ to be inst # then 7G * [[WindowsXP]] requieres=1371MB * [[WindowsXP]] OEM = 1255 * [[Windows]] 2000Pro installed=950MB http://linuxfr.org/tips/381.html ==== Howto [[Partition]] a [[USB]] [[HardDisk]] : Fragmentation / 20 GB and more (250GB here) ==== * 1 : 1GB : swap or [[Boot]] + LiveCD ... : * 2 : 8GB: (can be reused to install [[BSD]] or other [[Windows]]) * 3 : 8GB: [[Linux]] (ext3) * 4 : Extended ( 240 GB ) ** 5 : data = remaining space .. : /home ** 6 : swap ** opt: 7 / n-m : Other [[OS]] 1 [[Linux]] [[Gentoo]] .. 4GB ** opt: 8 / n : swap or CD : 1GB === Howto [[Partition]] a [[USB]] [[HardDisk]]=== * 1 : 1000 MB live * 2 : Extended * 3? : 8 GB [[Windows]] Eventually * 4? : 8 GB ** 5 : remaining data ==== Howto [[Partition]] a [[USB]] [[HardDisk]] : 20 GB and less ==== * 1 : 1 GB: [[Boot]] / LiveCD can be reused for [[swap]] * 2 : 4 GB : ntfs : [[Windows]] = 4294967296 * 3 : 1 GB : [[swap]] or temp or [[LiveCD]] * 4 : Extended : ** 5 : 6+ GB : vfat : home / data = remaining space .. ** 6 : 8 GB : ext3 : [[Linux]] / [[Debian]] : 8GB ===== Recovery ===== * http://www.cgsecurity.org/wiki/Data_Recovery_Examples#Recovery_of_reformated_partition * https://superuser.com/questions/891993/how-to-recover-exfat-partition# ExFat ===== MISC ===== Slow write operation using usbmount (because it uses sync not async) : * https://www.redhat.com/archives/fedora-test-list/2005-May/msg01102.html * http://bugs.debian.org/298184# [[Community]] * http://gparted.sourceforge.net/livecd.php * http://www.thelinuxdaily.com/2010/05/sfdisk-the-scriptable-fdisk/# SfDisk * http://www.hermann-uwe.de/blog/resizing-ext3-partitions-with-parted * https://en.wikipedia.org/wiki/Logical_Disk_Manager ===== MORE ===== @TaG: [[FileSystem]] [[Boot]] [[USB]] [[HardDisk]] [[Drive]] [[Root]] [[Recover]] [[SCSI]] [[SMART]] [[IDE]] [[SATA]]