Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey all let me start of with saying that I know close to Zero Linux commands and are indeed a noob at it.
Now that's out the way
Am trying to mhddfs my (two drives to start with be I have more random sized drives on the way) into one drive
now from what I remmber is this
I ran fdisk -l and got this
Code:
xbmc-EP31-DS3L:~# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 2000.4 GB, 2000397852160 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907027055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x67bcaaa1
Device Boot Start End Blocks Id System
/dev/sda1 1 3907027054 1953513527 ee GPT
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7833eab5
Device Boot Start End Blocks Id System
/dev/sdb1 * 81922048 3907024895 1912551424 7 HPFS/NTFS/exFAT
And ran "mount" and got this
Code:
xbmc-EP31-DS3L:~# mount
/dev/sda2 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
I also installed mhddfs
And this is basicly where I am stuck and unsure what to do next.
Thanks for reading
Last edited by Vodkaholic1983; 10-16-2012 at 09:43 PM.
Yea that's where I got the idea from after reading that, but am after more of a Tut as am crap and getting everythign working right and tbh (scared of messing something up)
Cheers
edit
The thing is I can't seem to wipe and mount the other drive I have
Last edited by Vodkaholic1983; 10-16-2012 at 09:48 PM.
root@xbmc-EP31-DS3L:~# dd if=/dev/zero of=/dev/sda bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 2.4996e-05 s, 20.5 MB/s
root@xbmc-EP31-DS3L:~# ^C
root@xbmc-EP31-DS3L:~# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 2000.4 GB, 2000397852160 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907027055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sda doesn't contain a valid partition table
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7833eab5
Device Boot Start End Blocks Id System
/dev/sdb1 * 81922048 3907024895 1912551424 7 HPFS/NTFS/exFAT
root@xbmc-EP31-DS3L:~# cfdisk /dev/sda
root@xbmc-EP31-DS3L:~# parted /dev/sda
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos
Warning: Partition(s) on /dev/sda are being used.
Ignore/Cancel? Ignore
Warning: The existing disk label on /dev/sda will be destroyed and all data on
this disk will be lost. Do you want to continue?
Yes/No? yes
Warning: /dev/sda contains GPT signatures, indicating that it has a GPT table.
However, it does not have a valid fake msdos partition table, as it should.
Perhaps it was corrupted -- possibly by a program that doesn't understand GPT
partition tables. Or perhaps you deleted the GPT table, and are now using an
msdos partition table. Is this a GPT partition table?
Yes/No? yes
Error: Partition(s) 2, 3 on /dev/sda have been written, but we have been unable
to inform the kernel of the change, probably because it/they are in use. As a
result, the old partition(s) will remain in use. You should reboot now before
making further changes.
Ignore/Cancel? ignore
(parted) quit
Information: You may need to update /etc/fstab.
root@xbmc-EP31-DS3L:~#
As I know very little I was following my old post about how to wipe and reformat disks etc..
xbmc-EP31-DS3L:~# mhddfs /home/xbmc/HDD2,/ / -o allow_other
mhddfs: directory '/home/xbmc/HDD2' added to list
mhddfs: directory '/' added to list
mhddfs: mount to: /
mhddfs: move size limit 0%
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
The problem is that it ries to mount the newly generated device to /, but / is not empty. Mounting the device over / will cause all files/directories in / to be hidden, so that your system will not work anymore.
So you have different options:
1. Don't use mhddfs for /. Create a reasonably large partition for / and use the mhddfs for data.
2. Use LVM instead, almost any distro supports having / on LVM.
3. Find a distro that supports booting from mhddfs. I don't know which distro supports this.
As you have seen now, always have a backup of your data, especially when using multiple disk setups.
The problem is that it ries to mount the newly generated device to /, but / is not empty. Mounting the device over / will cause all files/directories in / to be hidden, so that your system will not work anymore.
So you have different options:
1. Don't use mhddfs for /. Create a reasonably large partition for / and use the mhddfs for data.
2. Use LVM instead, almost any distro supports having / on LVM.
3. Find a distro that supports booting from mhddfs. I don't know which distro supports this.
As you have seen now, always have a backup of your data, especially when using multiple disk setups.
Thanks Tobi I see what you mean
So can I do it this way
dev/sda is where xbmc is installed on can that stay as it is still using /home/xbmc/Media
And than add
dev/sdb to the same folder /home/xbmc/Media
As its only for media etc..
Dam hope you can understand this as it's hard for me to explain lol
Cheers
Also LVM looks way to hard for me to do
Last edited by Vodkaholic1983; 10-17-2012 at 12:30 PM.
You boot up a GParted CD, reduce the size of sda1 to a reasonable size (you have plenty of space, so give it 20+ GB) and create a new partition in the free space. Then mount that partition, say under /home/HDD1 and launch
You boot up a GParted CD, reduce the size of sda1 to a reasonable size (you have plenty of space, so give it 20+ GB) and create a new partition in the free space. Then mount that partition, say under /home/HDD1 and launch
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.