Re: Mount a new HDD somewhere in the file system ”permanently”
Bruce Pieterse
octoquadza at gmail.com
Mon Oct 24 18:25:27 UTC 2011
On Mon 24 Oct 2011 19:50:43 SAST, Johnny Rosenberg wrote:
> We just bought a new HDD for my wife's desktop machine, since the
> existing one seems a bit too small. She work with a lot of images in
> RAW format…
>
> Ubuntu 10.04 is installed on the old HDD and we are not going to
> change that for quite a while. Our thought is to keep the old HDD with
> Ubuntu 10.04 and let the new one appear as her Images folder somewhere
> in her file system, because that's the folder that will really be
> really.
>
> What do we need to obtain this permanently?
> We did not decide the exact structure yet, but let's say that we want
> to mount the new HDD as /home/UserName/Something/SomethingElse/Images.
> /home is already a partition of its own at the old HDD.
>
> I guess there need to be some work done in fstab somehow, right? Is
> there some kind of software out there that let us do this graphically
> or is the terminal the way to go?
>
> Thanks in advance!
>
>
>
> Kind regards
>
> Johnny Rosenberg
> ジョニー・ローゼンバーグ
>
Johnny,
Terminal will be the best way to go but we can do it in both.
*Terminal Mode & Graphic Mode*
1. Create the directory structure
i.e./home/UserName/Something/SomethingElse/Images
2. Get the unique device identifier with sudo blkid so the same device
is always loaded at the above mount point. If you not sure which device
it is you can use the disk-utility in gnome or sudo fdisk -l and match
/dev/sd[a-z][1-9] with blkid. If you still not sure you can give me the
output and I'll assist further.
3. Edit fstab: sudo vi /etc/fstab (terminal mode) or gksudo gedit
/etc/fstab (graphical mode)
4. Add the line: UUID=<blkid from step 2>
/home/UserName/Something/SomethingElse/Images ext4 errors=remount-ro 0 1
5. Save and then use mount -a to have it loaded in the new location
Done. :)
--
Best of luck,
Bruce
More information about the ubuntu-users
mailing list