If device has several part you can use this trick :

 sudo fdisk -l | grep -o '^/dev/[^ ]*' | while read t ; do sudo mkdir -p /mnt/$t ; sudo mount $t /mnt/$t ; done
 disk='/dev/sdd' #  disk='/dev/sdb' # disk='/dev/sda' 
 fdisk -l | grep  $disk | cut -d' ' -f1  | while read t; do d=/mnt/tmp/$t ; mkdir -p $d && mount $t $d ; done
 sudo fdisk -l | grep  '^/dev/[^ :]*' | sed -e 's|[ :].*||g'  |  while read t ; do d=/tmp/mnt/$t ; sudo mkdir -p $d ; sudo mount $t $d ; echo $d ; done # BusyBox compatible
grep -o '/mnt/[^ ]* '  /etc/fstab | while read t ; do sudo mkdir -pv $t ; done
grep -o '/mnt/[^ ]* '  /etc/fstab | while read t ; do sudo mount $t ; done

MESSAGES

http://forum.buffalo.nas-central.org/viewtopic.php?f=18&t=12381

Starting XFS recovery on filesystem: sda6 (logdev: internal)
XFS: failed to read root inode
VFS: Can't find ext3 filesystem on dev sda6.
VFS: Can't find ext3 filesystem on dev sda6.
VFS: Can't find an ext2 filesystem on dev sda6.
XFS mounting filesystem sda6
Starting XFS recovery on filesystem: sda6 (logdev: internal)
XFS: failed to read root inode
sh-3.2# mount  /dev/sda6 /mnt/sda6
mount: Unknown error 990
sh-3.2# mount  -t ext3 /dev/sda6 /mnt/sda6
mount: wrong fs type, bad option, bad superblock on /dev/sda6,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

sh-3.2# mount  -t xfs /dev/sda6 /mnt/sda6
mount: Unknown error 990

Error:

mount: no medium found on /dev/sr1
root@marcel:/var/lib/mldonkey/incoming/files#  sudo hdparm -I /dev/sr0

/dev/sr0:

ATAPI CD-ROM, with removable media
        Model Number:       TSSTcorp CDDVDW SH-S222L                
        Serial Number:      
        Firmware Revision:  SB03    
Standards:
        Supported: CD-ROM ATAPI-3 -4 -5 -6 -7 
Configuration:
        DRQ response: 50us.
        Packet size: 12 bytes
        cache/buffer size  = unknown
Capabilities:
        LBA, IORDY(cannot be disabled)
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 *udma4 
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4 
             Cycle time: no flow control=383ns  IORDY flow control=120ns
root@marcel:/var/lib/mldonkey/incoming/files#  sudo hdparm -I /dev/sr1

/dev/sr1:

ATAPI CD-ROM, with removable media
        Model Number:       SAMSUNG DVD-ROM SD-616Q                 
        Serial Number:      
        Firmware Revision:  F403    
Standards:
        Used: ATAPI for CD-ROMs, SFF-8020i, r2.5
        Supported: CD-ROM ATAPI-2 
Configuration:
        DRQ response: 50us.
        Packet size: 12 bytes
        cache/buffer size  = unknown
Capabilities:
        LBA, IORDY(can be disabled)
        DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 *udma2 
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4 
             Cycle time: no flow control=120ns  IORDY flow control=120ns

WIM

dmg

I plan to look at IPhone SDK files under linux, but the dmg file must be extracted first using dmg2img (see APT for .deb)

 strace dmg2img -V image.dmg

open("image.dmg", O_RDONLY) = -1 EOVERFLOW (Value too large for defined data type)
write(1, "ERROR: Can't open input file  ima"..., 68ERROR: Can't open input file  image.dmg
) = 68
exit_group(0)                           = ?

Solution use qemu :

qemu-img convert -f dmg "${IMAGE}.dmg" -O raw "${IMAGE}.img"

@tag: Apple

nrg

hal

A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal").

https://bugs.launchpad.net/ubuntu/+source/gnome-libs/+bug/164365

su -c ” rm /media/.hal-mtab ” invoke-rc.d hal restart

MOUNT

t=sda 
d=/dev/$t

for i in $(seq 1 9); do m=/tmp/$d$i ; mkdir -p $m && mount $d$i $m ; done 

Mount DISK

MounT and scp the whole rootfs

disk=sda

mkdir -p /tmp/mnt/$disk 
cd /tmp/mnt/$disk
fdisk -l /dev/$disk | tee fdisk.txt
parted /dev/$disk -s print unit b print unit chs print | tee parted.txt
dd if=/dev/sda count=1 bs=1024 of=mbr.bin
   
l=" sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8 sda9 "
for t in $l ; do
  d=/dev/$t 
  m=./mnt/$d
  mkdir -p $m
  dd if=$d count=1 bs=1024 of=$m/mbr.bin
  mount $d $m
 done

@tag: ARMv5

FS / ARCHIVES

QEMU

HANG

I managed to prevent this trouble by adding an extra test is os-prober

Please check the attached patch or

https://github.com/rzr/os-prober/tree/sandbox/rzr/for-upstream

Hope this help, I will bug os-prober if no feedback unless someone tells me how to get this merged faster

SolutioN WorkAround :

rzr@nrv:~$ sudo zile  /usr/lib/os-probes/50mounted-tests
types="$(fs_type "$partition")" || types=NOT-DETECTED
[ "" != "$types" ] || types=NOT-DETECTED

UpstreaM BuG ?

MISC

More

mount.txt · Last modified: 2020/09/08 20:45 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki