DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-07-29 11:43:32

cypher
New member
Registered: 2010-07-29
Posts: 1

missing second drive in chroot debian

I got two 1.5TB drives in DNS-323. Some how my chroot debian can not see the second drive.

Code:

#df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs               1441117464 842376080 598741384  59% /
/dev/root            1441117464 842376080 598741384  59% /
/dev/loop0                5760      5760         0 100% /sys/crfs
/dev/sda2            1441117464 842376080 598741384  59% /mnt/HD_a2
df: `/mnt/HD_b2': No such file or directory
df: `/mnt/HD_a4': No such file or directory
df: `/mnt/HD_b4': No such file or directory
/dev/sda2            1441117464 842376080 598741384  59% /mnt/HD_a2/linux/mnt/HD_a2
/dev/root            1441117464 842376080 598741384  59% /mnt/HD_a2/linux/mnt/root
/dev/root            1441117464 842376080 598741384  59% /mnt/HD_a2/linux/dev
/dev/root            1441117464 842376080 598741384  59% /mnt/HD_a2/linux/sys
df: `/mnt/HD_a2/linux/sys/crfs': No such file or directory
/dev/root            1441117464 842376080 598741384  59% /mnt/HD_a2/linux/web

fdisk shows same drive for both sda and sdb

Code:

# fdisk -l

Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          66      530113+  82  Linux swap / Solaris
/dev/sda2             131      182401  1464091807+  83  Linux
/dev/sda4              67         130      514080   83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          66      530113+  82  Linux swap / Solaris
/dev/sdb2             131      182401  1464091807+  83  Linux
/dev/sdb4              67         130      514080   83  Linux

Any idea how to fix this?

Offline

 

#2 2010-07-29 15:54:41

oxygen
Member
Registered: 2008-03-01
Posts: 320
Website

Re: missing second drive in chroot debian

these partitions are mounted outside of your chroot. you could mount --bind /mnt to the approiate location

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB