Re: 關於抹除資料 - Linux

By Cara
at 2011-12-09T18:13
at 2011-12-09T18:13
Table of Contents
※ 引述《"[email protected]" <[email protected]>, 看板: Linux》之銘言:
我假設 /mnt/zero 是你的 mount point,那就是一個 directory.
你不能對一個 mounted directory 做這件事。不需要 mount 它。
如果你想抹掉一整個 partition,假設它是 /dev/sda1,就對 raw device 做:
sudo dd if=/dev/zero of=/dev/sda1 bs=4096
如果你想碰 MBR,就做:
sudo dd if=/dev/zero of=/dev/sda bs=4096
--
此為local存檔;
因為bs2可以看得到文章的內容,所以我就幫忙轉貼原本的內容
--
我假設 /mnt/zero 是你的 mount point,那就是一個 directory.
你不能對一個 mounted directory 做這件事。不需要 mount 它。
如果你想抹掉一整個 partition,假設它是 /dev/sda1,就對 raw device 做:
sudo dd if=/dev/zero of=/dev/sda1 bs=4096
如果你想碰 MBR,就做:
sudo dd if=/dev/zero of=/dev/sda bs=4096
--
此為local存檔;
因為bs2可以看得到文章的內容,所以我就幫忙轉貼原本的內容
--
Tags:
Linux
All Comments

By Gary
at 2011-12-14T16:50
at 2011-12-14T16:50

By Olive
at 2011-12-15T12:35
at 2011-12-15T12:35

By Skylar Davis
at 2011-12-19T23:59
at 2011-12-19T23:59

By Madame
at 2011-12-20T16:18
at 2011-12-20T16:18
Related Posts
Re: AWK 傳結果到SHELL指定變數

By Quanna
at 2011-12-09T18:12
at 2011-12-09T18:12
AWK 傳結果到SHELL指定變數

By Noah
at 2011-12-09T13:15
at 2011-12-09T13:15
關於抹除資料

By William
at 2011-12-09T12:54
at 2011-12-09T12:54
linux mint 筆電

By Edith
at 2011-12-09T11:45
at 2011-12-09T11:45
gnome3 拖曳放大 功能失效

By Linda
at 2011-12-09T09:49
at 2011-12-09T09:49