由买买提看人间百态

topics

全部话题 - 话题: sdb2
(共0页)
g***l
发帖数: 2753
1
fedora 20, use dd to backup partitions. There are two partitions on the disk
/dev/sdb2 and /dev/sdb3
My usual image backup is as follows:
1. Mount and zero out the empty space:
dd if=/dev/zero of=temp.dd bs=1M
until full empty disk is wiped with zeros, then
rm temp.dd
2. dd the partition while compressing it:
dd if=/dev/sdb2 conv=sync,noerror bs=64K | gzip -c > /mnt/wine/sdb2.ddimg.gz
dd if=/dev/sdb3 conv=sync,noerror bs=64K | gzip -c > /mnt/wine/sdb3.ddimg.gz
But today when I tried to put the s... 阅读全帖
N**********d
发帖数: 9292
2
来自主题: Linux版 - git真是耗内存啊。。。
fdisk /dev/sdb
然后n,p,2, 分区大小默认,然后t改成swap
不过现在分区表里面有sdb2了,还是不让我开swap。。。真是郁闷嘞
~$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb1935407
Device Boot Start End Blocks Id System
/dev/sda2 * 2 19457 156280320 5 Extended
/dev/sda5... 阅读全帖
d*2
发帖数: 2053
3
比如加个新硬盘,分区:sdb1,sdb2,sdb3
/dev/sdb1
/dev/sdb2
/dev/sdb3
是怎么自动产生的?
是不是在/etc/rc.d/rc.sysinit里面(虽然找到了mknod,但是看那个命令行不是很清
楚)
今天遇到一个情况,partition之后:
sfdisk -l shows all partitions (e.g. sdb1,sdb2)
/proc/partitions shows all partitions
reboot the machine, the above two still fine, but /dev/sdb1, /dev/sdb2 are
missing...
b*****l
发帖数: 9499
4
来自主题: Linux版 - Device busy 该咋办?
干了件蠢事:忘了 umount 盘就 fdisk 和 lvm 一通,总不对。终于想起来了,lsof 找
到程序,推出,然后 umount。
然后就是悲剧了:再革盘时,fdisk 和 parted 都报 Device or resource busy. fuse
r 查,根本没人用。
盘是 /dev/sdb,过去有 5 个分区,sdb1 ... sdb5,删除了后面 4 个,重新把 /dev/
sdb2 设置成 lvm。又折腾了一会儿,现在看去,/dev/ 下面只有 sdb, sdb1, 和 sdb5
。俺的目标区,sdb2,不见了。
难道必须重启了?同学们啊,那意味着俺得抗了鼠标键盘步行 n 远。。。 谁救救俺啊
。。。
t***5
发帖数: 832
5
【 以下文字转载自 Linux 讨论区 】
发信人: take5 (NotAvailable), 信区: Linux
标 题: 怎样mount另一个Linux server的filesystem
发信站: BBS 未名空间站 (Mon Jan 7 12:30:10 2013, 美东)
Two linux servers both running Red Hat 6.
One (linux1) has /dev/sdb1 mounted on /data1, another (linux2) has /dev/sdb2
mounted on /data2. How to make two filesystems available to both servers?
tried something like
http://etutorials.org/Linux+systems/red+hat+linux+bible+fedora+
Thought this should be a simple task. But using the command on linux1
mount l... 阅读全帖
r*******e
发帖数: 7583
6
NFS should work.
If not, you did sth wrong.

sdb2
H***F
发帖数: 2501
7
来自主题: Hardware版 - win10和ubuntu双系统启动问题
thanks.这是我的根据sudo fdisk -l的结果。windows boot manager在sdb1,然后应该用
哪个命令?
Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: EE3E2143-9DC0-458E-80D0-E4521B111B29
Device Start End Sectors Size Type
/dev/sdb1 2048 411647 409600 200M EFI System
/dev/sdb2 411648 673791 262... 阅读全帖
H***F
发帖数: 2501
8
来自主题: Hardware版 - win10和ubuntu双系统启动问题
最后改了bios设置,可以直接进入grub界面了

thanks.这是我的根据sudo fdisk -l的结果。windows boot manager在sdb1,然后应该用
哪个命令?
Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: EE3E2143-9DC0-458E-80D0-E4521B111B29
Device Start End Sectors Size Type
/dev/sdb1 2048 411647 409600 200M EFI System
/dev/sdb2 ... 阅读全帖
w****g
发帖数: 597
9
Thank you for your reply.
Yes. I already boot up to a running system with the live cd. I saw the
partitions in file manager with names, for example, DATA2. (please see photo
proof at 2nd reply, the left bottom corner of that attached photo show '
DATA2')
Then, I had my question: Is DATA2 partition /dev/sdb1 or sdb2, or
sdb3,..., or sdb5, how can I find the information?
Here is reason: I am planning to install Ubuntu into my DATA2 partition at external USB hard drive because DATA2 is blank. But,
b*****l
发帖数: 9499
10
来自主题: Linux版 - Device busy 该咋办?
顺便,过去 mount 的是 /dev/sdb2,现在连这个 node 都找不到了。。。

.
/
N**********d
发帖数: 9292
11
来自主题: Linux版 - git真是耗内存啊。。。
不确定是不是坏了 =_=
$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb1935407
Device Boot Start End Blocks Id System
/dev/sda2 * 2 19457 156280320 5 Extended
/dev/sda5 2 19457 156280288+ 83 Linux
Disk /dev/s... 阅读全帖
N****w
发帖数: 21578
12
来自主题: Linux版 - git真是耗内存啊。。。
mkswap /dev/sdb2 了没有?就是格式化
F*V
发帖数: 3978
13
来自主题: Linux版 - 准备彻底抛弃Windows了
MINE:
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 29G 7.1G 21G 26% /
none 1.9G 680K 1.9G 1% /dev
none 2.0G 121M 1.8G 7% /dev/shm
none 2.0G 100K 2.0G 1% /var/run
none 2.0G 0 2.0G 0% /var/lock
x*********s
发帖数: 5554
14
来自主题: Linux版 - 请教grub的问题
我现在电脑有三块硬盘,分区什么的比较乱,
/dev/sda1 100M win7
/dev/sda2 100G win7
/dev/sda3 140G win7
/dev/sdb1 900G ubuntu
/dev/sdb2 extend
/dev/sdb5 18G swap
/dev/sdc1 100M centos 5.3
/dev/sdc2 600G Linux LVM
目前正常启动进入centos,我想请问,能不能通过在centos下重装grub,把其他两个系
统自动找到,然后写入grub的启动项里面。我试着手动修改grub.cfg文件,但总是存在
各种各样的问题启动不了。所以想通过grub安装“智能”的找到那两个系统,就像装
ubuntu的时候自动找到win7一样。
grub-terminfo (GNU GRUB 0.97)
包子求助
D**a
发帖数: 757
15
来自主题: Linux版 - 求助, XFS盘出问题了。
我的NAS突然之间就当机了, 好像是ROM或者FIRMWARE出了问题,HDD读不出了。 NAS是
个LINUX BASED的盒子,我把硬盘去了出来, 接到了我的VM上,现在是如下情况, 请
问该如何处理? HDD上是所有的照片和文档, 不能格式化。是下面那个1T的盘。
To run a command as administrator (user "root"), use "sudo ".
See "man sudo_root" for details.
lbblmm@lbblmm-VirtualBox:~$ xfs_repair
Usage: xfs_repair [options] device
Options:
-f The device is a file
-L Force log zeroing. Do this as a last resort.
-l logdev Specifies the device where the external log resides.
-m maxmem ... 阅读全帖
d*2
发帖数: 2053
16
MegaSAS controller
RHEL 5.8 x64
among several disk (exact same model and controller):
/proc/partitions
sda
sda1
sda2
sda3
sda4
sdb
sdb1
sdb2
sdb3
sdb4
sdc
sdc1
sdc3
sdd
sdd1
sdd2
sdd3
sdd4
...
Tried to use fdisk to delete existing partitions on sdc and repartition it
to be the same as other disks, command operations all succeeded, but /proc/
partitions content just won't update.
tried:
delete partition, then export/import partition table from other disk
use dd to wipe out the partition table and... 阅读全帖
t***5
发帖数: 832
17
Two linux servers both running Red Hat 6.
One (linux1) has /dev/sdb1 mounted on /data1, another (linux2) has /dev/sdb2
mounted on /data2. How to make two filesystems available to both servers?
tried something like
http://etutorials.org/Linux+systems/red+hat+linux+bible+fedora+
Thought this should be a simple task. But using the command on linux1
mount linux2:/data2 /data2
didn't work. Any idea?
Thanks!
P**C
发帖数: 45
18
来自主题: Linux版 - 请问这个系统怎么两个swap
fstab中显示有两个swap,怎么回事?
还有就是\是挂载在md0上,可是fdisk现实Disk /dev/md0 doesn't contain a valid
partition table,奇怪?
难道系统所有文件都在md0,sda和sdb其他几个分区都没有怎么用?
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
#
proc /proc ... 阅读全帖
x******a
发帖数: 6336
19
装个一个旧的台式机硬盘作为第二快硬盘
上面很多partitions,请问应该怎么mount?
因为可能上面还有一些资料,没有打算直接format。
有什么办法把文件转移到另外一块大硬盘里?
谢谢
Disk /dev/sdb: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xeeba7fb2
Device Boot Start End Blocks Id System
/dev/sdb1 * 2046 209715199 104856577 ... 阅读全帖
(共0页)