Re: [OxLUG] Raw devices

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Sad Clouds
Date:  
To: oxlug
Subject: Re: [OxLUG] Raw devices
On Tue, 25 Oct 2011 16:46:42 +0100
John Winters <> wrote:

> On 25/10/11 15:15, Sad Clouds wrote:
> > Hi, I'd like to backup entire partition (/dev/sda1) with dd. I don't
> > see any raw devices under /dev, so is the following good way of
> > doing it?
> >
> > dd if=/dev/sda1 of=sda1.raw bs=64k
>
> Well, if the block device is missing from /dev then it won't work,
> but otherwise, yes, that's a reasonable command. Your buffer is
> quite small by today's standards. I'd be more inclined to do
> something like:
>
> dd if=/dev/sd1 of=sda1.raw bs=1024k
>
> or even larger.
>
> Are you sure sda1 is missing from /dev?
>
> John
>


No I do have /dev/sda1, but I was used to using raw devices with dd,
e.g. /dev/rwd0a on NetBSD or /dev/rdsk/* on Solaris. I wasn't sure if
Linux deprecated raw device entries under /dev