Pagina 2 di 3
Re: busybox e fstab
Inviato: lunedì 20 dicembre 2010, 23:41
da dandrix
Codice: Seleziona tutto
ubuntu@ubuntu:~$ sudo mount -o loop, ro, offset=1049 /media/d13a94a5-5225-4d4f-8cf7-4eac734b97b8/immagine.sda /mnt
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 10:37
da steff
Quando stampa il help è errore di sintassi.
Nessun spazio dopo le virgole direi, usa copia-incolla.
Codice: Seleziona tutto
sudo mount -o loop,ro,offset=1049 /media/VERBATIM/ALBERTO/copia\ dati/img.sda /mnt
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 10:44
da dandrix
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 11:51
da steff
Codice: Seleziona tutto
sudo mount -t ext4 -o loop,ro,offset=1049 /media/VERBATIM/ALBERTO/copia\ dati/img.sda /mnt
se è ext4 altrimenti ext3
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 11:57
da dandrix
Codice: Seleziona tutto
ubuntu@ubuntu:~$ sudo mount -t ext4 -o loop,ro,offset=1049 /media/d13a94a5-5225-4d4f-8cf7-4eac734b97b8/immagine.sda /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
ubuntu@ubuntu:~$ dmesg | tail
[ 107.976127] sd 5:0:0:0: [sdc] Assuming drive cache: write through
[ 107.976142] sd 5:0:0:0: [sdc] Attached SCSI disk
[ 110.978367] EXT3-fs: barriers not enabled
[ 111.418810] kjournald starting. Commit interval 5 seconds
[ 111.419911] EXT3-fs (sdc2): using internal journal
[ 111.419923] EXT3-fs (sdc2): recovery complete
[ 111.419934] EXT3-fs (sdc2): mounted filesystem with ordered data mode
[ 797.228191] Skipping EDID probe due to cached edid
[ 3302.120189] Skipping EDID probe due to cached edid
[ 7178.131421] EXT4-fs (loop2): VFS: Can't find ext4 filesystem
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 12:05
da steff
Posta
Codice: Seleziona tutto
sudo parted -l /media/VERBATIM/ALBERTO/copia\ dati/img.sda
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 12:10
da dandrix
Codice: Seleziona tutto
ubuntu@ubuntu:~$ sudo parted -l /media/d13a94a5-5225-4d4f-8cf7-4eac734b97b8/immagine.sda
Model: ATA Hitachi HTS72502 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 247GB 247GB primary ext4 boot
2 247GB 250GB 3143MB extended
5 247GB 250GB 3143MB logical linux-swap(v1)
Model: USB DISK 2.0 (scsi)
Disk /dev/sdb: 1957MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 4129kB 1957MB 1953MB primary fat32 boot
Model: SAMSUNG HD103SI (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32,3kB 616GB 616GB primary fat32 lba
2 616GB 1000GB 384GB primary ext3
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 12:27
da steff
Devi usare il valore in byte (1049000 probabilemente ma controlla, poi l'opzione -l non va, vedo.
Fai così:
Codice: Seleziona tutto
sudo parted /media/VERBATIM/ALBERTO/copia\ dati/img.sda
poi si ferma e dai
ti chiede compact e dai
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 12:32
da dandrix
Codice: Seleziona tutto
ubuntu@ubuntu:~$ sudo parted /media/d13a94a5-5225-4d4f-8cf7-4eac734b97b8/immagine.sda
GNU Parted 2.3
Using /media/d13a94a5-5225-4d4f-8cf7-4eac734b97b8/immagine.sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit
Unit? [compact]? b
(parted) print
Model: (file)
Disk /media/d13a94a5-5225-4d4f-8cf7-4eac734b97b8/immagine.sda: 250059350016B
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1048576B 246915530751B 246914482176B primary ext4 boot
2 246916578304B 250059161599B 3142583296B extended
5 246916579328B 250059161599B 3142582272B logical linux-swap(v1)
(parted) quit
ubuntu@ubuntu:~$ sudo mount -t ext4 -o loop,ro,offset=1048576 /media/d13a94a5-5225-4d4f-8cf7-4eac734b97b8/immagine.sda /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 14:37
da steff
Come pensavo, anche la copia non si fa montare. Si potrebbe provare il filecheck sulla copia, ma non saprei come impostare l'offset, per questo sarebbe stato meglio il dd di solo sda1, sbaglio mio.
Prova di montarlo con un altro superblock. Prima posta
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 14:39
da dandrix
Codice: Seleziona tutto
ubuntu@ubuntu:~$ sudo tune2fs -l /dev/sda1
tune2fs 1.41.12 (17-May-2010)
Filesystem volume name: <none>
Last mounted on: /
Filesystem UUID: 72f7aa4b-f264-4baf-b3a8-d9888fededd5
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: clean with errors
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 15073280
Block count: 60281856
Reserved block count: 3014092
Free blocks: 49747111
Free inodes: 14865582
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1009
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Flex block group size: 16
Filesystem created: Mon Oct 11 10:00:26 2010
Last mount time: Sat Dec 11 17:56:32 2010
Last write time: Fri Nov 26 10:25:34 2010
Mount count: 19
Maximum mount count: 28
Last checked: Fri Nov 26 10:25:34 2010
Check interval: 15552000 (6 months)
Next check after: Wed May 25 10:25:34 2011
Lifetime writes: 98 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: 6112df45-6ae7-42b8-a1a7-679c7eef482b
Journal backup: inode blocks
ubuntu@ubuntu:~$
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 17:19
da steff
Dunque, riprova il filecheck dal cd live, giusto per curiosità:
Non credo che si fa montare con errori anche usando un superblocco alternativo.
Cmq puoi anche provare:
Codice: Seleziona tutto
sudo mount -t ext4 -o loop,ro,offset=1048576 -b 32768 /media/d13a94a5-5225-4d4f-8cf7-4eac734b97b8/immagine.sda /mnt
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 17:28
da dandrix
con il primo comanda mi restituisce sempre la stessa cosa "filesystem mounted or opened exlusively by another program?"
l'ultimo comando mi restituisce un help....
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 17:55
da steff
Uhm, forse l'opzione è diversa nel mount. Prova inanto il fsck con il superblocco di backup:
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 17:58
da dandrix
stesso risultato di prima....
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 18:10
da steff
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 18:13
da dandrix
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 18:15
da steff
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 18:17
da dandrix
sempre lo stesso.....
Re: busybox e fstab
Inviato: martedì 21 dicembre 2010, 18:19
da steff
Riproviamo di montare la partizione-copia, stavolta con l'opzione giusta:
Codice: Seleziona tutto
sudo mount sb=32768 -t ext4 -o loop,ro,offset=1048576 /media/d13a94a5-5225-4d4f-8cf7-4eac734b97b8/immagine.sda /mnt