Mijzelf wrote:The value is >2^31 and smaller than 2^32. For a signed int this means that the value can either truncate, or swap negative. I think losetup doesn't have such bugs, as 4GiB is not extremely big, when talking about disks and files. But you'll never know. (BTW, where did you get this losetup?)
You mean the offset of 3686809600?
This is the offset you and fvdw recommended.
mke2fs -j /dev/loop1 is finished.
- Code: Select all
root@fvdwsl-base:/ # mke2fs -j /dev/loop1
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
182919168 inodes, 731666546 blocks
36583327 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
22329 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
root@fvdwsl-base:/ #
This is fdisk:
- Code: Select all
root@fvdwsl-base:/ # fdisk /dev/sda
The number of cylinders for this disk is set to 364801.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 3000.5 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 9 72 514080 83 Linux
/dev/sda2 73 136 514080 83 Linux
/dev/sda3 137 200 514080 82 Linux swap
/dev/sda4 201 400 1606500 5 Extended
/dev/sda5 209 312 835380 83 Linux
/dev/sda6 321 328 64260 83 Linux
/dev/sda7 337 400 514080 83 Linux
Command (m for help):
This is "mount"
Seems alright.
- Code: Select all
root@fvdwsl-base:/ # mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,relatime,errors=continue,barrier=0,data=ordered)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
/dev/sda5 on /rw_fs type ext3 (rw,noatime,errors=continue,barrier=0,data=ordered)
tmpfs on /rw_fs/tmp/usr/var type tmpfs (rw,relatime,size=200k)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
root@fvdwsl-base:/ #
losetup -a does not exist?
There is a -f command.
losetup -f outputs this :
- Code: Select all
root@fvdwsl-base:/ # losetup -f
/dev/loop0
root@fvdwsl-base:/ #
There is no /dev/loop1 present?
Is this correct? :scratch
Hurray.
- Code: Select all
mkdir /tmp/mountpoint
Is not giving a readonly error anymore.
- Code: Select all
root@fvdwsl-base:/ # mkdir /tmp/mountpoint
root@fvdwsl-base:/ #