EDIT:
Please read Ubis post above before this one.
He managed to say the same thing I tried to say in 1 line.
--------------------------
Howdy,
My replies are only based on own experience and what I have read...
The only option amongst file systems is NTFS if I want to be able to plug it into a Windows-computer,
and store files bigger than 4 GB?
FAT32 supports read/write natively, but doesn't support files bigger than 4 GB.
EXT2/3/4 supports files bigger than 4 GB, but cannot be mounted on a Windows-machine.
Yes, all is correct - except: there are solutions for Windows using EXT(n) and other filesystems, but all I have read about them is that they are crap.
Question: How do I mount a disk from the SSH shell, once I have root access?
You need to find out it's device name if it is not mounted automagically.
I'm sure there is a better way than this of doing it, but I haven't found one.
Steps:
- Plug the device in.
- Example of result:
Code: Select all
[[445483.672217] scsi 3:0:0:0: Direct-Access SAMSUNG HM120JC YL10 PQ: 0 ANSI: 0 CCS
[445483.681225] sd 3:0:0:0: Attached scsi generic sg1 type 0
[445483.699654] sd 3:0:0:0: [sdb] 234441648 512-byte logical blocks: (120 GB/111 GiB)
[445483.714495] sd 3:0:0:0: [sdb] Write Protect is off
[445483.719422] sd 3:0:0:0: [sdb] Mode Sense: 00 14 00 00
[445483.719432] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[445483.727390] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[445483.733651] sdb: sdb1 sdb2]
- The last line tells me that my USB device has been assigned the device name /dev/sdb
There is an old naming convention here:
SCSI Disk A (/dev/sda), SCSI DiskB (/dev/sdb), etc. The fact that they are not in fact SCSI disks can be ignored for now.
- There are also partitions on disks.
The last line in the output above shows that there are two partitions on the disk I attached:
sdb1 and sdb2
- When you know what disk (and partition) you want to mount, you need to create a mountpoint, if there isn't one already. The mount point is just a directory in the existing file system, usually under /mnt or /media, but you can create it wherever you want:
- Then you have to mount it using the mount command as root. Most often, it will detect the file system of your disk automagically (again! isn't it fantastic?). The simplest syntax is "mount <device> <mountpoint>":
Note that the sudo prefix is just instead of being root when issuing the command...
You can see the succesfully mounted file systems with:
If it fails, it might be that it fails to recognize the type of the file system, or that it is not a proper file system.
The most common mistake I do is to use the disk rather than the partition as the first argument (i.e. /dev/sdb instead of /dev/sdb1)
You will also need to specify the type with the -t switch to "mount" if you are using a non-default file system like ntfs-3g.
Hope this helps (it looks confusing even to me, who wrote it...)
/Cheeseboy