LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-16-2012, 09:42 PM   #1
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Rep: Reputation: 0
Trying to use "mhddfs" but not quite sure how


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.
 
Old 10-16-2012, 09:45 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
May be this can help: http://romanrm.ru/en/mhddfs
 
Old 10-16-2012, 09:46 PM   #3
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
May be this can help: http://romanrm.ru/en/mhddfs
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.
 
Old 10-16-2012, 11:25 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
So what exactly are you trying to do, what have you already done and where are you stuck?
 
Old 10-17-2012, 05:35 AM   #5
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
So what exactly are you trying to do, what have you already done and where are you stuck?
I can't seem to wipe drive "Disk /dev/sda" it was an old windows disk
 
Old 10-17-2012, 06:45 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Code:
dd if=/dev/zero of=/dev/sda bs=512 count=1
should do the trick.
 
1 members found this post helpful.
Old 10-17-2012, 06:55 AM   #7
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
Code:
dd if=/dev/zero of=/dev/sda bs=512 count=1
should do the trick.
Thanks
I got this when I tryed to format it

Code:
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..

http://www.linuxquestions.org/questi...e-help-946833/

Cheers
 
Old 10-17-2012, 07:23 AM   #8
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Think ive killed it, xbmc will not boot now says something about no boot grub. I'll reinstall it just hope all my "data" is still there.
Cheers
 
Old 10-17-2012, 11:45 AM   #9
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Ok after a wipe ive got my drives all up and running

Code:
@xbmc-EP31-DS3L:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             1.8T  3.1G  1.7T   1% /
udev                  2.0G  4.0K  2.0G   1% /dev
tmpfs                 807M  400K  806M   1% /run
none                  5.0M     0  5.0M   0% /run/lock
none                  2.0G     0  2.0G   0% /run/shm
/dev/sdb1             1.8T  196M  1.7T   1% /home/xbmc/HDD2
Following http://romanrm.ru/en/mhddfs

I ran
Code:
mhddfs /home/xbmc/HDD2,/ / -o allow_other
And got this back
Code:
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
Can I not use it as "/" ?
 
Old 10-17-2012, 12:10 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
1 members found this post helpful.
Old 10-17-2012, 12:18 PM   #11
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
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.
 
Old 10-17-2012, 12:20 PM   #12
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Wait would I just do this than
Code:
mhddfs /home/xbmc/HDD2,/home/xbmc/Media /home/xbmc/Media -o allow_other
?

bah delete this please no idea what I was thinking was the shame as before..
 
Old 10-17-2012, 01:41 PM   #13
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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
Code:
mhddfs /home/xbmc/HDD2,/home/xbmc/HDD1 /home/xbmc/Media -o allow_other
Regarding LVM, once you grasped the concept it is pretty straight forward.
 
1 members found this post helpful.
Old 10-17-2012, 02:04 PM   #14
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
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
Code:
mhddfs /home/xbmc/HDD2,/home/xbmc/HDD1 /home/xbmc/Media -o allow_other
Regarding LVM, once you grasped the concept it is pretty straight forward.
Hi again Tobi I changed it around some

I stuck in a 80gb drive to be the main xbmc drive and the other 2x 2tb can be for Media

Does this look ok to you sir?
Code:
fdisk -l

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: 0x7833eab5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63  3907027054  1953513496   83  Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 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

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63  3907027054  1953513496   83  Linux

Disk /dev/sdc: 80.0 GB, 80025280000 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156299375 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: 0x00063e08

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        2048   147914751    73956352   83  Linux
/dev/sdc2       147916798   156297215     4190209    5  Extended
/dev/sdc5       147916800   156297215     4190208   82  Linux swap / Solaris
root@xbmc-EP31-DS3L:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdc1              70G  2.9G   64G   5% /
udev                  2.0G  4.0K  2.0G   1% /dev
tmpfs                 807M  684K  806M   1% /run
none                  5.0M     0  5.0M   0% /run/lock
none                  2.0G     0  2.0G   0% /run/shm
/dev/sda1             1.8T  196M  1.7T   1% /HDD1
/dev/sdb1             1.8T  196M  1.7T   1% /HDD2
/HDD1;/HDD2           3.6T  391M  3.4T   1% /home/xbmc/Media
As I "think" ive done it
Cheers
 
Old 10-17-2012, 05:25 PM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Looks good.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unpredictable "delete" "move to trash" or "cut" file menu option dorianrenato Linux - General 3 11-28-2011 06:41 PM
"Multicolumn" or "tiles", or even "list" icon view on desktop, in any DE? the dsc Linux - Desktop 3 02-20-2010 09:25 AM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration