LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-04-2012, 03:23 AM   #1
idsouza28
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Rep: Reputation: 0
Creating a filesystem to use free space on an existing filesystem


Hello!

I use a 250GB hard disk formatted with NTFS in the entire partition. I need to install the Solaris on existing free space. I use the Windows ver. 8 and Ubuntu, uname -a result 'Linux ubuntu 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux'. I managed to create a mode using mknod with major 8 and minor 19.

stat result shows

"
root@ubuntu:~# stat /dev/sda2
File: `/dev/sda2'
Size: 0 Blocks: 0 IO Block: 4096 block special file
Device: 5h/5d Inode: 60436 Links: 1 Device type: 8,13
Access: (0664/brw-rw-r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-06-04 11:25:52.563822368 +0530
Modify: 2012-06-04 11:25:52.563822368 +0530
Change: 2012-06-04 11:28:18.340545241 +0530
Birth: -
"

df result shows

"
/dev/sda2 1006728 0 1006728 0% /root/temp
"

I managed to mount the device file with tempfs

I am also able to use the directory as in copying files in and out and read and write.

The problem is that the device file does not remain on disk once I reboot.

On mounting with ext3, the filesystem I choose to use, I get

"
root@ubuntu:~# mount -t ext3 /dev/sda2 /root/temp
mount: no medium found on /dev/sda2
"

Kindly help. The /dev/disk/by-id area shows no listing for this file. So also the proc area. I find the udev system installed. Kindly help as I do not know how to proceed.

Intend to later install FreeBSD on another free space area, or maybe another partition. At present no further disk space available.

Regards.
 
Old 06-04-2012, 03:40 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I am confused....You say that the entire partition is formatted NTFS---where is Ubuntu installed?

You would normally create a new Linux (Unix for Solaris) partition after first re-sizing the Windows one.
 
Old 06-04-2012, 03:46 AM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Dehradun, Uttarakhand, India
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,413

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
And why did you create mode using mknod, what is this mode? Show us the output of 'df -h'.
Quote:
root@ubuntu:~# mount -t ext3 /dev/sda2 /root/temp
mount: no medium found on /dev/sda2
And why did you mount your partition on /root/temp? Well that would never be.
 
Old 06-04-2012, 03:54 AM   #4
idsouza28
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Hi pixellany,

Replying to your question, I too had the doubt when first installing Ubuntu. But ubuntu has installed along with Windows using the Windows partition. Ubuntu supports NTFS. Technically it is interesting, the fact is, that I have both systems on the same partition. I use one system at a time, through the boot. I can read the Windows filesystem' files through Ubuntu and vice versa. They both share the common partition.

The lshw command reads,

ubuntu
description: Portable Computer

*-disk
description: ATA Disk
product: WDC WD2500BEVT-7
vendor: Western Digital
physical id: 0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: 11.0
serial: WD-WXE309K6C091
size: 232GiB (250GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=1925b10f
*-volume
description: Windows NTFS volume
physical id: 1
bus info: scsi@0:0.0.0,1
logical name: /dev/sda1
logical name: /host
version: 3.1
serial: 7e09194d-4039-dd49-be82-c18bf6f0ca74
size: 232GiB
capacity: 232GiB
capabilities: primary bootable ntfs initialized
configuration: clustersize=4096 created=2010-11-09 08:48:11 filesystem=ntfs modified_by_chkdsk=true mount.fstype=fuseblk mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096 mounted_on_nt4=true resize_log_file=true state=mounted upgrade_on_mount=true

*-serial UNCLAIMED
description: SMBus
product: 82801I (ICH9 Family) SMBus Controller
vendor: Intel Corporation
physical id: 1f.3
bus info: pci@0000:00:1f.3
version: 03
width: 64 bits
clock: 33MHz
configuration: latency=0
resources: memory:f6afbf00-f6afbfff ioport:1100(size=32)
*-scsi
physical id: 1
bus info: usb@1:5
logical name: scsi6
capabilities: emulated scsi-host
configuration: driver=usb-storage
*-disk
description: SCSI Disk
physical id: 0.0.0
bus info: scsi@6:0.0.0
logical name: /dev/sdb

Hope this information helps!

Regards.
 
Old 06-04-2012, 04:24 AM   #5
idsouza28
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Hi Satyaveer Arya,

I wanted to install another version of Unix in my system after the successful installation of Ubuntu on Windows. Ubuntu downloaded and installed on its own. While getting used to the linux different packages' installation, I got to read about the various installations through certain downloads. Following the iso file distribution of Solaris and FreeBSD, I got to understand the creation of device nodes and individual device file creations to accomodate the hard disk space for files. The installation of Solaris in particular asks for a device file already available as I am installing from a file downloaded onto the system in Ubuntu.

Correction it is node not mode. The result of 'df -h'.

is

Filesystem Size Used Avail Use% Mounted on
/dev/sda2 984M 0 984M 0% /root/temp

The /root/temp is a temporary directory.

Hope this information helps.

Regards.
 
Old 06-04-2012, 04:49 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,271

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
That would be a wubi install - that is a special Ubuntu Windows build. It installs into a virtual disk.

This is *not* a normal Linux install, and will not support anything else. Especially Solaris or a BSD.
Free up some space (as in unallocated) and create new partition(s) for dual-boot installs.
 
Old 06-04-2012, 04:34 PM   #7
jefro
Guru
 
Registered: Mar 2008
Posts: 11,533

Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
I agree that I suspect it is a wubi installed ubuntu.

What should be possible is to shrink the C drive using windows. Allow enough room for Solaris.
Then install solaris. It may or may not require you to fix the boot loader you have.

I recommend you consider running a virtual machine then install solaris into it.
 
Old 06-05-2012, 12:29 AM   #8
idsouza28
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you guys for posting your replies.

I am looking into the nested filesystems concept available in Linux. Using cfdisk I can allocate the free space and install another OS. As Linux has brought in varying unbelievable options(differences from earlier systems management), I am trying to work out the nested filesystems opportunity. I observe the difficulty in updating the NTFS of Windows or otherwise. Ubuntu's wubi install has probably introduced itself as an encrypted file listing. Likewise another raw file(raw as in oblique to Windows).

I would try and create an ext3 filesystem from ubuntu. Once I am able to work this, would I try to install Solaris. Since Solaris uses a device file, and if I can have a filesystem, looking forward to format it with ZFS. Sounds strange, but I will give it a try. Regards.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to repair filesystem (it is appearing as free space) ? wearetheborg Linux - General 4 02-16-2010 05:04 PM
Using LVM on an existing filesystem jrosenzw Linux - Software 1 05-07-2009 03:25 AM
Cannot detect free space in mounted SMB filesystem Saint Simian Linux - Networking 5 02-12-2009 01:50 AM
How to assign non-contiguous free space to a filesystem fab_lab_99 Linux - Server 2 06-28-2007 11:54 AM
Encrypting an existing filesystem? Canadakid Linux - Security 6 01-10-2007 05:27 AM


All times are GMT -5. The time now is 06:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration