Subject: Re: dvd-rom structure Newsgroups: gmane.linux.debian.user Date: Wed, 2 May 2007 14:30:14 -0400
Subject: Re: dvd-rom structure Newsgroups: gmane.linux.debian.user Date: Wed, 2 May 2007 14:30:14 -0400
> > I am trying to determine the structure (udf, hfs, iso9660 or > > iso9660/hfs hybrid, etc.) of dvd+r burned with MacOsX software. can > > any one help me find application(s) which will tell me everything I > > might want to know about a burned disk?
> Take a look at disktype.
disktype is it.
j j
Newsgroups: gmane.linux.debian.user Date: Fri, 13 May 2005 17:05:48 -0500
> I recently discovered that I can greatly improve my harddrive > performance by customizing a few settings using hdparm on the > command-line. I'd like to make the changes permanent, but I'm not > sure where to do that.
If you have Sarge or newer, you only need to put the changes in /etc/hdparm.conf and it will be picked up at boot time by /etc/init.d/hdparm.
Jacob
*Tags*: backup boot partition, bootsector
dd if=/dev/hda of=/export/sysbaks/hda-img.mbr bs=512 count=1 dd if=/dev/hdb of=/export/sysbaks/hdb-img.mbr bs=512 count=1
dd if=/dev/hda3 of=/export/sysbaks/hda-img.btc bs=512 count=1 dd if=/dev/hdb3 of=/export/sysbaks/hdb-img.btc bs=512 count=1
dd if=/dev/zero of=bigf bs=1024 count=
$ dd if=/dev/null of=bigf count=69200 bs=1024 0+0 records in 0+0 records out 0 bytes transferred in 0.000385 seconds (0 bytes/sec)
$ lgg bigf -rw-rw---- 1 0 08-03 23:02 bigf
$ dd of=bigf bs=1024 count=0 seek=$((70860516/1024)+1)
$ lgg bigf -rw-rw---- 1 70860800 08-03 22:44 bigf
$ du -kL bigf 4 bigf
you can use lilo.conf specifying the boot partition or you can simply use dd to work with bootsectors. for example, to make a backup copy of a bootsector in a partition, say, hda1, you could do:
dd if=/dev/hda1 of=bootsect.hda1 bs=512 count=1
if you want to recover later you do:
dd if=bootsect.hda1 of=/dev/hda1 bs=512 coount=1
in the same way you could copy hda1 bootsector to hda2 bootsector:
dd if=/dev/hda1 of=/dev/hda2 bs=512 count=1
Patrick Machado
> I notice that the harddrive spins & spins whenever I am running Kanotix but > is relatively quiet under XP
Try different hdparm settings first, like hdparm -S 120.
If that doesn't work, there is some disk activity that prevents your disk from spinning off. Things you may want to try:
Use 'noatime' in fstab
Look for services that access the disk (like KDE 'Media Manager') and disable as necessary.
Look for unwanted logging activity and cron jobs.
Use daemons like 'noflushhd' to prevent the kernel from dumping dirty cached data too frequently.
There are probably other tricks to try, maybe others will chip in.
ice 25.08.2005
Newsgroups: comp.os.linux.misc > Does anyone know of a program that will ghost Linux in the same way as > Norton Ghost works in Windows?
Yes , Ghost will work. I use Ghost to ghost machines with Linux and Windows preinstalled.
Rafael
cpio? afio? tar? These are archiving programs, and work at the filesystem level (meaning they're not *quite* like Ghost, but they're still excellent for backing up data.)
If you want to make an "image backup" then you use dd. dd works at the raw device level, making a sector-by-sector copy of a disk. You can make an exact copy of a hard disk by doing: dd if=/dev/hda of=somewhere bs=8192 which copies *everything* on the hard disk at /dev/hda to "somewhere". "somewhere" can be on a remote server, naturally. You should bzip2 it once it's there, to reduce time taken by the next step.
You can re-create the original image on /dev/hda by booting from a Linux floppy that has enough smarts to mount the remote server via NFS or Samba and also has bunzip2 and dd. This Linux boot floppy would do something very similar to: mount -t smb //remoteserver/images /mnt dd if=/mnt/linuxhdaimage.bz2 | bunzip2 -dc | dd of=/dev/hda
There's *got* to be a better way to do that, though. "rsync" would not chew up nearly so much network bandwidth, but it might have problems with things that require absolute positioning on disk like the MBR, the kernel image, and the loading map. I suppose you could combine the approaches, using dd to recover the MBR and /boot, then using rsync to fix everything else. This would require a separate /boot partition, naturally, but most people have that.
Please note that I have never tried the more complex versions of this. I did use dd and a bootdisk to back up and restore my entire laptop once, but that was it. Take with several grains of salt….
Matt G